-
Bug
-
Resolution: Cannot Reproduce
-
Blocker
-
None
-
4.5.1
-
None
-
MOODLE_405_STABLE
Hi,
I just did a clean install of moodle
I've created the config.php file like this :
_________config.php file_________
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
@error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '1');
$CFG->debug = 32767;
$CFG->debugdisplay = 1;
$CFG->dbtype = 'auroramysql';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'dev01-master.db.ca-central-1.infrastructure.ezmax.com';
$CFG->dbname = 'academy_public';
$CFG->dbuser = 'academy_public';
$CFG->dbpass = 'HIDDEN';
$CFG->prefix = '';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '3306',
'dbsocket' => '',
'dbcollation' => 'utf8mb4_0900_ai_ci',
);
$CFG->wwwroot = 'https://academy.ezmax.com';
$CFG->sslproxy = true;
$CFG->dataroot = '/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 02777;
$CFG->upgradekey = 'HIDDEN';
require_once({}DIR{} . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
____________________
When I try to access the site, I am redirected to https://academy.ezmax.com/admin/index.php?cache=0&agreelicense=1&confirmrelease=1&lang=en
All the tables are getting created in my aurora database, but that error is shown on screen
_________Error on screen_________
Installation
System
install.xml: Success (5.97 seconds)
Exception - Call to undefined method Context::instance_by_id()
More information about this error
It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix if you want to retry the installation.
Debug info:
Error code: generalexceptionmessage×Dismiss this notification
Stack trace: * line 1417 of /lib/accesslib.php: Error thrown
- line 1217 of /lib/accesslib.php: call to assign_capability()
- line 2419 of /lib/accesslib.php: call to assign_legacy_capabilities()
- line 266 of /lib/db/install.php: call to update_capabilities()
- line 1810 of /lib/upgradelib.php: call to xmldb_main_install()
- line 277 of /admin/index.php: call to install_core()
____________________
I am running PHP 8.2.27
I tried version 4.5.1 and 4.5.1+ both are doing the same thing.
Any idea on how to fix this ?
Thanks in advance