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

b.one’s picture

I 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

quicksketch’s picture

Title: cant install option_element » Can't install option_element (requires PHP 5)
Priority: Critical » Normal

This 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?

b.one’s picture

i'm was running PHP 4.4.9 ...

I change and pass PHP 5.2.14 and it works now!

thanks for your help

quicksketch’s picture

Status: Active » Fixed

I've added PHP = 5.0 to the .info file so that this requirement is clear.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.