Installing Search404 module in Drupal 5.2 results in error message:
Parse error: syntax error, unexpected ',', expecting ')' in /var/www/drupal/modules/search404/search404.module
...and breaks Drupal completely (has to be replaced through older version).
Regards, asb
Comments
Comment #1
forngren commentedYes, I have seen the issue.
And no, no fix.
Comment #2
rconstantine commentedtry this fix (too lazy to roll patch):
replace the following function
I just changed a couple of lines in the middle. The original error was due to misuse of the variable_get function. Another error would occur for the same reason once the first one was fixed. At least, it seems to work for me now.
Comment #3
rconstantine commentedforgot to update the drop downs...
Comment #4
BradM commentedJust confirming that this patch fixed the error for me. One question:
Pretty new to drupal. Is there something additional I need to modify (to "sanitize") in this module?
Comment #5
rconstantine commentedNow that you mention it, perhaps each key should be run through either check_url() or check_plain(). one would probably do that by adding this just before $modifier = ...
or something like that. I haven't tested it yet.
Comment #6
BradM commentedhmm I think I'll remove this module for now. I like what it does but if it carries a potential risk then it's not for me. Thanks for the help anyway.
Comment #7
zyxware commentedHi all,
The error has been fixed and updated in the next version.
Cheers
zyxware
Comment #8
zyxware commentedComment #9
forngren commentedThis is just a friendly hint. It's a common practice on drupal.org to set the status to 'fixed' and then the drupal-issue-bot-script-thingie automatically changes the status to 'closed' after a week. This is to avoid a duplicate issues of recent fixes and shows that maintainer actually fixes things.
Thanks for the effort you put into this module!
Comment #10
rconstantine commentedThe bot takes two weeks. But yes, that is the standard here on d.o.
Comment #11
zyxware commentedThanks for the reminder. Will keep that in mind in the future.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.