[Resolved] [Plugin: Google Analytics for WordPress] Multisite Subdirectory Conflicts with W3 Total Cache
Thanks for continuing to maintain this plugin, it’s one that I use and recommend quite often. I want to you let you know about an issue I came across on a WordPress Multisite 3.2.1 (subdirectory) website. The Google Analytics for WordPress plugin is networked activated, and the problematic site is running W3 Total Cache. The specific PHP error was related to the flush caching features that occur when settings are saved. Upon saving a setting a white screen was reached. With WP_DEBUG on the following error appears:
Fatal error: Call to undefined function w3tc_dbcache_flush() in /nas/wp/www/cluster-1/citizenschools/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 250
I’ve fixed it by modifying Lines 250-252 with:
if( function_exists('w3tc_dbcache_flush') ) w3tc_dbcache_flush(); if( function_exists('w3tc_minify_flush') ) w3tc_minify_flush(); if( function_exists('w3tc_objectcache_flush') ) w3tc_objectcache_flush();
Thanks for the great plugin, hopefully this helps anyone else experiencing a similar issue. Again, thanks for taking the time to create and maintain this.
- The topic ‘[Resolved] [Plugin: Google Analytics for WordPress] Multisite Subdirectory Conflicts with W3 Total Cache’ is closed to new replies.