[Plugin: W3 Total Cache] Admin Page Error / White Screen
-
Hey There,
I’ve got W3TC 0.9.2.4 installed on my site.
I went on it this morning to tweak some minify settings and was unable to access the admin section for W3TC. All i got was the admin sidebar, and the rest of the screen was white.
I turned on debug mode and got the following error – “Fatal error: Call to undefined method W3_Plugin_PgCacheAdmin::check_rules_legacy() in /htdocs/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 858”
Having checked this file, i made a small change which basically checks to make sure the method exists before calling it. This fixed the error and now means i can access the W3TC admin pages.
/* Add By Mike*/ if ($this->_config->get_boolean('notes.pgcache_rules_legacy') && method_exists($w3_plugin_pgcache, 'check_rules_legacy')) { if(@$w3_plugin_pgcache->check_rules_legacy()){ $this->_errors[] = sprintf('Legacy Page Cache rewrite rules have been found. To remove them manually, edit the configuration file (<strong>%s</strong>) and remove all lines between and including <strong>%s</strong> and <strong>%s</strong> markers inclusive. Or if permission allow this can be done automatically, by clicking here: %s. %s', w3_get_pgcache_rules_core_path(), W3TC_MARKER_BEGIN_PGCACHE_LEGACY, W3TC_MARKER_END_PGCACHE_LEGACY, $this->button_link('auto-remove', wp_nonce_url(sprintf('admin.php?page=%s&w3tc_pgcache_remove_rules_legacy', $this->_page), 'w3tc')), $this->button_hide_note('Hide this message', 'pgcache_rules_legacy')); } } /* End Added By Mike */Could someone shed some light as to what this method actually does, and what consequences my “fix” will have?
I would also appreciate any insight as to what might have caused this problem in the first place.
WordPress Version – 3.3.1
My Plugins
- Breadcrumb NavXT – 4.0.2
- BWP Google XML Sitemaps – 1.2.0
- Comment Link Manager – 1.1
- FancyBox for WordPress -3.0.1
- Fast Secure Contact Form – 3.1.4.1
- Newsletter – 2.5.2.6
- Relevanssi – 2.9.14
- Storefront Insights – 1.1
- W3 Total Cache – 0.9.2.4
- WP-PageNavi – 2.82
- WP e-Commerce – 3.8.7.6.2
- WP E-Commerce Weight & Destination Shipping Modules – 4.4
Thanks in advance
The topic ‘[Plugin: W3 Total Cache] Admin Page Error / White Screen’ is closed to new replies.