Closed (fixed)
Project:
PHPIDS
Version:
6.x-1.8
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
8 Jul 2009 at 20:48 UTC
Updated:
29 Sep 2009 at 09:34 UTC
Enabling the module it throws an error:
"To use PHPIDS your webhost must running with PHP 5.1.6 or higher. Your current PHP version: 5.1.6 (In gebruik: PHPIDS Unsupported PHP version found)"
The module can't be activated. Some of the earlier dev's or rc's did accept PHP 5.1.6, although I do not recall which one. The latest 6.x-1.8 throws this error.
Comments
Comment #1
it-cruHello erem,
could you please post the output of phpversion() ?
You could try to replace in phpids.install file
if (version_compare('5.1.6', PHP_VERSION) != -1) {to
if (version_compare(PHP_VERSION, '5.1.6', '<') {I hope I could test it today. Sry that the answer take so long :( .. Gos77
Comment #2
erem commentedHi, I was a bit away as well, driving through France and stuff... really enjoyable though.
phpversion() says '5.1.6' allright.
In 6.x-1.8-beta2 changing the line to "if (version_compare(PHP_VERSION, '5.1.6', '<') {" throws a blank page after enabling the module and clicking submit.
From the error log
PHP Parse error: syntax error, unexpected '{' in [path]/sites/all/modules/phpids/phpids.install on line 17Adding another closing bracket does the trick, the module is enabled. A new package (6.x-1.8) is available, I'll install that one right now.
6.x-1.8 needs the same hack to pass validation.
Cheers, Roel
Comment #3
it-cruHello Roel,
could you please test current dev-snapshot? I've added the fix and need some feedback, if it works now correct with PHP 5.1.6 without the hack. I would be glad to hear from you ;)
greetz Gos77
Comment #4
erem commentedThe dev 6.x-1.x-dev (2009-aug-19) works fine on 5.1.6. Thx
Comment #5
it-cruHello Roel,
you could also upgrade to version 1.9. It is based on your tested dev-snapshot and so you wouldn't use a development version in your productive environment.
Issue could be closed now.
Greetz Gos77
Comment #6
erem commentedphpids 6.x-1.9 works like a charm on PHP 5.1.6, ticket closed.
Thanks again Gos77