|
From: Josh Trutwin on 12 Oct 2007 15:34 On Wed, 10 Oct 2007 09:30:29 -0500 Monte Ohrt <monte(a)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
|
Pages: 1 Prev: sintax problem Next: Newline being inserted after plugin - [SOLVED] |