Closed (fixed)
Project:
Troll
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
24 Apr 2009 at 17:57 UTC
Updated:
9 May 2009 at 06:00 UTC
Jump to comment: Most recent
Parse error: syntax error, unexpected '{' in /home/site/public_html/drupal/modules/troll/troll.module on line 97
This shows after I install the module. Is there something wrong with the 6.1 version?
Comments
Comment #1
deekayen commentedYour version of PHP is probably too old for the new features. Adding the new requirement to .info in my next commit.
Comment #2
TSNetwork commentedActually I'm with the newest 5.2.9 version...
Comment #3
deekayen commentedAlright then, that's in Joshua's new code.
Comment #4
Anonymous (not verified) commentedI'm looking at the CVS version, but what happens if you remove lines 97, 112, 113, 114 and 115?
That would be the lines:
try {
... and ...
}
catch (Exception $e) {
watchdog('troll', 'PHP-IDS appears to be configured incorrectly.');
}
Comment #5
TSNetwork commentedThank you, it works now. What was in that code, nothing too important I hope?
So now when someone is blocked he gets redirected to blocked.html, right?
Comment #6
Anonymous (not verified) commentedThat section of code was error handling code that was introduced in PHP5. If I had to guess what is going on, I'd say that you have PHP 4 and 5 installed and that your webserver has been configured to run with PHP4. At least that would be my guess.
Comment #7
TSNetwork commentedI don't think that's it but I moved the website this week and anything could have happened to cause it...