TinyPortal

Development => Bugs/Errors => Feedback => Fixed Bugs => Topic started by: Nolt on April 20, 2012, 08:14:42 PM

Title: Error in TPportal.lang.php
Post by: Nolt on April 20, 2012, 08:14:42 PM
SMF 2.0.2
TP 1.0 gold
Lang: Polish

On one of my sites I get error:
8: Undefined index: alternate
File: /home/*****/public_html/Themes/default/languages/TPortal.polish-utf8.php (main sub template - eval?)
Line: 325


When user clicks Forum button in logs I have error like this above. In TPortal.polish-utf8.php there is no line 325. I checked /Sources/Subs.php for issues with menu items but all seems to be ok. Any ideas?
Title: Re: Error in TPportal.lang.php
Post by: IchBin on April 20, 2012, 09:08:46 PM
Do you have template eval disabled? That should give you the proper error with the proper file name.
Title: Re: Error in TPportal.lang.php
Post by: Nolt on April 21, 2012, 12:44:20 AM
Thanks, fixed ;)
Title: Re: Error in TPportal.lang.php
Post by: ZarPrime on April 21, 2012, 07:30:15 AM
Quote from: Nolt on April 21, 2012, 12:44:20 AM
Thanks, fixed ;)

Nolt, really?  What was the problem, in case anyone else runs into that error?

ZarPrime
Title: Re: Error in TPportal.lang.php
Post by: Nolt on April 21, 2012, 11:58:23 AM
I had template eval enabled, when option is checked (disable template eval) logs all clear.
I'm curious why it was generated? It's TP bug?
Title: Re: Error in TPportal.lang.php
Post by: ZarPrime on April 21, 2012, 12:31:49 PM
Quote from: Nolt on April 21, 2012, 11:58:23 AM
I had template eval enabled, when option is checked (disable template eval) logs all clear.
I'm curious why it was generated? It's TP bug?

I seriously doubt it.  I can't recall "alternate" being a variable in TP but I could be wrong.  It's happened before. ;) I suspect it was either from another SMF Mod or from some bad block code.

Jim
Title: Re: Error in TPportal.lang.php
Post by: sangham.net on April 18, 2013, 04:19:09 PM
I am not sure if that is the same "problem", I have seen, that the file:

.../languages/TPortal.english-utf8.php (main sub template - eval?) had caused some thousands of errors already.

Sorry if the request sounds a little naive and uniformed.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fsangham.net%2FSmileys%2Fsadhu_sangham_sw.gif&hash=e3299fe21483bdca6cf59bd25a8c6109b379e840)