HTTP ERROR 500 on Dashboard

HTTP ERROR 500 on Dashboard

by Aditya Dubay -
Number of replies: 3

Hi,

I am using Moodle 4.4.3+

Recently after upgrading my moodle instance I am facing this error on Dashboard:

HTTP ERROR 500

All other pages are working fine.

If I disable "Calendar" block, Dashboard starts responding.

I enable debug and it gives me this:

line 658 of /blocks/moodleblock.class.php: call to debugging()
line 624 of /blocks/moodleblock.class.php: call to block_base->has_add_block_capability()
line 1478 of /lib/blocklib.php: call to block_base->user_can_addto()
line 1410 of /lib/blocklib.php: call to block_manager->user_can_delete_block()
line 249 of /blocks/moodleblock.class.php: call to block_manager->edit_controls()
line 1231 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1289 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 711 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
line 219 of /lib/mustache/src/Mustache/Context.php: call to core_renderer->standard_head_html()
line 138 of /lib/mustache/src/Mustache/Context.php: call to Mustache_Context->findVariableInStack()
line 31 of /home/aguaisectexams/moodledata/localcache/mustache/1725511435/academi/__Mustache_73560842f9d6c5bc337558df4f13b989.php: call to Mustache_Context->findDot()
line 13 of /home/aguaisectexams/moodledata/localcache/mustache/1725511435/academi/__Mustache_0967305e442ccdf6465173ddf7b55ab2.php: call to __Mustache_73560842f9d6c5bc337558df4f13b989->renderInternal()
line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_0967305e442ccdf6465173ddf7b55ab2->renderInternal()
line 216 of /lib/outputrenderers.php: call to Mustache_Template->render()
line 43 of /theme/academi/layout/drawers.php: call to renderer_base->render_from_template()
line 1483 of /lib/outputrenderers.php: call to include()
line 1408 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 179 of /my/index.php: call to core_renderer->header()

Please help...

Average of ratings: -
In reply to Aditya Dubay

Re: HTTP ERROR 500 on Dashboard

by Samuel Witzig -

Hi Aditya

We had a 500 error on some users dashboard a few months ago (at that time, we were still on Moodle 4.1). Removing/disabling calendar block made the dashboard working again (as in your situation). After some digging around, I found out that the error was caused by a file added to a calendar entry in the description field in one of the courses the affected users were enrolled (it was actually a deadline for an assignment) - this file was base64 encoded. After removing this base64 encoded file in the text area of the calendar entry description, the dashboards of the affected users worked again.

I'm not sure whether this is helpful in your situation, as 500 is a generic error...

Best,

Samuel

Average of ratings: Useful (2)
In reply to Aditya Dubay

Re: HTTP ERROR 500 on Dashboard

by Ken Task -
Picture of Particularly helpful Moodlers

In addition to what has already been suggested, I see "/theme/academi" in the debug output.

Theme related?

On a temp basis, add a line to config.php to force the site theme to 'boost' as that is a theme that comes with core moodle.

$CFG->theme='boost';

See if the issue goes away - and you can regain access to the site.

https://moodle.org/plugins/theme_academi

https://moodle.org/plugins/theme_academi/versions

'SoS', Ken

In reply to Ken Task

Re: HTTP ERROR 500 on Dashboard

by Aditya Dubay -
Thanks Ken smile
I will check that base64 encoded, I have lots of courses smile
There is no $CFG->theme='boost'; entry in config file.