TinyPortal
Development => Support => Topic started by: Skhilled on June 06, 2011, 02:46:57 PM
Link to my site: http://www.skhilled.com/smf
SMF version: SMF 2.0 RC5
TP version: TP 1.0 RC1
Default Forum Language: English
Theme name and version: Default
Browser Name and Version: Firefox 4.0.1
Mods installed:httpBL 2.5.1
Tidy Child Boards 1.3
Aeva Media 1.4w
Stop Spammer 2.3.9
SMF Arcade 2.5 RC1
Related Error messages:
http://www.skhilled.com/smf/index.php?cat=18
8: Undefined index:
File: /home/removed/public_html/smf/Themes/default/TPortal.template.php
Line: 161
http://www.skhilled.com/smf/index.php?cat=18
8: Undefined index: layout
File: /home/removed/public_html/smf/Themes/default/TPortal.template.php
Line: 161
I only have 4 categories but have 21 articles and this goes happen to guests only as no member would tr to access a non-existent category.
Here's the code with a little before and after it. The line in question is in red.
Quote// any child categories?
if(!empty($context['TPortal']['category']['children']))
category_childs();
render_template_layout($grid[$category['options']['layout']]['code'], 'category_');
// any pageindex?
if(!empty($context['TPortal']['pageindex']))
echo '
<div class="tp_pageindex_lower">' , $context['TPortal']['pageindex'] , '</div>';
}
The underscore at the end of category is something new to me. Perhaps article and category numbers are being confused with each other?
That error is from having a category that doesn't have any default layout selected. Go in and look at your categories and check a radio box for the two layout options. This has been fixed in the next release.
I saw another topic about that but thought mine was a bit different.
Thanks, bro. :)