user4725754
user4725754

Reputation:

Moodle downgradedcore error

I have a moodle installed on a VPS. MySQL server has stopped, so I have made a power cycle on my server. After restart I have got the following error on admin login:

ERROR!!! The code you are using is OLDER than the version that made these databases!

I haven't changed anything. How can I fix this?

Upvotes: 3

Views: 5042

Answers (1)

davosmith
davosmith

Reputation: 6317

Check version.php for the $version value and then check the mdl_config database table, search for "name = 'version'". Compare these values.

If the version in the database is definitely wrong, you may be able to simply reset it back down to the value in version.php (without the decimal point and numbers after it).

In general, resetting the version number this way can cause all sorts of problems, so only do this if you are really, really sure that the database has the wrong version number.

Upvotes: 4

Related Questions