Totara Learn Open Discussions

Language customization results in Coding error detected

 
Levoca Kosice
Language customization results in Coding error detected
door Levoca Kosice - Tuesday, 15 January 2019, 23:22 PM
 

I have experienced an error when trying to customize the language pack. When I open language pack for editing, the package loads to 100% and then when I click continue I get the following error:

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error


Does anyone else experience this problem? Thank you! 


Levoca Kosice
Re: Language customization results in Coding error detected
door Levoca Kosice - Wednesday, 16 January 2019, 07:00 AM
 
I expanded the error message to read as follows:


Debug info: Object of class navigation_node could not be converted to string 
Error code: codingerror
Stack trace:
  • line 406 of \lib\setuplib.php: coding_exception thrown
  • line 1499 of \lib\weblib.php: call to default_error_handler()
  • line 673 of \lib\navigationlib.php: call to format_string()
  • line 91 of \blocks\navigation\renderer.php: call to navigation_node->get_content()
  • line 175 of \blocks\navigation\renderer.php: call to block_navigation_renderer->navigation_node()
  • line 50 of \blocks\navigation\renderer.php: call to block_navigation_renderer->navigation_node()
  • line 216 of \blocks\navigation\block_navigation.php: call to block_navigation_renderer->navigation_tree()
  • line 288 of \blocks\moodleblock.class.php: call to block_navigation->get_content()
  • line 230 of \blocks\moodleblock.class.php: call to block_base->formatted_contents()
  • line 1185 of \lib\blocklib.php: call to block_base->get_content_for_output()
  • line 1240 of \lib\blocklib.php: call to block_manager->create_block_contents()
  • line 354 of \lib\blocklib.php: call to block_manager->ensure_content_created()
  • line 34 of \theme\eulisat\layout\default.php: call to block_manager->region_has_content()
  • line 844 of \lib\outputrenderers.php: call to include()
  • line 774 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
  • line 130 of \lib\outputrenderers.php: call to core_renderer->header()
  • line 120 of \admin\tool\customlang\edit.php: call to plugin_renderer_base->__call()

To my basic understanding, the problem is in line120, but are the other lines faulty too?


Thank you for your input. 

me
Re: Language customization results in Coding error detected
door George Angus - Wednesday, 16 January 2019, 16:56 PM
Groep Totara

Hi Levoca,

I couldn't replicate this in t12 with the Estonian LP. Can you confirm what version you are using & what language pack?

cheers,

George.

Levoca Kosice
Re: Language customization results in Coding error detected
door Levoca Kosice - Thursday, 17 January 2019, 00:25 AM
 

Hello, it is only the basic English language pack. We are using Version 11.9 (Build: 20181204.00)

me
Re: Language customization results in Coding error detected
door George Angus - Thursday, 17 January 2019, 18:24 PM
Groep Totara

Hi Levoca,

Can you clear the cache, and upgrade to 11.10?

cheers,

George.