Moodle: Error reading from database

Moodle: Error reading from database

by Jeffrey Cheung -
Number of replies: 2

Hello everyone,

A couple weeks ago, I installed Moodle 2.3.3 through a web-hosting service (CPanel). Everything was working just fine but all of the sudden the I could no longer access the webpage: 

http://jansenkoh.com/lms/moodle/

Without receiving the following error.

"Error reading from database

 

Coding error detected, it must be fixed by a programmer: block_manager has not yet loaded the blocks, to it is too soon to request the information you asked for."
 
I have no clue whatsoever as to why this error came about. But upon further inspection, the cron.php says:
"Moodle upgrade pending, cron execution suspended."
version.php shows up a total blank and when I attempt to go to this link: http://jansenkoh.com/lms/moodle/admin/settings.php it says:

"A required parameter (section) was missing

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."

Assistance on getting the server up and running again would be much appreciated.
 
OR
 
Information on how I can backup a particular course through CPanel (since I can no longer access the administrative settings through Moodle) would also be helpful. A lot of time was put into developing a course, but if it were backed up, I could just reinstall Moodle and transfer the backed up course.

Cheers,
J.C.
 
 
Average of ratings: -
In reply to Jeffrey Cheung

Re: Moodle: Error reading from database

by Rob Johnson -

I suggest looking at the Docs for how to enable debugging in your config.php since you can't get to the admin settings.  Debugging should give you more information as to what is wrong.

In reply to Rob Johnson

Re: Moodle: Error reading from database

by Olja Petrovic -
 

The instructions on getting more debugging info by modifying your config.php and in other ways if you can't do that, can be found here:

http://docs.moodle.org/23/en/Debugging

I quote:

In config.php

In moodle/config.php you can add the lines:

$CFG->debug = 2047;
$CFG->debugdisplay = 1;
Or even more debugging messages:

$CFG->debug = 6143;
$CFG->debugdisplay = 1;

Good luck!