01 Aug, 2011
DB Cache Reloaded Fix plugin – solution to problems with install and uninstall
Posted by: admin In: Wordpress
We had some difficulties installing this plugin recently so I took some time to test the plugin in isolation. We installed the plugin in a fresh copy of WordPress 3.2.1 using DB Cache Reloaded Fix plugin version 2.2.3 with no other plugins installed, default TwentyTen theme, etc.
Installation
Installation went fine, but we got into trouble when trying to enable the plugin. We received error messages “Caching cannot be activated. Please chmod 755 wp-content folder” and “Settings cannot be saved. Please chmod 755 config.ini” when clicking Save after selecting the Enable checkbox.
These messages leave you scratching your head because the folder is likely to already have permissions set to 755 and you are not sure where this config.ini file is located.
Analysis & Solution
The plugin is trying to install, with elevated permissions, the following files and folders:
/wp-content/tmp
/wp-content/db-config.ini (notice file name is different than shown in error message)
/wp-content/db.php
I was able to solve this problem and address both error messages by temporarily chmod’ing the wp-content folder to 777. After installing the plugin and enabling caching on its settings page, I reverted the permissions back to 755.
Uninstalling
Uninstalling the plugin correctly removes the plugin folder and its files but left me with an Internal Server error and an inaccessible WordPress install. The problem here seems to be that uninstalling does not remove the tmp folder and two files mentioned above. You will need to manually remove those files.
