TinyPortal
Development => Feedback => Bugs/Errors => Topic started by: Saskia on April 11, 2010, 06:24:58 PM
I have upgraded yesterday to version TinyPortal v1.0 beta5 and looking at the error log I found over 3000 entries, examples below:
8: Undefined index: rightbar
File: /home2/thezoneg/public_html/Themes/default/Recent.template.php (main_above sub template - eval?)
Line: 629
8: Undefined index: leftbar
File: /home2/thezoneg/public_html/Themes/default/Recent.template.php (main_above sub template - eval?)
Line: 627
On different php templates but always the same line and leftbar/rightbar.
SMF 1.1.11 SMF Default Theme - Core
TinyPortal v1.0 beta5
Mods installed:
TinyPortal 1.098
Ultimate Profile 0.9
Custom Board Sort 1.0.1
Inline Attachments 1.0.4.2
Karma Buttons 1.1
Downloads System Pro 1.0.16
Member Color Link 3.0.8
TinyPortal
Which files exactly I have to modify to get rid of these errors, please ?
----------------------------------------------
Updated to version TinyPortal 1.0 beta 5-1 , but I am having still the errors :-(
Can you Enable/Disable eval() (http://www.simplemachines.org/community/index.php?topic=290186.0) and then let us know if the error changes in anyway?
I did what you suggested, these are the both errors I am getting:
8: Undefined index: leftbar
File: /home2/thezoneg/public_html/Themes/default/index.template.php
Line: 6278: Undefined index: rightbar
File: /home2/thezoneg/public_html/Themes/default/index.template.php
Line: 629And these are the lines I have in the index.template.php :
Quote// TinyPortal
if($context['TPortal']['leftbar'])
echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
if($context['TPortal']['rightbar'])
echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end
Remove that entire bit of code and save the file again and check if it works without errors, you seem to use a theme thats older and havent been updated for a while ? TP does not add any code for left and right bar in index.temolate.php file as everything have been moved out to it's own files :)
Eather you can comment out that code you posted now with /* your code here */ and save, or you can remove it all together, Be sure you do a backup first of the file though in case something still mess up :)
Yeah, that is the code from the previous version. The code is not required. If you simple upload the regular SMF theme instead of the TP version it those errors should go away. Or you can do as G6 suggested. :)
Thank so much, no errors now ...great support O0 :smitten:
Great :up: Will mark it solved then :)