Parse error: syntax error, unexpected '=', expecting ')' in /home/x/public_html/xxx/modules/embed_widgets/embed_widgets_ui/embed_widgets_ui.module on line 1027
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | embed_widgets_ui-296809.patch | 871 bytes | jtsnow |
| #2 | Captura_da_tela-3.png | 293.73 KB | xcorex |
Comments
Comment #1
jtsnow commentedI am unable to find this error. Line 1027 is:
function embed_widgets_ui_sort_weight(&$sources = array()) {.The entire function is as follows:
When the code is run, I don't get this error. I'm using Eclipse as an IDE and it doesn't find a syntax error either. And by looking at the code myself, I can't find any error. Can you provide more information?
Comment #2
xcorex commentedLook at the screenshot.
Embed Widgets on
Embed Widgets iFrame on
Embed Widgets UI on
Google Gadgets on
Color Scheme API (6.x-1.0-beta) on
Tabs (6.x-1.x-dev) on
Comment #3
jtsnow commentedPlease test the attached patch. Since I am unable to reproduce this error, it is difficult for me to test.
Comment #4
jtsnow commentedThe reason you are getting this error and I am not is because you are using PHP4. It is highly recommended that you upgrade to PHP5. PHP4 is no longer supported and is no longer receiving security updates.
Comment #5
nedjoJohn, see
hook_requirements(), http://api.drupal.org/api/function/hook_requirements/6, for how to require PHP 5.x.Comment #6
xcorex commentedThank you jtsnow, a lot.
5.2.5 now and working very well.
Congratz!
Comment #7
jtsnow commentedPHP 5 requirement is now specified in the .info file.