A method to repair a crippled Joomla! installation
Today, i encountered a problem with a Joomla! 1.0.15 installation: everything seemed to be OK, BUT! the wysiwyg editors’ (i installed more) plugins, and dialogs did not work at all, i could’nt work with them at all. That should’nt be a proble, but my client knows nuts about how to update a web page. The wysiwyg was for him.
Be careful, this is a quiet complicated procedure, always use it as a LAST RESORT. AND BACKUP YOUR DB AND SITE DIRECTORY FIRST!
So, let’s get into the middle of the thing
Very first: Leave your old Joomla! installation as is
- create a subfolder in your main site dir and name it “jxcms”. Copy a fresh Joomla! 1.0.15 installation in this new folder.
- start the installation of the new Joomla!.
- install it into the same DB, but with different table prefix.
- when the installation is complete, delete the “/installation” folder.
- Log in into the newly installed Joomla! backend, go to Site > Global Configuration – Database tab, and replace the MySQL Database Prefix field value with your old Joomla’s table prefix.
- compare all directories between the old and new joomla! installation and copy all extra files from your old joomla! installation to the new. DO NOT OVERWRITE ANYTHING!
- When finished, back up your old joomla! installation, but leave files there.
- Copy all the files from your new joomla! instrallation to the old one and NOW OVERWRITE EVERYTHING.
- Open your configuration.php and update the following:
$mosConfig_absolute_path = ‘yoursitemaindir/jxcms’
$mosConfig_absolute_path = ‘yoursitemaindir’;
$mosConfig_cachepath = ‘yoursitemaindir/jxcms/cache’;
$mosConfig_cachepath = ‘yoursitemaindir/cache’;
$mosConfig_live_site = ‘http://yoursitename/jxcms‘;
$mosConfig_live_site = ‘http://yoursitename‘;
- If you wish, delete the new installation directory and the extra db tables.
And that’s it, now everything must work fine with your site.