Community Support Forums — WordPress® ( Users Helping Users ) — 2010-06-28T02:45:04-05:00 http://www.primothemes.com/forums/feed.php?f=5&t=290 2010-06-28T02:45:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=290&p=1281#p1281 <![CDATA[Re: "You need PHP v5.2+" error even with PHP 5.2.13 installe]]> Statistics: Posted by Jason Caldwell — June 28th, 2010, 2:45 am


]]>
2010-06-28T02:12:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=290&p=1280#p1280 <![CDATA[Re: "You need PHP v5.2+" error even with PHP 5.2.13 installe]]>
define ("WS_PLUGIN__QCACHE_MIN_PHP_VERSION", "5.2");

Statistics: Posted by PaulieP — June 28th, 2010, 2:12 am


]]>
2010-06-27T07:08:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=290&p=1265#p1265 <![CDATA[Re: "You need PHP v5.2+" error even with PHP 5.2.13 installe]]>
Code:
define ("WS_PLUGIN__QCACHE_MIN_PHP_VERSION", "5.2.13-1.el5.art");

That's interesting.
I tested this locally against two strings and version_compare() handles this OK.

You might try changing it to this, and see if that does the trick for you:
Code:
define ("WS_PLUGIN__QCACHE_MIN_PHP_VERSION", "5.2");

If all else fails, open /plugins/quick-cache/quick-cache.php

At line # 53, change this:
Code:
if (version_compare (PHP_VERSION, WS_PLUGIN__QCACHE_MIN_PHP_VERSION, ">=") && version_compare (get_bloginfo ("version"), WS_PLUGIN__QCACHE_MIN_WP_VERSION, ">=") && basename (dirname (__FILE__)) !== basename (WPMU_PLUGIN_DIR) && !isset ($GLOBALS["WS_PLUGIN__"]["qcache"]))
   {

to just this:
Code:
if (version_compare (get_bloginfo ("version"), WS_PLUGIN__QCACHE_MIN_WP_VERSION, ">=") && basename (dirname (__FILE__)) !== basename (WPMU_PLUGIN_DIR) && !isset ($GLOBALS["WS_PLUGIN__"]["qcache"]))
   {

In other words, you need to remove this portion of the code:
Code:
version_compare (PHP_VERSION, WS_PLUGIN__QCACHE_MIN_PHP_VERSION, ">=") &&

Statistics: Posted by Jason Caldwell — June 27th, 2010, 7:08 am


]]>
2010-06-27T04:11:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=290&p=1264#p1264 <![CDATA[Re: "You need PHP v5.2+" error even with PHP 5.2.13 installe]]>
"You need PHP v5.2.13-1.el5.art+ to use the Quick Cache plugin."

Any ideas? Thanks

Statistics: Posted by PaulieP — June 27th, 2010, 4:11 am


]]>
2010-06-26T11:14:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=290&p=1248#p1248 <![CDATA[Re: "You need PHP v5.2+" error even with PHP 5.2.13 installe]]>
I placed the line in wp-config and I still get the error message about PHP 5.2+ unfortunately..

Statistics: Posted by PaulieP — June 26th, 2010, 11:14 am


]]>
2010-06-26T00:28:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=290&p=1221#p1221 <![CDATA[Re: "You need PHP v5.2+" error even with PHP 5.2.13 installe]]> version_compare() function looks at ( -1.el5.art ), and considers that a pre-release version. Pre-release versions, such as 5.2.0-dev, are considered lower than their final release counterparts (like 5.2.0).

What you can do is pop this line into your /wp-config.php file:
Code:
define ("WS_PLUGIN__QCACHE_MIN_PHP_VERSION", "5.2.13-1.el5.art");

Statistics: Posted by Jason Caldwell — June 26th, 2010, 12:28 am


]]>
2010-06-25T18:51:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=290&p=1210#p1210 <![CDATA["You need PHP v5.2+" error even with PHP 5.2.13 installed]]>
Checking with my server config and verified by their techs, I have php 5.2.13-1.el5.art active.

However I still get the "You need PHP v5.2+" etc. error no matter what and cannot use Quick Cache.

Is there any way around this problem? Thanks.

Statistics: Posted by PaulieP — June 25th, 2010, 6:51 pm


]]>