Description of problem:
When updating to 2.6.11-5.epel6, the update fails when going through the prompts. SSL Error Messages say:
"PHP Fatal error: Call to a member function addModule() on a non-object in /app/httpd/www/moodle/web/lib/weblib.php on line 1793"
Version-Release number of selected component (if applicable):
Error message is generated on every refresh
Steps to Reproduce:
1. Install older version of moodle
2. Install update of Moodle to 2.6.11-5
3. Log into Moodle as admin and follow the prompts. When upgrading modules it will give a 500.
500 server error
Successful update of moodle
I temp-fixed the issue by moving line 1793 so it is in the if statement starting at line 1783. When it is outside the if statement, the $def object is not guaranteed to be created and hence the error. When it is inside the if statement, the $def object will exist and thus it will update successfully.
The problem persists even after the upgrade. Logging in and logging out cause the 500 error to happen as well.
Does your temporary fix work?
Yes, if you implement the temporary fix, everything works as it should. Moving the fatal line into the if block fixes it in all situations.
Excellent, I'll get an update out.
moodle-2.6.11-6.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-25d48f77d0
moodle-2.6.11-6.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-25d48f77d0
moodle-2.6.11-6.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.