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.
Tried installing the beta version on a relatively clean D6 install and got the following error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/modctek1/public_html/room4/sites/all/modules/masquerade/masquerade.module on line 249
Had to go in and disable via phpMyAdmin.
Comments
Comment #1
deekayen CreditAttribution: deekayen commentedI haven't reproduced it yet, but this might help. Replace line 249 with
if that doesn't work, please report back the results of replacing 249 with (don't do this on a live site)
If you can't/don't want to do either of those, please tell me which version of PHP you're running.
Comment #2
modctek CreditAttribution: modctek commentedThe error occurred under PHP 4.4.7. I'm going to attempt an upgrade to PHP5 and see if it still throws the error.
Comment #3
Dave ReidIt's an chained-object operation that is not supported in PHP 4. This is a duplicate of #285472: Parse error with PHP 4: same line of code, different versions.