PHP Fatal error after upgrade

PHP Fatal error after upgrade

by Marc Sauer -
Number of replies: 3
Hi there!

I'm trying to patch our moodle from 3.8 to 3.9. I've backuped all the files and went on with the installation. After downloading the current release and placing it in the 'old' directory, copying the config.php, I get the following error message when trying to load the site or run any admin.cli commands:

PHP Fatal error:  Cannot use 'object' as class name as it is reserved in /var/www/html/moodle/lib/setuplib.php on line 66
I run the following PHP version on my server:
PHP 7.3.27-1~deb10u1

Can anybody help me?

Cheers,

Marc
Average of ratings: -
In reply to Marc Sauer

Re: PHP Fatal error after upgrade

by Matt T -
Did you 'overwrite' the old directory, or delete everything (after backing up) before extracting the new code? 

If you did the first (overwriting) that's not ideal as it will not delete any files which have been removed from the later Moodle version. You should try the second option.
In reply to Matt T

Re: PHP Fatal error after upgrade

by Marc Sauer -
I did not overwrite it, since I followed the instructions on the documentation.