Install Script error

Install Script error

by Carl Byerley -
Number of replies: 1

I am installing 2.6.1 and when I run the install.php I get this error

Fatal Error: Cannot use 'object' as class name as it is reserved in /home/u690905610/domains/urtruckconsult.com/public_html/training/training/lib/setuplib.php on line 66

How do I fix this?

Cannot use a later version.

Average of ratings: -
In reply to Carl Byerley

Re: Install Script error

by Ken Task -
Picture of Particularly helpful Moodlers

Installing 2.6.1??? That's an old - non-supported version of Moodle.

IF so ... your server is running PHP/7.4.11 which is too high for 2.6.1.

Now if you meant 3.6.1 ... still ... old - non-supported version of Moodle - highest in that series is 3.6.10.

See: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases

For version compatiblity - PHP as well as MariaDB/MySQL.

With PHP 7.4.11 one should be able to install all the way up to a 3.10 but you say you can't?

See we're hosted with Hostinger ... is hosting on a shared plan or other?

Are you using a Hostinger provided cPanel installer for Moodle (Softac)?

Have you see the official Moodle docs for installing

https://docs.moodle.org/310/en/Installing_Moodle

Hint: change the 310 above to version that can be installed ... like 39 or 38 or 37.

Plus ... the moodle code is in the second /training/ directory.  That intended?

The first /training/ says "Proudly Served by LiteSpeed Web Server" and is a raw directory listing.   Probably a good idea to install moodle in just training.

'SoS', Ken