Table "config" doesn't exist when installing a plugin or purging cache
de wz z -
Número de respuestas: 2
root@moodle:/var/www/moodle# php admin/cli/purge_caches.php
Default exception handler: !!! Table "config" doesn't exist !!!
Error code: ddltablenotexist
* line 677 of /lib/dml/moodle_database.php: dml_exception thrown
* line 1637 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
* line 952 of /lib/moodlelib.php: call to moodle_database->get_record()
* line 1263 of /lib/moodlelib.php: call to set_config()
* line 1228 of /lib/moodlelib.php: call to purge_other_caches()
* line 77 of /admin/cli/purge_caches.php: call to purge_caches()
!!! Table "config" doesn't exist !!!
Debug info:
Error code: ddltablenotexist
Stack trace: * line 677 of /lib/dml/moodle_database.php: dml_exception thrown
* line 1637 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
* line 952 of /lib/moodlelib.php: call to moodle_database->get_record()
* line 1263 of /lib/moodlelib.php: call to set_config()
* line 1228 of /lib/moodlelib.php: call to purge_other_caches()
* line 77 of /admin/cli/purge_caches.php: call to purge_caches()
But I can confirm it does exist as below:
# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2490990
Server version: 10.11.13-MariaDB-0ubuntu0.24.04.1-log Ubuntu 24.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use moodle;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [moodle]> desc mdl_config;
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+----------------+
| id | bigint(10) | NO | PRI | NULL | auto_increment |
| name | varchar(255) | NO | UNI | | |
| value | longtext | NO | | NULL | |
+-------+--------------+------+-----+---------+----------------+
3 rows in set (0.001 sec)
My Moodle version is 4.5.
BTW: Why all the linebreaks of my post lost?
En respuesta a wz z
Table "config" doesn't exist when installing a plugin or purging cache
de Ken Task -
Forum is having editor problems. It's not you nor your browser.
What's the DB prefix in your config.php file?
mdl_config should have around 599 rows.
Try: select * from mdl_config;
and suggest running: php admin/cli/checks.php -v
'SoS', Ken
En respuesta a wz z
Table "config" doesn't exist when installing a plugin or purging cache
de Visvanath Ratnaweera -
About the formatting problem: Do you experience moodle.org forums intermittently without the graphical HTML editor? If so, pl. add a note there!