Weird W3 Total Cache Install Errors & Solution

Weird W3 Total Cache Install Errors & Solution 2

wordpress-code-image

If you are testing something new, there is always chance to break things, that's why you should always have a fail-safe system. Thing is sometime situation could be a bit different. I decide to test “WP-Rocket”, so disabled W3 Total Cache. I will write a separate article about my experience with “WP-Rocket”. Soon, when I decide to revert back to W3 Total Cache, I started to get weird errors, here I will explain how I solved it.

Continue reading “Weird W3 Total Cache Install Errors & Solution”

Solution For PHP Split Function Deprecated Error

split() is a very common PHP function. Here I am not going to discuss its usage. But I will give a super simple solution for the error “Deprecated: Function split() is deprecated“. This error is annoying, and will happen to everyone using split() function. So, keep reading for the super easy solution.

Why We Are Getting This Error Suddenly?

From PHP.net

preg_split(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to split(). If you don't require the power of regular expressions, it is faster to use explode(), which doesn't incur the overhead of the regular expression engine.

And, apparently “split” is removed as of PHP 5.3.x, in the preparation for PHP 6.0.
Continue reading “Solution For PHP Split Function Deprecated Error”

W3 Total Cache Version 0.9.2.8 Update Causing Fatal Error (Solution)

I wrote about W3 Total Cache 0.9.2.7 issue, which caused few issues including MaxCDN custom domain name not working. Frederick, the plugin author was fast enough to release updated version 0.9.2.8, but it caused a Fatal error like below, and here I will show a quick workaround to fix the issue.

Fatal error: Uncaught exception 'FileOperationException' with message '<strong>/public_html/wp-content/w3tc-config/master.php</strong> could not be created, please run following command:<br /><ul><li><strong style="color: #f00;">chmod 777 /public_html/wp-content/cache/tmp</strong></li><li><strong style="color: #f00;">chmod 777 /public_html/wp-content/w3tc-config</strong></li>' in /public_html/wp-content/plugins/w3-total-cache/inc/functions/activation.php:127 Stack trace: #0 /public_html/wp-content/plugins/w3-total-cache/lib/W3/ConfigWriter.php(159): w3_throw_on_write_error('/...', Array) #1 /public_html/wp-content/plugins/w3-total-cache/lib/W3/Config.php(71): W3_ConfigWriter->save() #2 /public_html/wp-content/plugins/w3-total-cache/lib/W3/CloudFlare.php(174): W3_Config->save() #3 /public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/CloudFlare.php(52): W3_CloudFlare->update_ip_ranges() #4 /h in /public_html/wp-content/plugins/w3-total-cache/inc/functions/activation.php on line 127

 

Continue reading “W3 Total Cache Version 0.9.2.8 Update Causing Fatal Error (Solution)”

[Solution] WordPress Custom Fields Broken After 3.4.2 Update

If you just updated to current latest version of WordPress 3.4.2 and finds out the custom fields is not updating and broken you are not alone. Its happening for everybody. Its a known bug for WordPress 3.4.2. Here we have a quick fix before WordPress 3.4.3 arrive.
Continue reading “[Solution] WordPress Custom Fields Broken After 3.4.2 Update”