TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 226
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 183
  • Total: 183

[bugtracker] 8: Undefined index: leftbar ...and rightbar

Started by Saskia, April 11, 2010, 06:24:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Saskia

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 :-(

IchBin


Saskia

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: 627


8: Undefined index: rightbar
File: /home2/thezoneg/public_html/Themes/default/index.template.php
Line: 629


And 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


G6Cad

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 :)

IchBin

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. :)

Saskia

Thank so much, no errors now ...great support  O0 :smitten:

G6Cad


This website is proudly hosted on Crocweb Cloud Website Hosting.