Closed (fixed)
Project:
Options Element
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Nov 2010 at 03:16 UTC
Updated:
26 Jan 2011 at 07:40 UTC
When I try to activate the module, I get this critical error :
Parse error: syntax error, unexpected '=', expecting ')' in /homez.144/afriquep/www/site/sites/default/modules/options_element/options_element.module on line 165
what can I do to fix ?
thx
Comments
Comment #1
b.one commentedI try to fix that, but I'm not good enough...
the line 165 (and following) looks like that :
function form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array()) {
module_load_include('inc', 'options_element');
return _form_options_from_text($text, $key_type, $flat, $duplicates);
}
if someone could help
Comment #2
quicksketchThis is because you need to use PHP 5 to install options element. We should specify this as a requirement of the module. What version of PHP are you running?
Comment #3
b.one commentedi'm was running PHP 4.4.9 ...
I change and pass PHP 5.2.14 and it works now!
thanks for your help
Comment #4
quicksketchI've added PHP = 5.0 to the .info file so that this requirement is clear.