Error when installing 4.0 version

Error when installing 4.0 version

Aleksandar Stojicic -
回帖数:6

Hi, 


I am trying to install 4.0 version of Moodle locally with mysql db. I inserted manually version into mdl_config as I received error during installation. Then I installed all plugins and clicked on continue:


Please help me with this error, as I always lost more than 10 days in order to install this tool.

Thanks in advance.
Aleksandar



回复Aleksandar Stojicic

Re: Error when installing 4.0 version

Leon Stringer -
Core developers的头像 Particularly helpful Moodlers的头像

This reply may help.

Moodle 4.0 isn't due for release until early 2022. During installation you should have been shown a warning:

The version of Moodle that you are about to install or upgrade to contains unstable "Alpha" development code that is not suitable for use on most production sites.

I'd recommend using Moodle 3.11 instead.

回复Leon Stringer

Re: Error when installing 3.11.4 version

Aleksandar Stojicic -
I replaced my installation with Moodle 3.11.4. After installation of all plugins, and clicking on continue, admin creation wizzard was displayed.
Then i inserted necessary data and got following error:





Not sure really what i did wrong... Is it possible that i installed some plugin wrongly ? I just clicked on "upgrade database now"....Also during LTI plugin installation I observed some issue, but other plugins went through...not sure whether this is related
回复Leon Stringer

Re: Error when installing 4.0 version

Aleksandar Stojicic -
On installation page following errors are displayed on the top of the page:

Capability "moodle/contentbank:access" was not found! This has to be fixed in code.

line 453 of \lib\accesslib.php: call to debugging()
line 2940 of \lib\navigationlib.php: call to has_capability()
line 1312 of \lib\navigationlib.php: call to global_navigation->add_front_page_course_essentials()
line 3037 of \lib\navigationlib.php: call to global_navigation->initialise()
line 84 of \user\editadvanced.php: call to global_navigation->find()


Warning: Undefined property: stdClass::$navcourselimit in C:\xampp\htdocs\moodle\lib\navigationlib.php on line 3051

Warning: Undefined property: stdClass::$maxbytes in C:\xampp\htdocs\moodle\user\editadvanced.php on line 123

Warning: Undefined property: stdClass::$maxbytes in C:\xampp\htdocs\moodle\user\editadvanced.php on line 145

Warning: Undefined property: stdClass::$defaultcity in C:\xampp\htdocs\moodle\lib\classes\user.php on line 676

Warning: Undefined property: stdClass::$country in C:\xampp\htdocs\moodle\lib\classes\user.php on line 677

Warning: Undefined property: stdClass::$calendartype in C:\xampp\htdocs\moodle\lib\classes\user.php on line 682

Warning: Undefined property: stdClass::$fullnamedisplay in C:\xampp\htdocs\moodle\user\editlib.php on line 427

Warning: Undefined property: stdClass::$fullnamedisplay in C:\xampp\htdocs\moodle\user\editlib.php on line 464

Warning: Undefined property: stdClass::$fullnamedisplay in C:\xampp\htdocs\moodle\user\editlib.php on line 464

Warning: Undefined property: stdClass::$fullnamedisplay in C:\xampp\htdocs\moodle\user\editlib.php on line 464

Warning: Undefined property: stdClass::$fullnamedisplay in C:\xampp\htdocs\moodle\user\editlib.php on line 464

Warning: Undefined property: stdClass::$fullnamedisplay in C:\xampp\htdocs\moodle\user\editlib.php on line 470


Please help to fix this?? I guess it is related with error (posted above) which is received after trying to update admin profile ...

回复Aleksandar Stojicic

Re: Error when installing 4.0 version

Leon Stringer -
Core developers的头像 Particularly helpful Moodlers的头像

It looks like the installation isn't completing successfully so required settings are missing from the database. If the install page was cancelled by a timeout then this can cause the installation to be incomplete (you may have discovered this).

If this is a new site I'd suggest dropping the Moodle database, creating a new empty database, then re-attempt the install. If a timeout is causing this and you can determine the setting to increase (such as max_execution_time) then that should fix this.

Alternatively, you could perform the install at the command line. This is more reliable as it's not affected by timeouts and you can see whether the install completed successfully. If config.php exists you need to run admin\cli\install_database.php so the command is probably:

C:\xampp\php\php C:\xampp\htdocs\moodle\admin\cli\install_database.php ^
--adminpass=CHANGEME --adminemail=admin@example.com --agree-license ^
"--fullname=My Site" --shortname=Home