We are using CentOS 7.4 and PHP 7.2 and are upgrading Moodle from 3.6.1 to 3.8.9
The upgrade process takes more than 8 hours but still cannot finish. It prompts the below error message:
Notice: Trying to get property 'forced_plugin_settings' of non-object in /var/www/html/moodle/lib/moodlelib.php on line 1477
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/moodle/lib/moodlelib.php on line 1477
Notice: Trying to get property 'dirroot' of non-object in /var/www/html/moodle/cache/classes/factory.php on line 476
Warning: require_once(/cache/classes/dummystore.php): failed to open stream: No such file or directory in /var/www/html/moodle/cache/classes/factory.php on line 476
Fatal error: require_once(): Failed opening required '/cache/classes/dummystore.php' (include_path='/var/www/html/moodle/lib/pear:.:/var/www/html/moodle/php/lib/php') in /var/www/html/moodle/cache/classes/factory.php on line 476
Fatal error: Uncaught Error: Call to a member function is_transaction_started() on null in /var/www/html/moodle/lib/classes/shutdown_manager.php:137 Stack trace: #0 [internal function]: core_shutdown_manager::shutdown_handler() #1 {main} thrown in in /var/www/html/moodle/lib/classes/shutdown_manager.php on line 137
Please advise how to fix this problem. Thanks a lot!