TinyPortal

Development => Support => Topic started by: Kike_GL on December 10, 2012, 03:19:20 PM

Title: Undefined index: tp_panels
Post by: Kike_GL on December 10, 2012, 03:19:20 PM
Link to my site: http://www.perut.org
SMF version: SMF ver. 2.0.2
TP version: TP ver. 1.107
Default Forum Language: Spanish_latin_utf8
Theme name and version: Default
Browser Name and Version: iExplorea and Chome.
Mods installed: Aeva Media, Adk Blog, httpBL, Users Online Today ,FAQ Mod and Tapatalk
Related Error messages: Undefined index: tp_panels

http://perut.org/index.php?action=tpmod;shout=admin

File: ***/Themes/default/languages/TPortal.spanish_latin-utf8.php (tp_below sub template - eval?)
Línes: 28, 40, 41, 59, 71, 81, 82, 101

Title: Re: Undefined index: tp_panels
Post by: IchBin on December 10, 2012, 04:05:41 PM
Does $txt['tp_panels'] appear in your TPortal.spanish_latin-utf8.php file?
Title: Re: Undefined index: tp_panels
Post by: Kike_GL on December 10, 2012, 09:58:01 PM
There was "tp_panels" and added it, but continuous defect.

Now I have:
$txt['tp-panels'] = 'Paneles';
$txt['tp_panels'] = 'Paneles';


I just saw that there is another error related to the Shout Box:
in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
Title: Re: Undefined index: tp_panels
Post by: IchBin on December 11, 2012, 01:23:41 AM
Well I need the full errors you are seeing. That doesn't give me a line number or filename that I can lookup for the errors you are seeing.
Title: Re: Undefined index: tp_panels
Post by: Kike_GL on December 17, 2012, 03:46:07 PM
The same lines: 28, 40, 41, 59, 71, 81, 82 and 101.

The error only occurs after I asked to revalidate administrator password to see all shouts. Appears also double the administration menu on the left side.
Title: Re: Undefined index: tp_panels
Post by: IchBin on December 18, 2012, 04:28:36 PM
Did you turn off template eval in the server settings? After doing that, it should hopefully show a proper file where the error occurs. The error shouldn't occur in the language file since the only thing in the file should be the language strings themselves.  Just to make sure, please attach your file here so I can look.
Title: Re: Undefined index: tp_panels
Post by: Kike_GL on December 18, 2012, 04:59:49 PM
"Disable evaluation of templates" is not checket.
Title: Re: Undefined index: tp_panels
Post by: IchBin on December 18, 2012, 08:22:14 PM
Yes, that is what I asked. You need to check the box and save. then see what the errors are saying after that option is changed.

Why are you attaching your TPBlockLayout.template.php file? You said the error was in your TPortal.spanish_latin-uft8.php file right?
Title: Re: Undefined index: tp_panels
Post by: Kike_GL on December 19, 2012, 12:15:40 AM
"Disable evaluation of templates" is checket now.

http://perut.org/index.php?action=tpmod;shout=admin
8: Undefined index: tp_panels
Archivo: .../Themes/default/TPBlockLayout.template.php

Lines: 28, 40, 41, 59, 71, 81, 82 and 101.
Title: Re: Undefined index: tp_panels
Post by: IchBin on December 21, 2012, 12:56:02 AM
Is the error only appearing for your user?
Is it appearing for anyone else?
Do you get the error(s) every time you visit this URL?
http://perut.org/index.php?action=tpmod;shout=admin

From your picture, it looks to me like your forum is pretty screwed up. Maybe the mod or mods have been installed twice or some code is duplicated or something. Hard to say....

As a last resort you can do a fresh update of your SMF files and install your mods again to see if it clears things up.
Title: Re: Undefined index: tp_panels
Post by: Kike_GL on December 21, 2012, 04:39:37 PM
Quote from: IchBin™ on December 21, 2012, 12:56:02 AM
Is the error only appearing for your user?
Yes.

Quote from: IchBin™Is it appearing for anyone else?
No

Quote from: IchBin™Do you get the error(s) every time you visit this URL?
http://perut.org/index.php?action=tpmod;shout=admin
No, only when I revalidate the administrator password to enter menu: TP >> View shouts

Quote from: IchBin™From your picture, it looks to me like your forum is pretty screwed up.
After validate the admin password and see the menu twice, I can refresh and away one of the menus.

Quote from: IchBin™As a last resort you can do a fresh update of your SMF files and install your mods again to see if it clears things up.
I reinstall TP when passing SMF 2 and there were some conflicts with the ADK Blog MOD. Here I got help to fix it.
Title: Re: Undefined index: tp_panels
Post by: IchBin on December 23, 2012, 01:35:58 AM
Hmm... strange then.
Can you attach the tp-files/tp-modules/TPShout/Sources/TPShout.php and Sources/TPAdmin.php files please? I'd like to compare these files to mine to see if there is any differences.

What mods do you have installed on your forum?