TinyPortal

Development => Support => Topic started by: Kimmen on July 26, 2011, 05:04:55 PM

Title: Two new errors in my log
Post by: Kimmen on July 26, 2011, 05:04:55 PM
SMF 2.0 Final TP 1.104

This happens when i try to do a search in the forum. By clicking search --> type in what i search for --> Hit search and we have those errors.

Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?action=search2
Apply Filter: Only show the errors with the same message
8: Undefined index: title
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Themes/default/languages/TPShout.english.php (body_above sub template - eval?)
Line: 440

Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?action=search2
Apply Filter: Only show the errors with the same message
8: Undefined index: href
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Themes/default/languages/TPShout.english.php (body_above sub template - eval?)
Line: 439
Title: Re: Two new errors in my log
Post by: IchBin on July 26, 2011, 05:19:37 PM
Hi Kimmen,

Can you go into the SMF Admin > Configuration > General Settings. Check the box for to "disable evaluation of templates" and then save?

After you've done that, reproduce the error again. Then post the new errors you get as they should have a different file name and line number so I can see where the actual error has occurred. 
Title: Re: Two new errors in my log
Post by: Kimmen on July 26, 2011, 06:41:59 PM
Did as told  ;)

Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?action=search2
Apply Filter: Only show the errors with the same message
8: Undefined index: href
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Themes/Prince_of_Darkness_201/index.template.php
Line: 409

Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?action=search2
Apply Filter: Only show the errors with the same message
8: Undefined index: title
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Themes/Prince_of_Darkness_201/index.template.php
Line: 410
Title: Re: Two new errors in my log
Post by: IchBin on July 26, 2011, 08:36:17 PM
Can you attach your index.template.php file from your Prince of Darkness theme? Looks to me like you have some errors in that file. Could be related to a mod or something, so I'll just give it a check for you.
Title: Re: Two new errors in my log
Post by: Kimmen on July 26, 2011, 09:50:44 PM
That is very nice of you IchBin  :)
Title: Re: Two new errors in my log
Post by: IchBin on July 26, 2011, 10:27:15 PM
Bah... looks like the problem is not in the template file. The template file is calling the array for the menu buttons which exists in the Subs.php file. Can you attach that one too? The Subs.php file is in the Sources directory. Thanks.
Title: Re: Two new errors in my log
Post by: Kimmen on July 26, 2011, 10:33:41 PM
Sure i can IchBin  :)

Title: Re: Two new errors in my log
Post by: IchBin on July 26, 2011, 10:41:27 PM
Looks like it's a problem with the custom menu mod you have installed. Do you have any items in your main menu that are blank or empty? I'm guessing that the mod is not properly setting the menu items or something. Then when the array is read in the template file, it's reading an empty array which doesn't have the link or title set.
Title: Re: Two new errors in my log
Post by: Kimmen on July 26, 2011, 10:48:06 PM
To be honest, i had Tyrsson from SMF, to help me shrink down buttons on main menu. he re-organized it all, so that i got more into dropdowns.