Re: Notice: Undefined variable: tplData in includes/xarTemplate.php on line 1056

Andreas Nyback <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Organization Xaraya
Message-ID <[email protected]>
Radu Herinean skrev:
 >
 >
 > ---------- Forwarded message ----------
 > From: Radu Herinean <[email protected]>
 > Date: Sun, Apr 6, 2008 at 1:29 PM
 > Subject: xaraya problem with php 5.2.6, did you solved it?
 > To: [email protected]
 >
 >
 > Hi Andreas,
 > i have the same problem you described here: 
http://www.xaraya.com/index.php/newsgroups/xaraya.user/10314
 > did you managed to solve it in some other way than downgrading to 5.2.4?
 >
 > many thanks in advance for any hint.
 > regards
 > radu
 >
 > [quote]
 > ^Error Condition
 > see below
 >
 > Recursive Error
 > Normal Xaraya error processing has stopped because of a recurring PHP 
error.
 > The last registered error message is:
 > PHP Error code: 8
 >
 > At: /somepath/includes/xarTemplate.php (Line: 1056) Undefined 
variable: tplData
 > [/quote]
 >
 >
 >

Andreas Nyback skrev:
> If looks like i get this trouble if i run php 5.2.5 or 5.2.6
> php 5.2.4 works fine...
> Anyone else running xaraya on php 5.2.5 or above?
> /Andreas
> 
> 
> Andreas Nyback skrev:
>> Suddenly got this after a reboot of a server. Two different installs 
>> give same error. Site loads but with a bunch of those on each page.
>> Also pages like /upgrade.php has same errors on them.
>>
>> Anyone has a hint where to look for the reason?
>>
>> new version of php and mysql could maybe have been activated with the 
>> reboot. Sites where not touched so my guess is that something like 
>> php/mysql/apache changed.
>>
>> Same result with Xaraya 1.1.3 and 1.1.4 and latest from monotone.
>> /Andreas
>>
>>
>> ---------------------------------------
>>
>> Notice: Undefined variable: tplData in 
>> /var/www/nyback/htdocs/includes/xarTemplate.php on line 1056
>>
>> Notice: Undefined variable: tplData in 
>> /var/www/nyback/htdocs/includes/xarTemplate.php on line 1056
>>
>> Warning: Cannot modify header information - headers already sent by 
>> (output started at 
>> /var/www/nyback/htdocs/includes/xarTemplate.php:1056) in 
>> /var/www/nyback/htdocs/var/cache/templates/993878f9fca2c855e5626e6bc339f646.php 
>> on line 11
>>
>> Notice: Undefined variable: tplData in 
>> /var/www/nyback/htdocs/includes/xarTemplate.php on line 1056
>>
>> Notice: Undefined variable: tplData in 
>> /var/www/nyback/htdocs/includes/xarTemplate.php on line 1056
>>
>> Notice: Undefined variable: tplData in 
>> /var/www/nyback/htdocs/includes/xarTemplate.php on line 1056
>>
>>
>> ----------------------------------------------------
>>
>> Some log.txt output:
>>
>>
>>
>> 2008/03/06 01:13:17 0.77767000 +0.289 [DEBUG] Using template : 
>> themes/nyback/modules/articles/user-summary-news.xt
>> 2008/03/06 01:13:17 0.77906600 +0.290 [DEBUG] Using template : 
>> themes/nyback/modules/articles/user-summary-news.xt
>> 2008/03/06 01:13:17 0.78157300 +0.293 [DEBUG] Using template : 
>> themes/nyback/modules/articles/user-summary-news.xt
>> 2008/03/06 01:13:17 0.78296100 +0.294 [DEBUG] Using template : 
>> themes/nyback/modules/articles/user-summary-news.xt
>> 2008/03/06 01:13:17 0.78757900 +0.299 [DEBUG] Using template : 
>> modules/base/xartemplates/pager-default.xd
>> 2008/03/06 01:13:17 0.78992000 +0.301 [DEBUG] Using template : 
>> themes/nyback/modules/articles/user-view.xt
>> 2008/03/06 01:13:17 0.79194000 +0.303 [ERROR] Logged error: code: 2 
>> ASSERT_FAILURE | ASSERTION FAILED: 
>> /var/www/nyback/htdocs/includes/xarTemplate.php [1103] : 
>> is_array($tplData); /* Template data should always be passed in an 
>> array */
>> 2008/03/06 01:13:17 0.79278400 +0.304 [ERROR] Logged error backtrace:
>> Array
>> (
>>     [0] => Array
>>         (
>>             [file] => /var/www/nyback/htdocs/includes/xarException.php
>>             [line] => 118
>>             [function] => xarException__backTrace
>>             [args] => Array
>>                 (
>>                 )
>>
>>         )
>>
>>     [1] => Array
>>         (
>>             [file] => /var/www/nyback/htdocs/includes/xarException.php
>>             [line] => 443
>>             [function] => xarErrorSet
>>             [args] => Array
>>                 (
>>                     [0] => 2
>>                     [1] => ASSERT_FAILURE
>>                     [2] => ASSERTION FAILED: 
>> /var/www/nyback/htdocs/includes/xarTemplate.php [1103] : 
>> is_array($tplData); /* Template data should always be passed in an 
>> array */
>>                 )
>>
>>         )
>>
>>     [2] => Array
>>         (
>>             [function] => xarException__assertErrorHandler
>>             [args] => Array
>>                 (
>>                     [0] => 
>> /var/www/nyback/htdocs/includes/xarTemplate.php
>>                     [1] => 1103
>>                     [2] => is_array($tplData); /* Template data should 
>> always be passed in an array */
>>                 )
>>
>>         )
>>
>>     [3] => Array
>>         (
>>             [file] => /var/www/nyback/htdocs/includes/xarTemplate.php
>>             [line] => 1103
>>             [function] => assert
>>             [args] => Array
>>                 (
>>                     [0] => is_array($tplData); /* Template data should 
>> always be passed in an array */
>>                 )
>>
>>         )
>>
>>     [4] => Array
>>         (
>>             [file] => /var/www/nyback/htdocs/includes/xarTemplate.php
>>             [line] => 1020
>>             [function] => xarTpl__executeFromFile
>>             [args] => Array
>>                 (
>>                     [0] => 
>> modules/articles/xartemplates/includes/publinks.xd
>>                     [1] =>
>>                 )
>>
>>         )
>>
>>     [5] => Array
>>         (
>>             [file] => 
>> /var/www/nyback/htdocs/var/cache/templates/1a8af955416e76e45e5827cfeb9ddee1.php 
>>
>>             [line] => 24
>>             [function] => xarTpl_includeModuleTemplate
>>             [args] => Array
>>                 (
>>                     [0] => articles
>>                     [1] => publinks
>>                     [2] =>
>>                 )
>>
>>         )
>>
>>     [6] => Array
>>         (
>>             [file] => /var/www/nyback/htdocs/includes/xarTemplate.php
>>             [line] => 1069
>>             [args] => Array
>>                 (
>>                     [0] => 
>> /var/www/nyback/htdocs/var/cache/templates/1a8af955416e76e45e5827cfeb9ddee1.php 
>>
>>                 )
>>
>>             [function] => include
>>         )
>>
>>     [7] => Array
>>         (
>>             [file] => /var/www/nyback/htdocs/includes/xarTemplate.php
>>             [line] => 1155
>>             [function] => xarTpl__execute
>>             [args] => Array
>>                 (
>>                     [0] =>
>>                     [1] => Array
>>                         (
>>                             [publabel] => Publication
>>                             [publinks] => Array
>>                                 (
>>                                     [0] => Array
>>                                         (
>>                                             [pubtitle] => News Articles
>>                                             [pubid] => 1
>>                                             [publink] => 
>> http://www.nyback.com/index.php/articles/news/
>>                                             [pubcount] => 25
>>                                             [pubjoin] =>
>>                                         )
>>
>>                                     [1] => Array
>>                                         (
>>                                             [pubtitle] => Personlig 
>> presentation
>>                                             [pubid] => 9
>>                                             [publink] => 
>> http://www.nyback.com/index.php/presentation/
>>                                             [pubcount] => 3
>>                                             [pubjoin] =>  -
>>                                         )
>>
>>                                 )
>>
>>                             [maplabel] => View Article Map
>>                             [maplink] => 
>> http://www.nyback.com/index.php/articles/news/map/
>>                             [archivelabel] => View Archives
>>                             [archivelink] => 
>> http://www.nyback.com/index.php/articles/news/archive/
>>                             [pager] => <div class="xar-pager">
>>             &nbsp;&nbsp;<span title="First page">|&lt;</span>
>>
>>
>>
>>
>>             &nbsp;&nbsp;<span title="Previous page; 0 items">&lt;</span>
>>
>>             &nbsp;&nbsp;<span title="Page 1">1</span>
>>
>>             &nbsp;&nbsp;<a 
>> href="http://www.nyback.com/index.php/articles/?startnum=11" 
>> title="Page 2 (items 11 to 20)">2</a>
>>
>>             &nbsp;&nbsp;<a 
>> href="http://www.nyback.com/index.php/articles/?startnum=21" 
>> title="Page 3 (items 21 to 25)">3</a>
>>
>>
>>
>>             &nbsp;&nbsp;<a title="Next page; 10 items" 
>> href="http://www.nyback.com/index.php/articles/?startnum=11">&gt;</a>
>>
>>
>>
>>
>>             &nbsp;&nbsp;<a title="Last page" 
>> href="http://www.nyback.com/index.php/articles/?startnum=21">&gt;|</a>
>> </div><br /><br />Sort by&nbsp;Date&nbsp;&nbsp;<a 
>> href="http://www.nyback.com/index.php/articles/?sort=title">Title</a>&nbsp;&nbsp;<a 
>> href="http://www.nyback.com/index.php/articles/?sort=hits">Hits</a>&nbsp;
>>                             [viewpager] => <div class="xar-pager">
>>             &nbsp;&nbsp;<span title="First page">|&lt;</span>
>>
>>
>>
>>
>>             &nbsp;&nbsp;<span title="Previous page; 0 items">&lt;</span>
>>
>>             &nbsp;&nbsp;<span title="Page 1">1</span>
>>
>>             &nbsp;&nbsp;<a 
>> href="http://www.nyback.com/index.php/articles/?startnum=11" 
>> title="Page 2 (items 11 to 20)">2</a>
>>
>>             &nbsp;&nbsp;<a 
>> href="http://www.nyback.com/index.php/articles/?startnum=21" 
>> title="Page 3 (items 21 to 25)">3</a>
>>
>>
>>
>>             &nbsp;&nbsp;<a title="Next page; 10 items" 
>> href="http://www.nyback.com/index.php/articles/?startnum=11">&gt;</a>
>>
>>
>>
>>
>>             &nbsp;&nbsp;<a title="Last page" 
>> href="http://www.nyback.com/index.php/articles/?startnum=21">&gt;|</a>
>> </div>
>>                             [sort] => date
>>                             [letter] =>
>>                             [ptid] =>
>>                             [submitlink] => 
>> http://www.nyback.com/index.php?module=articles&amp;type=admin&amp;func=new 
>>
>>                             [cids] => Array
>>                                 (
>>                                 )
>>
>>                             [catid] =>
>>                             [showpublinks] => 0
>>                             [showprevnext] => 0
>>                             [showcatcount] => 0
>>                             [titles] => Array
>>                                 (
>>                                     [51] => webapp-config mini howto
>>                                     [50] => Foton
>>                                     [49] => HP 2840 scanning gives 
>> Error during device I/O
>>                                     [48] => cyrus imap emails keeps 
>> getting marked as unread
>>                                     [47] => cyrus imap recontruct 
>> recursivley
>>                                     [46] => Mackes sida
>>                                     [45] => fil-arkivet
>>                                     [44] => Nya foton
>>                                     [43] => Chat med Noel
>>                                     [24] => Dom första bilderna har 
>> kommit!
>>                                 )
>>
>>                             [numcols] => 0
>>                             [number] => 10
>>                             [columns] => Array
>>                                 (
>>                                     [0] => Array
>>                                         (
>>                                             [0] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 16 Feb 2008</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/51">webapp-config 
>> mini howto</a><br />
>> <p>The webapp-config tool in gentoo has a complicated syntax to 
>> remember and i always forget between times how to use 
>> it.</p></td></tr></table>
>>                                             [1] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 07 Feb 2008</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/50">Foton</a><br />
>> <p>Fr&aring;n sommarsemestern p&aring; <a 
>> href="http://www.nyback.com/index.php?module=gallery2&amp;g2_itemId=26366" 
>> rel="external">Berg&ouml;</a> </p><a 
>> href="http://www.nyback.com/index.php?module=gallery2&amp;g2_itemId=26366" 
>> rel="external"></a></td></tr></table>
>>                                             [2] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 02 Jan 2008</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/49">HP 2840 
>> scanning gives Error during device I/O</a><br />
>> When connecting on ethernet and scanning gives an error message 
>> &quot;Error during device I/O&quot; problem could be you changed snmp 
>> community string in the printer. You have to keep snmp community 
>> string set to &quot;public&quot;.</td></tr></table>
>>                                             [3] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 07 Nov 2007</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/48">cyrus imap 
>> emails keeps getting marked as unread</a><br />
>> <p>Just remove the .seen file for the user on the server and all will 
>> be ok again.</p><p>Mine was in&nbsp; 
>> /var/imap/domain/n/nyback.com/user/a/andreas.seen</p></td></tr></table>
>>                                             [4] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 06 Nov 2007</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/47">cyrus imap 
>> recontruct recursivley</a><br />
>> Several times now I ran into problems where mailboxes got the 
>> cyrus.index file corrupted. cyrus.index had to be deleted and 
>> recreated with reconstruct on the mailbox. And recursive reconstruct 
>> never worked for me. So i have to do reconstruct on every single 
>> subfolder.</td></tr></table>
>>                                             [5] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 28 Oct 2007</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/46">Mackes 
>> sida</a><br />
>> Nu kan du se vad kusin macke skriver p&aring; sin hemsida nere till 
>> v&auml;nster.</td></tr></table>
>>                                             [6] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 24 Sep 2007</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/45">fil-arkivet</a><br 
>> />
>> <p>Nu kan man komma &aring;t hela fil-arkivet i menyn. Filmer, musik, 
>> talb&ouml;cker, serier, kartor mm mm</p><p>Men man m&aring;ste vara 
>> registrerad p&aring; sajten f&ouml;r att kunna se sakerna. Klicka 
>> p&aring; &quot;<a href="http://www.nyback.com/index.php/registration" 
>> rel="external">registrera nytt konto/register new account</a> &quot; 
>> om du inte har ett konto.&nbsp;</p></td></tr></table>
>>                                             [7] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 04 Sep 2007</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/44">Nya 
>> foton</a><br />
>> <p>Har inte hunnit med sidan p&aring; ett tag nu. Men jag han i varje 
>> fall st&auml;da lite i h&ouml;rnorna nu. Fick upp lite gamla 
>> fotografier som legat i k&ouml;.</p><p><a 
>> href="index.php?module=gallery2&amp;g2_itemId=25507" 
>> rel="external">verbier 2005&nbsp;</a><br />Ett par filmer fr&aring;n 
>> <a 
>> href="http://www.nyback.com/index.php?module=gallery2&amp;g2_itemId=21484&amp;g2_page=4" 
>> rel="external">Angelikas konfa</a>.<br /><a 
>> href="http://www.nyback.com/index.php?module=gallery2&amp;g2_itemId=25661" 
>> rel="external">valborg 2005</a>  </p><p>Finns massor mer ligger och 
>> v&auml;ntar...&nbsp;</p></td></tr></table>
>>                                             [8] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 25 Oct 2006</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/43">Chat med 
>> Noel</a><br />
>> <p><img style="border-width: 2px; width: 135px; height: 180px" 
>> src="../../gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=12056&amp;g2_serialNumber=5&amp;g2_GALLERYSID=ee89e3dc8241d5db9299e4d190a7e0b7%20border=" 
>> alt="Jenni" title="Jenni" width="180" height="120" align="right" 
>> /></p><p>Vi chattar ibland,Noel och jag. Just nu sitter Noel sitter 
>> vid sin dator p&aring; rummet. Jag sitter och jobbar i k&ouml;ket. <br 
>> /></p><p>(Tech note: Vi anv&auml;nder inte msn eller n&aring;t 
>> s&aring;nt lamt. Som linuxanv&auml;ndare s&aring; &ouml;ppnar Noel en 
>> ssh till min burk och k&ouml;r write p&aring; kommandoraden 
>> :-)</p><p>H&auml;r &auml;r hans senaste chatsession:</p><p>Meddelande 
>> fr&aring;n noel@centralen p&aring; pts/15 klockan 19:49 ...<br />du 
>> &auml;r v&auml;rdens papskaliastpappa!<br /><br />Meddelande 
>> fr&aring;n noel@centralen p&aring; pts/15 klockan 19:53 ...<br />du 
>> &auml;r s&aring; snel f&ouml;r at du &auml;r s&aring; dum i huvudet<br 
>> /><br />Meddelande fr&aring;n noel@centralen p&aring; pts/15 klockan 
>> 19:57 ....<br />korkskale ...oj f&aring;r du inte upp korken!<br />kom 
>> och ha brotnings marts<br /></p><p>[paus f&ouml;r brottningsmatch, bad 
>> och pyjamas]&nbsp;</p><p>Meddelande fr&aring;n noel@centralen p&aring; 
>> pts/15 klockan 20:32 ...<br />dit dumhuve dumskale 
>> slemiakloakrota.varf&ouml;r &auml;r rymden oedlig.varf&ouml;r har vi 
>> nio planeter i v&aring;rat solsystem.je mej svar nu<br/><br 
>> />Meddelande fr&aring;n noel@centralen p&aring; pts/15 klockan 20:41 
>> ...<br />varf&ouml;r finsde dumskalar som min pappa<br />jag har got 
>> p&aring; kalas hos tobias<br />jag g&aring;r inte &aring;leger mej<br 
>> />jag ska vara upe till klokan 12 p&aring; naten.jag menar alvar<br 
>> /><br />[L&auml;ggdags, klart-slut]&nbsp;</p></td></tr></table>
>>                                             [9] => 
>> <table><tr><td></td><td style="text-align:left;width:100%;">
>> </td></tr><tr><td style="vertical-align:top;font-weight:bold;"><div 
>> style="width:80px">
>> 17 Mar 2006</div>
>> </td><td class="xar-accent-tlc"><a class="xar-title" 
>> href="http://www.nyback.com/index.php/articles/news/24">Dom första 
>> bilderna har kommit!</a><br />
>> <p><img style="border-width: 2px; width: 180px; height: 120px" 
>> src="/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=23007&amp;g2_serialNumber=2&amp;g2_GALLERYSID=badb037d36e15298e2b14654ed1be11c" 
>> border="2" alt="Jenni" title="Jenni" width="180" height="120" 
>> align="right" /></p><p>Fler bilder i <a 
>> href="/xaraya/index.php?module=gallery2&amp;g2_view=core.ShowItem&amp;g2_itemId=23006" 
>> rel="external">Jennis album</a> &nbsp;</p></td></tr></table>
>>                                         )
>>
>>                                 )
>>
>>                             [output] =>
>>                             [sortlinks] => Array
>>                                 (
>>                                     [0] => Array
>>                                         (
>>                                             [stitle] => Date
>>                                             [slink] =>
>>                                         )
>>
>>                                     [1] => Array
>>                                         (
>>                                             [stitle] => Title
>>                                             [slink] => 
>> http://www.nyback.com/index.php/articles/?sort=title
>>                                         )
>>
>>                                     [2] => Array
>>                                         (
>>                                             [stitle] => Hits
>>                                             [slink] => 
>> http://www.nyback.com/index.php/articles/?sort=hits
>>                                         )
>>
>>                                 )
>>
>>                             [_bl_module_name] => articles
>>                             [_bl_module_type] => user
>>                             [_bl_module_func] => view
>>                             [tpl] => stdClass Object
>>                                 (
>>                                     [pageTitle] => www.nyback.com :: 
>> :: News Articles
>>                                 )
>>
>>                         )
>>
>>                     [2] => themes/nyback/modules/articles/user-view.xt
>>                     [3] => 
>> ../var/cache/templates/1a8af955416e76e45e5827cfeb9ddee1.php
>>                 )
>>
>>         )
>>
>>
>>
>>
_______________________________________________
Xaraya_user mailing list
[email protected]
http://xaraya.com/mailman/listinfo/xaraya_user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.