Re: [SMARTY] Newline being inserted after plugin - Still stumped
| From: | Josh Trutwin | Date: | Fri, 12 Oct 2007 19:34:20 +0000 |
| Subject: | Re: [SMARTY] Newline being inserted after plugin - Still stumped | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13775@lists.php.net to get a copy of this message | ||
On Wed, 10 Oct 2007 09:30:29 -0500
Monte Ohrt <monte@ohrt.com> wrote:
> That error has nothing to do with the newline, it has to do with
> how PHP5 handles strings and arrays. Double check which line is
> receiving the error, and see if there is something being accessed
> as an array, when actually no array is present.
Monte, thanks, but I'm still having trouble finding the problem.
I have the contents of the cached .php file here:
http://intel2.intrcomm.net/smarty.phps
Search for smarty_function_pb_link_to_template - the error is on the
line after the second occurrence:
Fatal error: Cannot use string offset as an array
in
/httpd/208.42.183.71/usnl.intrcomm.net/html/templates/cache/%%03^031^031BA0FD%%template-pb_nurse_list_12.php.php
on line 67
I ran this file through php -l (lint check) and it said there were no
Synax errors. But something has to be amiss because there is another
use of the link_to_template function above this one that works just
fine.
Also might be helpful:
http://intel2.intrcomm.net/template.phps (the
template)
http://intel2.intrcomm.net/function.phps (the
plugin definition)
Usually problems like this aren't too hard to find, but I've looked
at it and another smarty wizard and we're both stumped.
Thanks,
Josh