Error on Messages in Moodle 3.7.2

Error on Messages in Moodle 3.7.2

by Claudinei Senger -
Number of replies: 3

Hi!

When we access the messages, the moodle call /lib/ajax/service.php?sesskey=xpto&info=core_message_get_conversation_messages, but when works, the time to load its up to 30 seconds! And in a few seconds we have a 10 thousands of requisitions of this file.

In the cases of loading file works, your content its OK.

This problem start on last week, without changes in the system. The number of messagens is 250. In the past, we have up to 1k messagens without any problem.

I check issues in debug mode, and I only found this:


String [nomessages,core_message] is deprecated. Either you should no longer be using that string, or the string has been incorrectly deprecated, in which case you should report this as a bug. Please refer to https://docs.moodle.org/dev/String_deprecation
  • line 394 of /lib/classes/string_manager_standard.php: call to debugging()
  • line 7263 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
  • line 76 of /lib/classes/output/mustache_string_helper.php: call to get_string()
  • line ? of unknownfile: call to core\output\mustache_string_helper->str()
  • line 82 of /lib/classes/output/mustache_helper_collection.php: call to call_user_func()
  • line 61 of /moodledata/localcache/mustache/1568762917/space/__Mustache_aa58745ab9dc7c51fd0bbc50df6b22f2.php: call to core\output\mustache_helper_collection->core\output\{closure}()
  • line 119 of /moodledata/localcache/mustache/1568762917/space/__Mustache_aa58745ab9dc7c51fd0bbc50df6b22f2.php: call to __Mustache_aa58745ab9dc7c51fd0bbc50df6b22f2->section2e9cc37de32b574e1a5e524b4716682a()
  • line 43 of /moodledata/localcache/mustache/1568762917/space/__Mustache_4d84f7dc95b0326b88120e3adb1bb31d.php: call to __Mustache_aa58745ab9dc7c51fd0bbc50df6b22f2->blockF1a783f39318b625163dd0aed0582dc3()
  • line 144 of /moodledata/localcache/mustache/1568762917/space/__Mustache_4bed262d6e2e3d47ce44ee529cc07663.php: call to __Mustache_4d84f7dc95b0326b88120e3adb1bb31d->renderInternal()
  • line 21 of /moodledata/localcache/mustache/1568762917/space/__Mustache_aa58745ab9dc7c51fd0bbc50df6b22f2.php: call to __Mustache_4bed262d6e2e3d47ce44ee529cc07663->renderInternal()
  • line 23 of /moodledata/localcache/mustache/1568762917/space/__Mustache_d1765c86fe38b7341efc72bd3a657527.php: call to __Mustache_aa58745ab9dc7c51fd0bbc50df6b22f2->renderInternal()
  • line 73 of /moodledata/localcache/mustache/1568762917/space/__Mustache_ccd3a9bc5a721b1d024e3cf6002c24ae.php: call to __Mustache_d1765c86fe38b7341efc72bd3a657527->renderInternal()
  • line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_ccd3a9bc5a721b1d024e3cf6002c24ae->renderInternal()
  • line 195 of /lib/outputrenderers.php: call to Mustache_Template->render()
  • line 793 of /message/classes/helper.php: call to renderer_base->render_from_template()
  • line 825 of /message/lib.php: call to core_message\helper::render_messaging_widget()
  • line 7868 of /lib/moodlelib.php: call to core_message_standard_after_main_region_html()
  • line 1012 of /lib/outputrenderers.php: call to component_callback()
  • line 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_after_main_region_html()
  • line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()
  • line 97 of /moodledata/localcache/mustache/1568762917/space/__Mustache_e24f0ae616a26e3311eb3f9a54f900b5.php: call to Mustache_Context->findDot()
  • line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_e24f0ae616a26e3311eb3f9a54f900b5->renderInternal()
  • line 195 of /lib/outputrenderers.php: call to Mustache_Template->render()
  • line 52 of /theme/space/layout/columns2.php: call to renderer_base->render_from_template()
  • line 1374 of /lib/outputrenderers.php: call to include()
  • line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 51 of /admin/search.php: call to core_renderer->header()
