Re: Notice: Undefined variable: tplData in includes/xarTemplate.php on line 1056
Ryan Walker <[email protected]> Thu, 22 May 2008 00:10:35 -0400
| Newsgroups | gmane.comp.cms.xaraya.user |
|---|---|
| Message-ID | <[email protected]> |
I got a slightly different error message on one site with PHP 5.2.6... ASSERTION FAILED: /path/to/includes/xarTemplate.php [1051] : is_array($tplData); /* Template data should always be passed in an array */ The problem was fixed by editing xarTemplate.php as described below. -Ryan Michel V. wrote: > For reference: > > 5.2.6 gave me the same trouble. > First option below here solved it. > > Michel > > jojodee wrote: > >> jojodee wrote: >> >> >>> So we can fix it easy enough for now: >>> >>> $temp = $tplData; >>> $tplData['_bl_data']=$temp; >>> >>> or >>> tplData['_bl_data'] = &$tplData; should also work. >>> >>> >> last line should be: $tplData['_bl_data'] = &$tplData; >> >> >> I looked on php.net for any indication of changed error reporting or >> behaviour and found a few bugs but not quite the same. >> >> http://bugs.php.net/bug.php?id=43505 may be related. >> >> Jo >> >> > _______________________________________________ > Xaraya_user mailing list > [email protected] > http://xaraya.com/mailman/listinfo/xaraya_user > > -- Ryan Walker www.WebCommunicate.net: Insights and resources for effective websites.