When I installed this module on a site running on PHP version 5.3.2 I was unable to add a file to the SCORM field widget.
When I clicked on Upload the following warning was displayed:
warning: function_exists() expects parameter 1 to be string, array given in /Applications/MAMP/htdocs/f3/includes/form.inc on line 1002.
Stepping through the code I see that the value of $function in form.inc:_form_builder_handle_input_element gets to the SCORM field is indeed an array containing "SCORM_widget_value" twice. This causes the warning and causes the callback to not be called. I was unable to find where in the code this value might be getting set as an array.
I tried this on a site running PHP 5.2 and everything worked as expected, which is why I'm filing this issue with a PHP 5.3-related title.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2010-09-29 at 3.46.23 PM.png | 238.01 KB | alxp |
Comments
Comment #1
dirk.westrup commentedWe will check this.
Comment #2
dirk.westrup commentedWe have installed the module on an Ubuntu 10.04 LAMP System including PHP 5.3.2 and we don't get this error message. So, this cannot be a PHP 5.3 issue.
As soon as we are able to verify this issue in one of our test installations, we will fix it.