Invalid get_string() identifier: 'searchnocontactsfound' or component 'core_message'. Perhaps you are missing $string['searchnocontactsfound'] = ''; in lang/en/core_message.php?
  • line 353 of /lib/classes/string_manager_standard.php: call to debugging()
  • line 7263 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
  • line 76 of /lib/classes/output/mustache_string_helper.php: call to get_string()
  • line ? of unknownfile: call to core\output\mustache_string_helper->str()
  • line 82 of /lib/classes/output/mustache_helper_collection.php: call to call_user_func()
  • line 169 of /moodledata/localcache/mustache/1568762917/space/__Mustache_27c15374a883208ea817f9c0c2374e60.php: call to core\output\mustache_helper_collection->core\output\{closure}()
  • line 33 of /moodledata/localcache/mustache/1568762917/space/__Mustache_27c15374a883208ea817f9c0c2374e60.php: call to __Mustache_27c15374a883208ea817f9c0c2374e60->section9fc5fbb399d2f3d621a8ff7f3b075194()
  • line 38 of /moodledata/localcache/mustache/1568762917/space/__Mustache_d4a15e38a9e7b85751b7fbeadbdc2f22.php: call to __Mustache_27c15374a883208ea817f9c0c2374e60->renderInternal()
  • line 76 of /moodledata/localcache/mustache/1568762917/space/__Mustache_ccd3a9bc5a721b1d024e3cf6002c24ae.php: call to __Mustache_d4a15e38a9e7b85751b7fbeadbdc2f22->renderInternal()
  • line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_ccd3a9bc5a721b1d024e3cf6002c24ae->renderInternal()
  • line 195 of /lib/outputrenderers.php: call to Mustache_Template->render()
  • line 793 of /message/classes/helper.php: call to renderer_base->render_from_template()
  • line 825 of /message/lib.php: call to core_message\helper::render_messaging_widget()
  • line 7868 of /lib/moodlelib.php: call to core_message_standard_after_main_region_html()
  • line 1012 of /lib/outputrenderers.php: call to component_callback()
  • line 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_after_main_region_html()
  • line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()
  • line 97 of /moodledata/localcache/mustache/1568762917/space/__Mustache_e24f0ae616a26e3311eb3f9a54f900b5.php: call to Mustache_Context->findDot()
  • line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_e24f0ae616a26e3311eb3f9a54f900b5->renderInternal()
  • line 195 of /lib/outputrenderers.php: call to Mustache_Template->render()
  • line 52 of /theme/space/layout/columns2.php: call to renderer_base->render_from_template()
  • line 1374 of /lib/outputrenderers.php: call to include()
  • line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 51 of /admin/search.php: call to core_renderer->header()

Any help?

Average of ratings: -
In reply to Claudinei Senger

Re: Error on Messages in Moodle 3.7.2

by Ken Task -
Picture of Particularly helpful Moodlers

Did you recently update/upgrade your Moodle to 3.7.2?

Reason asked ... compatible themes are now boost based.  I see in the debug many references to older themes in caches.

What is your default theme?

To clear things up would recommend manually removing contents of ... that's contents of ... moodledata/cache and moodledata/localcache

as well as adding this line to config.php:

$CFG->theme='boost';

or 'classic' ... those are the themes for 3.7.x now.

Once you gain access again to admin of the moodle and you want to find another theme to install, make sure they are 3.7.x compatible.

Set default theme.

Then comment out the theme line you added to config.php by putting // in front.

'SoS', Ken

In reply to Claudinei Senger

Re: Error on Messages in Moodle 3.7.2

by José Antonio Omedes Capdevila -
Picture of Plugin developers

Hello,

We are experiencing the same problem. Were you able to find the root cause?

Do you think it is theme related?

We are using REMUI.

Many thanks

In reply to José Antonio Omedes Capdevila

Re: Error on Messages in Moodle 3.7.2

by Sarang Nair -

Hi

We had this issue in Edwiser RemUI theme where it was sending continuous requests when a message was sent from the Moodle chat. We have modified this file to fix the issue: remui/templates/core_message/message_drawer_view_conversation_body.mustache

The fix for this issue if occurring due to Edwiser RemUI theme will be available in all latest versions of our theme.