[Plugin: DB Cache Reloaded] getting a fatal error
after activation seeing this in my log and the blog goes white:
PHP Fatal Error: cannot redeclare class wpdb in ……/db.php on line 83
Do you get this error every time? Or only once, e.g. after activating plugin?
let me rephrase:
I activate the plugin all looks good, but after activating it, the back end and the front end, both display a blank white page.
I then check the error log and see that error every time I tried to acces the blog. I delete the filedb.php and all is good btu the caching then doesn’t seem to happen. so I deactivated the plugin again.
I have updated plugin, so it detects such situations and displays custom error message in admin section. When you have PHP 5 and Reflection extension loaded, it additionally shows file where wpdb class was previously defined.
Please upgrade to version 1.1.
ok, seems to work now, but in the source code of my site, I always see output like this:
<!-- Generated in 1.691 seconds. Made 91 queries to database and 0 cached queries. Memory used - 36.23MB --> <!-- Cached by DB Cache Reloaded -->
it always says 0 cached queries so it seems ineffctive on my site 🙁
follow the link and check it out: http://pacura.ru
Do you have any warning message displayed in admin section? DB Cache Reloaded should display it if it will detect that wpdb class is already loaded.
Which WP version do you use?
Please also check your WP files. On my install (WP 2.8.4) following files are loaded before wp-content/db.php:
or (for admin section):
Please check these files to make sure they are the same as in official WP archive (except for wp-config). If you have changed them (e.g. wp-config), please check your changes.
what do you mean by admin section? do you mean on your plugins settings page? if so there are no errors or warnings.
I am on 2.8.4 and yes, my wp-config has been modified quite heavily. i.e. for use with the wp-tuner plugin, etc.
shall I post a version without my salts and secrets and passwords onto pastebin?
Oh, and wp-settings I have modified too, for wp-tuner. but those changes should not be a problem…
Admin section = admin panel or backend (all pages within wp-admin/ dir).
As I checked, WP Tuner plugin is responsible for this problem. I have notified its author about this issue – hope it will correct it and release new version soon.
great. will wait for the update then. the author of wp-tuner is pretty good at implementing changes, although a little slow to catch up sometimes. 🙂
will post again later, after a wp-tuner upgrade or try and disable that plugin for now 🙂
I’m getting the error upon activation…
Fatal error: Call to a member function load() on a non-object in /nfs/c12/h12/mnt/12345/domains/dev.thedomain.com/html/wp-content/db.php on line 839
Both the front end and back end error this way. Only way to fix is to remove the db.php file from wp-content manually.
This is on WP 2.8.4 using DB Cache Reloaded 1.1 on a MediaTemple gs site.
@datacode: which PHP version do you use?
Please also check if upgrade to version 1.2 will help – I did some change in this version, which may help.
The same happens to me here: http://www.thica.net/ too. It seems DB Cache Reloaded has no effects:
<!-- Generated in 1.816 seconds. Made 72 queries to database and 0 cached queries. Memory used - 14.66MB -->
I’m using DreamHost, if that matters.
Yeah, and the same plugin version works very well on my localhost:
<!-- Generated in 0.652 seconds. Made 4 queries to database and 77 cached queries. Memory used - 14.99MB -->
@phoenixheart: I have added some extra code to help diagnose such
problems in last DB Cache Reloaded version – 1.4. It shows -1 as cached query count when there is a conflict with other plugin, and messages in admin backend. Could you check it and let me know if it displays them on your setup?
@sirzooro: Well, seems it was a problem with my hosting company. I switched host and DB Cache Reloaded works like a charm now. Great plugin!
- The topic ‘[Plugin: DB Cache Reloaded] getting a fatal error’ is closed to new replies.