Fatal error: Cannot use string offset as an array

luigi@drupal.org - January 31, 2005 - 13:39
Project:PHPTemplate
Version:4.5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:adschar
Status:needs review
Description

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

#1

adschar - February 4, 2005 - 13:17
Assigned to:Anonymous» adschar

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.

AttachmentSize
phptemplate.engine.diff 1.42 KB

#2

sengsara - March 16, 2005 - 05:06

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.

#3

Mad Maks - March 19, 2005 - 10:12

this works for me also

 
 

Drupal is a registered trademark of Dries Buytaert.