Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My site blankscreens with this error message evry time i try installing the ImageAPI module:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /modules/imageapi/imageapi_gd.module on line 242
How do i fix this?
Comment | File | Size | Author |
---|---|---|---|
#7 | imageapi_431422.D5.patch | 708 bytes | drewish |
Comments
Comment #1
apadernoComment #2
apadernoComment #3
dawehnerthe Problem is
the stdClass before $image,
This is quite a new php feature. if "stdClass" is not used here, nothing breakes, there are just problem with wrong parameters.
Are there any reason to use it here?
Comment #4
apadernoIt should just suggest to PHP the type of the parameter used, but it doesn't give a big help when the parameter is a generic class like in this case.
As the module should be compatible with PHP4, the parameter type should be avoided.
Comment #5
drewish CreditAttribution: drewish commentedHumm... yeah should fix that. affects both 5.x and 6.x. Committing the attached to DRUPAL-5 and DRUPAL-6--1.
Comment #6
drewish CreditAttribution: drewish commentedactually only applied to the 5.x branch the 6.x has a PHP 5.1 requirement
Comment #7
drewish CreditAttribution: drewish commented