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.
When i try to access the configuration page of the themes that run on phptemplate, i get the following error:
Fatal error: Cannot use string offset as an array in /usr/home/web/bla/themes/engines/phptemplate/phptemplate.engine on line 128
I use PHP5, apache2
Comment | File | Size | Author |
---|---|---|---|
#1 | phptemplate.engine.diff | 1.42 KB | adschar |
Comments
Comment #1
adschar CreditAttribution: adschar commentedDid happen to me too. The problem is a PHP 5 related one.
In the patch also I solve a notice about returning the result of operator new by reference.
Comment #2
sengsara CreditAttribution: sengsara commentedWhat if you just change line 112 from
$value = variable_get('phptemplate_' . $type . '_links', '');
to
$value = variable_get('phptemplate_' . $type . '_links', false);
?
It works for me.
Comment #3
Mad Maks CreditAttribution: Mad Maks commentedthis works for me also
Comment #4
urbanlegend CreditAttribution: urbanlegend at Acquia commentedGiven that this issue has not been updated in 11 years or more, I am closing this ticket as outdated (no longer needed and/or relevant). However, if anyone feels this represents an issue that is still being encountered in the current version of Drupal, please reopen and/or provide additional comments.