Table "context" does not exist

Table "context" does not exist

by Mihai Bojonca -
Number of replies: 2
Picture of Testers

I have tried to update moodle to the latest version and I got this error.

 

Everything worked well, have updated it before without any problems.

No tried to update to the latest 2.3.4+ and i got the following error. Can anyone help ?

 

 

 

 

 

Table "context" does not exist

Debug info: 
Error code: ddltablenotexist
Stack trace:
  • line 519 of /lib/dml/moodle_database.php: dml_exception thrown
  • line 1310 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
  • line 5734 of /lib/accesslib.php: call to moodle_database->get_record()
  • line 6994 of /lib/accesslib.php: call to context_system::instance()
  • line 690 of /lib/setup.php: call to get_system_context()
  • line 27 of /config.php: call to require_once()
  • line 31 of /index.php: call to require_once()
Average of ratings: -
In reply to Mihai Bojonca

Re: Table "context" does not exist

by Simon Coggins -

I was seeing a similar issue with a fresh install of master when I was trying to create a new development site. It appears to be related to caching and is being discussed here:

https://tracker.moodle.org/browse/MDL-37683

Deleting the cache directory from your moodledata folder should fix it.

Simon

Average of ratings: Useful (1)
In reply to Mihai Bojonca

Re: Table "context" does not exist

by Christos Savva -

Well this post is few months old but I found it few days ago when I faced the exact same problem.

So for future reference the problem was disk space. Yes, I know the error is misleading, but my hard disk was full and Moodle didn't like that. After I cleaned some stuff I refreshed Moodle and it was working again.

If you face same problem check the free space of your HDD

Average of ratings: Useful (2)