After Moodle upgrade there is an error

In this case first check if the database details have been correctly specified in config.php. For this purpose Open the File Manager in your cPanel and navigate to the config.php file. The file should reside in the main Moodle folder. Once you find it, click on it and from the top menu choose Edit.

Look through it and find the directives that describe the database details:

    $CFG->dbtype    = 'mysql'       ;
    $CFG->dbhost    = 'localhost' ;
    $CFG->dbname    = 'database'   ;
    $CFG->dbuser    = 'username' ;
    $CFG->dbpass    = 'password' ;

Make sure they are correct. You can add a new user to your database through the MySQL Databases section in the cPanel. Please click here to find more information on how to manage your databases.

If this solution does not help, perhaps the database got corrupted during the upgrade process. In case you upgraded the Moodle through Fantastico, please click here to see how to restore a Fantastico backup.

Otherwise, you have to restore the Moodle from your local backup (if any) or open a "backup restore" ticket. To do so, go to:

Customers' Area --> Get Support --> Report a hosting related issue --> Back-up restore

Note that additional fees are applied to that service.

You need help with an application? hostlantern is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to configure Moodle to work with a new domain?

In order to configure Moodle to work properly with another domain, you should modify the...

How to upload/restore larger courses in Moodle?

Sometimes it may not be possible to upload/restore a larger course in your Moodle directly...

How can I see the exact version of my Moodle?

The version of your Moodle can be seen from the Moodle admin area > Server > Environment....

How to get my Moodle public key?

You can get the Moodle public key from the admin area > Networking > Settings >...

How to change Moodle’s database to UTF8?

When you upgrade to the latest Moodle version you may get a warning about incorrect MySql...