Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Adding courses and categories to the custom menu: Difference between revisions

From MoodleDocs
 
m (Text replacement - "<code php>" to "<syntaxhighlight lang="php">")
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
I copied the code from this tutorial as is to my test server and I get the following error:
I copied the code from this tutorial as is to my test server and I get the following error:


<code php>
<syntaxhighlight lang="php">
Invalid get_string() identifier: 'pluginname' or component 'theme_coursecategorymenu'
Invalid get_string() identifier: 'pluginname' or component 'theme_coursecategorymenu'
•line 5884 of \lib\moodlelib.php: call to debugging()
•line 5884 of \lib\moodlelib.php: call to debugging()
•line 6474 of \lib\moodlelib.php: call to core_string_manager->get_string()
•line 6474 of \lib\moodlelib.php: call to core_string_manager->get_string()
•line 103 of \theme\index.php: call to get_string()
•line 103 of \theme\index.php: call to get_string()
</code>
</syntaxhighlight>


What is wrong?
What is wrong?


--[[User:Luis de Vasconcelos|Luis de Vasconcelos]] 14:44, 10 May 2011 (WST)
--[[User:Luis de Vasconcelos|Luis de Vasconcelos]] 14:44, 10 May 2011 (WST)

Latest revision as of 20:36, 14 July 2021

Error

I copied the code from this tutorial as is to my test server and I get the following error:

Invalid get_string() identifier: 'pluginname' or component 'theme_coursecategorymenu'
•line 5884 of \lib\moodlelib.php: call to debugging()
•line 6474 of \lib\moodlelib.php: call to core_string_manager->get_string()
•line 103 of \theme\index.php: call to get_string()

What is wrong?

--Luis de Vasconcelos 14:44, 10 May 2011 (WST)