Moodle new installation 3.9.1 stops after installation

Moodle new installation 3.9.1 stops after installation

by Lutz Dausend -
Number of replies: 5

I need help being stuck with manually reinstalling Moodle 3.9.1+ (Build 20200903) on my server (PHP 7.3, MySQL 5.7)
The "Server check" tells me that all the minimum requirements are met and installs Moodle after "Continue".
The database and the directory "moodledata" are created.

But the next page is almost empty and shows only "Installation / System", nothing more.
URL: /admin/index.php?cache=0&agreelicense=1&confirmrelease=1&lang=en

Moodle Neuinstallation 3.9.1 stoppt nach Installation

I have tried it several times, always with the same result.

What can I do?




Average of ratings: -
In reply to Lutz Dausend

Re: Moodle new installation 3.9.1 stops after installation

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

The installation page should take a few minutes to load as the database installation is being done. It shouldn't stop completely.

Check the web server logs for errors. If config.php has been created (in the Moodle site's source code folder) try adding the following lines to enable debug messages:

@error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;

Alternatively, if you have SSH server access and are comfortable with the command line then you can try use the admin/cli/install.php script (or admin/cli/install_database.php if config.php already exists).

In reply to Leon Stringer

Re: Moodle new installation 3.9.1 stops after installation

by Lutz Dausend -
Thank you for the fast answer.

The config.php file was created.
When I reload the page the next step starts with installing the plugins normally.

The admin configuration: user/editadvanced.php?id=2
I get an error:
"Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.
More information about this error"

and debugging information:

Notice: Undefined property: stdClass::$navcourselimit in /www/htdocs/v136975/clients/bhp/moodle/lib/navigationlib.php on line 3051
Notice: Undefined property: stdClass::$maxbytes in /www/htdocs/v136975/clients/bhp/moodle/user/editadvanced.php on line 123
Notice: Undefined property: stdClass::$maxbytes in /www/htdocs/v136975/clients/bhp/moodle/user/editadvanced.php on line 145
Notice: Undefined property: stdClass::$defaultcity in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 694
Notice: Undefined property: stdClass::$country in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 695
Notice: Undefined property: stdClass::$calendartype in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 699
Notice: Undefined property: stdClass::$defaultpreference_mailformat in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 716
Notice: Undefined property: stdClass::$defaultpreference_maildigest in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 718
Notice: Undefined property: stdClass::$defaultpreference_maildisplay in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 720
Notice: Undefined property: stdClass::$defaultpreference_autosubscribe in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 722
Notice: Undefined property: stdClass::$defaultpreference_trackforums in /www/htdocs/v136975/clients/bhp/moodle/lib/classes/user.php on line 724
Notice: Undefined property: stdClass::$fullnamedisplay in /www/htdocs/v136975/clients/bhp/moodle/user/editlib.php on line 449
Notice: Undefined property: stdClass::$fullnamedisplay in /www/htdocs/v136975/clients/bhp/moodle/user/editlib.php on line 486
Notice: Undefined property: stdClass::$fullnamedisplay in /www/htdocs/v136975/clients/bhp/moodle/user/editlib.php on line 486
Notice: Undefined property: stdClass::$fullnamedisplay in /www/htdocs/v136975/clients/bhp/moodle/user/editlib.php on line 486
Notice: Undefined property: stdClass::$fullnamedisplay in /www/htdocs/v136975/clients/bhp/moodle/user/editlib.php on line 486
Notice: Undefined property: stdClass::$fullnamedisplay in /www/htdocs/v136975/clients/bhp/moodle/user/editlib.php on line 492
In reply to Lutz Dausend

Re: Moodle new installation 3.9.1 stops after installation

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

This looks like the database installation did not complete. The database installation should have occurred during the "Installation" page in your first message.

If this is a new site then delete the Moodle database. When you access the site in your browser you should again see the "Installation" page and hopefully this time it will load successfully as the database installs. If it doesn't, with the $CFG->debug lines in place hopefully there will be details.

In reply to Leon Stringer

Re: Moodle new installation 3.9.1 stops after installation

by Lutz Dausend -
I have tried the installation several times with always the same result.

Now again with debugging I get this while installing:
--
Installation
System

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1294336 bytes) in /moodle/lib/classes/string_manager_standard.php on line 142

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1294336 bytes) in /moodle/cache/classes/definition.php on line 503
In reply to Lutz Dausend

Re: Moodle new installation 3.9.1 stops after installation

by Lutz Dausend -
In the mean time I have set-up on the same environment Moodle with SSH and it worked fine.