cron errors

lancets - April 30, 2008 - 17:40
Project:PHPIDS
Version:6.x-1.7
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I've just installed this module, along with the latest PHPIDS 0.4.7 release, and am seeing the following errors in my cron job...

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /webroot/drupal-6.2/sites/all/modules/phpids/IDS/Init.php on line 55

Am I using the wrong version, or is anyone else experiencing this as well?

#1

swentel - May 1, 2008 - 19:54

That's really weird. I tested it with all packages from the phpids.org website and got no errors with all 3 of them.
What php version are you on ? This error looks like it's php4 although the module should warn you php4 isn't supported.

#2

lancets - May 2, 2008 - 07:34

Yes, I'm using PHP5... Here's my status report below... As you can see, Drupal is reporting that cron maintenance has not run for 3 days and 9 hours, which is when I installed the PHPIDS module. Actually it's getting kicked off every hour, but errors out on that T_STRING error, so it doesn't complete the cron job.

Drupal 6.2
Access to update.php Protected
Configuration file Protected
Cron maintenance tasks Last run 3 days 9 hours ago
Cron has not run recently. For more information, see the online handbook entry for configuring cron jobs. You can run cron manually.
Database updates Up to date
Drupal core update status Up to date
File system Writable (private download method)
GD library bundled (2.0.34 compatible)
Module and theme update status Up to date
MySQL database 5.0.45
PHP 5.2.5
PHP memory limit 64M
PHP register globals Disabled
PHPIDS Found
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache

#3

swentel - May 2, 2008 - 11:13

Hmmm that's really strange. I can't reproduce the error myself untill now. Maybe it clashes with a contrib module ? Could you give me the list of contributed modules you have installed, or is this a clean drupal 6 install ? In the meantime, I'll also try and upgrade to 5.2.5 (php version here at this point is 5.2.4, although I don't think this will be an issue)

#4

lancets - May 3, 2008 - 08:16

Not much installed yet, as I just installed Drupal for this site last weekend. So far all I have added is the Marinelli theme and the PHPIDS module.

#5

swentel - May 5, 2008 - 20:13

I still can't reproduce it, even with PHP 5.2.5
I'd say, try downloading the IDS package again, maybe there was some sort of error with the download, it's the only option I can think of right now.

#6

lancets - October 20, 2008 - 04:50
Status:active» closed

Yes, you can close this issue. It's been a while, but I believe I had a configuration problem with PHP, and even though Drupal was using PHP 5.x, the module was using PHP 4.x. I use GoDaddy for hosting, so had to make some changes to ensure everything was using PHP 5.x. Once I got PHP configured properly, the PHPIDS module worked properly. Sorry for bothering you with this issue. Thanks again for your work on this module!

#7

Gos77 - October 20, 2008 - 08:07

hello lancets,

thx for reply .. and every posted issue is the best way to create a better product ;)

greetz Gos77

 
 

Drupal is a registered trademark of Dries Buytaert.