You can clone with
Generate an administrative notice instead of a PHP exception; allowing the plugin to be activated, but without actually loading the plugin under this scenario.
A notice to the site owner could helpful in cases where the plugin is NOT being updated through the Dashboard. This will remove the risk of crashing a site that's attempting to run Quick Cache w/o PHP v5.3 installed.
Bug fix. Closes WebSharks/Quick-Cache#13
Ordinarily you can just deactivate Quick Cache from the plugins menu in WordPress. However, if you're having a more serious issue, please following the instructions here.
Log into your site via FTP; perhaps using FileZilla.
Delete this file: /wp-content/advanced-cache.php
Delete this directory: /wp-content/plugins/quick-cache/
Remove this line from your /wp-config.php file: define('WP_CACHE', TRUE);
Quick Cache is now completely uninstalled and you can start fresh :-)
Re-opening. The fix in place for this still relies on functionality provided only by PHP v5.3+ via the anonymous function used for the Dashboard notice. Needs fixing.
@Re-opening. The fix in place for this still relies on functionality provided only by PHP v5.3+ via the anonymous function used for the Dashboard notice. Needs fixing.
This issue is still there. File quick-cache.php line 18
Thank you. This got fixed in WebSharks/Quick-Cache@915b410;
the change will go out to WordPress.org soon, but it's fixed in the dev branch here at GitHub.
Unless I'm missing something, line 18 is correct. Quick Cache requires PHP v5.3+ and this line ensures that Quick Cache is not loaded until that dependency can be satisfied; else a Dashboard notice is issued to the site owner.
if(version_compare(PHP_VERSION, '5.3', '<'))
echo __('<div class="error"><p>Plugin NOT active. This version of Quick Cache requires PHP v5.3+.</p></div>', 'quick-cache');
else require_once dirname(__FILE__).'/quick-cache.inc.php';
Correct. It is fixed at Github (in the 915b410) but needs to go out to Wordpress.org. I installed on my client's server from Wordpress.org and it broke the page as server ran PHP < 5.3. Thanks for the update and for such a great plugin!
Thanks for confirming. This will go to WP.org later today.
This went out w/ Quick Cache and Quick Cache Pro v131128http://wordpress.org/plugins/quick-cache/changelog/
In Cpanel, my PHP version shows 5.3.21 but I'm still getting the error message with Quick Cache Version Version 131206 (Plugin NOT active. This version of Quick Cache requires PHP v5.3+.) At this point I'm not sure if I should be posting here or talking to my host. Advice please.
@rkcpr It is always possible that your website is running under a different version of PHP. Your host may support PHP v5.3.x, but you will need to check with them to be sure that's what is actually powering the site in question. An easy way to test this for youself is to create a PHP file like this and open it in a web browser.
<?php echo PHP_VERSION; ?>
Thanks! I've put in a support ticket and will post result here.
The host instructions were having me update a file in the wrong directory but it's fixed now. Thanks,