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

CommentFileSizeAuthor
#1 phptemplate.engine.diff1.42 KBadschar
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adschar’s picture

Assigned: Unassigned » adschar
FileSize
1.42 KB

Did 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.

sengsara’s picture

What 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.

Mad Maks’s picture

this works for me also

urbanlegend’s picture

Version: 4.5.x-1.x-dev » 8.x-1.x-dev
Issue summary: View changes
Status: Needs review » Closed (outdated)

Given 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.