Moodle 3.5 Upgrade Error (PHP 7.27, Ubuntu)

Moodle 3.5 Upgrade Error (PHP 7.27, Ubuntu)

by Akinwale Oshodi -
Number of replies: 1

I attempted to upgrade my moodle instance from version 3.4 to 3.5, I encountered this fatal error "Fatal error: Cannot use 'object' as class name as it is reserved in  ..... /setuplib.php on line 66"

Please can anyone  throw more light on this and how to get moodle 3.5 to work? Thanks

Average of ratings: -
In reply to Akinwale Oshodi

Re: Moodle 3.5 Upgrade Error (PHP 7.27, Ubuntu)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm guessing you upgraded PHP? However, you shouldn't get that error with either 3.4 or 3.5. That would be Moodle 3.3 or older. Are you *sure* you have Moodle 3.4?

That line in 3.3

https://github.com/moodle/moodle/blob/MOODLE_33_STABLE/lib/setuplib.php#L66

Then in 3.4

https://github.com/moodle/moodle/blob/MOODLE_34_STABLE/lib/setuplib.php#L65

It's not even the same line. So, I'm pretty sure you're not upgrading from 3.4