Install Moodle 4.0.5 on Ubuntu 20.4

Install Moodle 4.0.5 on Ubuntu 20.4

by Chaminda Himesh de Silva -
Number of replies: 1

I installed Moodle accordint to the following web site

https://docs.moodle.org/401/en/Step-by-step_Installation_Guide_for_Ubuntu

Ubuntu Version 20.04
Moodle Version 4.0.5 (MOODLE_400_STABLE)
PHP Version : PHP 8.1.13 (cli) (built: Nov 26 2022 14:07:36) (NTS)
Mysql Version: mysql  Ver 8.0.31-0ubuntu0.20.04.2 for Linux on x86_64 ((Ubuntu))

Everything worked fine until the Add user option. On reaching that page, the following error message is displayed

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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

Debug info:
Error code: codingerror
Stack trace:
  • line 909 of /lib/classes/user.php: coding_exception thrown
  • line 301 of /user/editlib.php: call to core_user::get_property_default()
  • line 150 of /user/editadvanced_form.php: call to useredit_shared_definition()
  • line 214 of /lib/formslib.php: call to user_editadvanced_form->definition()
  • line 158 of /user/editadvanced.php: call to moodleform->__construct()
Output buffer: <div class="notifytiny debuggingmessage" data-rel="debugging">Capability "moodle/site:viewparticipants" was not found! This has to be fixed in code.<ul style="text-align: left" data-rel="backtrace"><li>line 453 of /lib/accesslib.php: call to debugging()</li><li>line 598 of /lib/accesslib.php: call to has_capability()</li><li>line 4615 of /course/lib.php: call to has_any_capability()</li><li>line 3883 of /course/lib.php: call to course_can_view_participants()</li><li>line 2995 of /lib/navigationlib.php: call to course_get_user_navigation_options()</li><li>line 1455 of /lib/navigationlib.php: call to global_navigation->add_front_page_course_essentials()</li><li>line 3174 of /lib/navigationlib.php: call to global_navigation->initialise()</li><li>line 87 of /user/editadvanced.php: call to global_navigation->find()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">Capability "moodle/contentbank:access" was not found! This has to be fixed in code.<ul style="text-align: left" data-rel="backtrace"><li>line 453 of /lib/accesslib.php: call to debugging()</li><li>line 3077 of /lib/navigationlib.php: call to has_capability()</li><li>line 1455 of /lib/navigationlib.php: call to global_navigation->add_front_page_course_essentials()</li><li>line 3174 of /lib/navigationlib.php: call to global_navigation->initialise()</li><li>line 87 of /user/editadvanced.php: call to global_navigation->find()</li></ul></div><br /> <b>Notice</b>: Undefined property: stdClass::$navcourselimit in <b>/var/www/html/moodle/lib/navigationlib.php</b> on line <b>3188</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$maxbytes in <b>/var/www/html/moodle/user/editadvanced.php</b> on line <b>126</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$maxbytes in <b>/var/www/html/moodle/user/editadvanced.php</b> on line <b>148</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$defaultcity in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>676</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$country in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>677</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$calendartype in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>682</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$defaultpreference_mailformat in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>698</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$defaultpreference_maildigest in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>700</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$defaultpreference_maildisplay in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>702</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$defaultpreference_autosubscribe in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>704</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$defaultpreference_trackforums in <b>/var/www/html/moodle/lib/classes/user.php</b> on line <b>706</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$fullnamedisplay in <b>/var/www/html/moodle/user/editlib.php</b> on line <b>430</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$fullnamedisplay in <b>/var/www/html/moodle/user/editlib.php</b> on line <b>467</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$fullnamedisplay in <b>/var/www/html/moodle/user/editlib.php</b> on line <b>467</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$fullnamedisplay in <b>/var/www/html/moodle/user/editlib.php</b> on line <b>467</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$fullnamedisplay in <b>/var/www/html/moodle/user/editlib.php</b> on line <b>467</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$fullnamedisplay in <b>/var/www/html/moodle/user/editlib.php</b> on line <b>473</b><br />

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I tried several times to install moodle by deleting the moodle database and moodledata directory, but the result was the same.

Average of ratings: -