by
KK » Tue Mar 31, 2015 6:13 pm
Could not successfully run query: Table 'ghdecora_web.couch_fulltext' doesn't exist
That is indeed weird and, yes, it suggests the database is corrupt.
I've seen this happen only on a couple of occasions and this happens when the host makes changes to the database server and messes up in the process (couch_fulltext is the only MyISAM table and is the most vulnerable. Rest of the tables are innoDB and have better chances of surviving).
Anyway, it is good we haven't lost all the tables else the only way forward would have been to use a saved backup of the site (hope you are taking those).
For now we can get away with a re-install of only the database.
To do so, we'll use the method described at
http://www.couchcms.com/docs/miscellane ... erver.html which is normally done to migrate installation from one machine to another.
We'll use it to migrate only the database contents into new tables.
This is how we'll do it.
1. While logged-in as super-admin, type
http://www.yoursitename.com/couch/gen_dump.php in the admin-panel's address bar (change the site name and admin folder as required).
2. Save the 'install_ex.php' thus produced into the existing admin folder of your site (usually the 'couch' folder)
3. This step is the most important - edit couch/config.php and put some prefix into the following setting e.g. 'new_'
// 7b.
// Needed only if multiple instances of this CMS are to be installed in the same database
// (please use only alphanumeric characters or underscore (NO hyphen) )
define( 'K_DB_TABLES_PREFIX', 'new_' );
4. Now access
http://www.yoursitename.com/couch/ and you should see a prompt for new installation of Couch. Go ahead as this will create new tables and move the original data into them.
You should now have the same site as before.
Hope it helps.