gaptekupdate
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache and PHP 7.0.9if you have many sites with w3tc error &$buffer that you wanted to repair, just try this sed command to replace them all with $buffer
cd /home; find -type f -name 'PgCache.php' -exec sed -i 's;ob_callback(\&\$buffer);ob_callback(\$buffer);g' {} \; find -type f -name 'BrowserCache.php' -exec sed -i 's;ob_callback(\&\$buffer);ob_callback(\$buffer);g' {} \; find -type f -name 'Cdn.php' -exec sed -i 's;ob_callback(\&\$buffer);ob_callback(\$buffer);g' {} \; find -type f -name 'Minify.php' -exec sed -i 's;ob_callback(\&\$buffer);ob_callback(\$buffer);g' {} \; find -type f -name 'NewRelic.php' -exec sed -i 's;ob_callback(\&\$buffer);ob_callback(\$buffer);g' {} \; find -type f -name 'TotalCache.php' -exec sed -i 's;ob_callback(\&\$buffer);ob_callback(\$buffer);g' {} \;Forum: Fixing WordPress
In reply to: Comments automatically active on submitted postsi have same problem -_-
Forum: Plugins
In reply to: [W3 Total Cache] Remove query string from static content againadd this to your theme functions.php
function _remove_script_version( $src ){ $parts = explode( '?ver', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );Forum: Plugins
In reply to: [W3 Total Cache] Website takes 2 mins to load!Did you check your htaccess, there are some lines added by w3tc.
and also, check your wp-config.php and delete this lines (if any):
/** Enable W3 Total Cache */
define(‘WP_CACHE’, true); // Added by W3 Total Cache
Viewing 4 replies - 1 through 4 (of 4 total)