Hi,
My Moodle page navigation stop working, I think it is PHP configuration issue, but I don't know know to fix it, please help.
My Moodle is hosted on a VPS server with cPanel.
The only change I did recently is updating the server PHP version to 7.4, also changed the Moodle PHP version to 7.4. But I tried to change it back to 7.3, the error still happened.
Here is my Moodle environment report
Try this test. Does the file exist on your site or not?
You see the "XMPPHP is an elegant PHP library for XMPP" message? Then you've got files from previous Moodle versions mixed in with the Moodle 3.10 files. You need to make sure there are only Moodle 3.10 files in the source code folder, some of these can cause JavaScript errors. This reply says how to do this, basically follow the upgrade instructions.
Basically I'd seen some sites with JavaScript errors because they had files from old Moodle versions present. But if you're using Git that's unlikely the be the cause as Git will add, update and remove the files as needed. Can you run git status and tell us what it says?
Other potential causes of JavaScript errors are:
I disabled the Cache Javascript option, and everything works fine now with PHP 7.4. I don't know why, and it is supposed to be enabled on production sites.
If you turn it back on and purge caches do the errors appear?
I am wrong, disabling the catch javascript did fix the navigation issue, but I can not edit activities, here is the error I got.
At the top of the output is:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
for the file yui_combo.php. If you switch to the Network tab in the browser's developer tools you should see the request for this URL, something like:
GET theme/yui_combo.php?3.17.2/event-mousewheel/event-mousewheel.js&3.17.2/event-resize/event-resize.js&…
presumably alongside a 500 Internal Server Error. Can you check the server error logs to see if there are any messages corresponding to the above GET request?
What should be returned is a normal JavaScript file, for example this is what's returned on the Moodle demo site.