install.php not working

install.php not working

by Warren Hansen -
Number of replies: 5

Good morning, 

I have followed your steps for install moodle on Ubuntu: https://docs.moodle.org/310/en/Step-by-step_Installation_Guide_for_Ubuntu. I am install ing ubuntu 18.04 and using moodle 3.9 as in the document.

However when everything is completed and I try to open moodle from the web page I get the following:


Fatal error: Method lang_string::__set_state() must take exactly 1 argument in /var/www/html/moodle/lib/moodlelib.php on line 10603


Any suggestions?


Thanks


Average of ratings: -
In reply to Warren Hansen

Re: install.php not working

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers
In reply to Leon Stringer

Re: install.php not working

by Warren Hansen -
mmm, indeed:

PHP 8.0.3 (cli) (built: Mar 5 2021 07:53:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies


Let met try downgrading.

Thanks
In reply to Warren Hansen

Re: install.php not working

by Warren Hansen -
Hi, its working now!

Maybe also they can just update this line in the install guide:

sudo apt install apache2 mysql-client mysql-server php libapache2-mod-php

to include php7.4 rather:

sudo apt install apache2 mysql-client mysql-server php7.4 libapache2-mod-php

Thanks
Average of ratings: Useful (1)
In reply to Warren Hansen

Re: install.php not working

by James Steerpike -
Good point. I have been looking at that documentation lately and think some refactoring is required as well.
In reply to Warren Hansen

Re: install.php not working

by James Steerpike -
The latest php version installed on a fresh and updated Ubuntu 20.04 is still 7.4 and it does not appear to be in the default repository.
Did you install the ppa:ondrej/php repository or is it just a quirk of the host provider?
Checked adding 7.4 to the apt command does no harm.