Posted by luigi@drupal.org on January 31, 2005 at 1:39pm
| Project: | PHPTemplate |
| Version: | 4.5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | adschar |
| Status: | needs review |
Issue Summary
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
Comments
#1
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.
#2
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
this works for me also