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

Recent

Welcome to TinyPortal. Please login or sign up.

April 28, 2024, 10:11:48 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 130
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 107
  • Total: 107

constant error message

Started by ~FS~grizz, June 09, 2010, 04:42:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

~FS~grizz

Hi
SMF 1.1.11
TinyPortal 1.0 beta 5-1
I am getting an error that is common and repeated among many members:
Quote8: Undefined variable: code
File: /***/***/public_html/Sources/TPortal.php
Line: 2731

I figured out enpugh to open that file with notepad ++, hope this helps:
Quote{
   global $context , $scripturl, $settings, $language , $txt;

   // first, set the table, equal in all grids
   if($pos==0)
      echo '<table cellpadding="0" cellspacing="0" width="100%">';

   if(isset($context['TPortal']['grid'][$gridtype][$pos]['doubleheight']))
      $dh=true;
   else
      $dh=false;

   // render if its not empty
   if(!$empty)
      echo $context['TPortal']['grid'][$gridtype][$pos]['before'] , call_user_func($context['TPortal']['hooks']['tp_block'],$block,$theme, $side,$dh) , $context['TPortal']['grid'][$gridtype][$pos]['after'];
   else
      echo $context['TPortal']['grid'][$gridtype][$pos]['before'] . '&nbsp;' . $context['TPortal']['grid'][$gridtype][$pos]['after'];

   // last..if its the last block,close the table
   if($last)
      echo '</table>';

   return $code;
}
line 2731 is: return $code;

IchBin

It looks like it's a bug with something to do with the frontpage blocks. Try disabling frontpage blocks and see if the errors go away.

~FS~grizz

QuoteTry disabling frontpage blocks

???
maybe lack of sleep/coffee
how do I disable frontpage blocks?

IchBin

Don't be afraid to take some time and look at things. Disabling means turning them off. How do you turn a block on and off? You could even just change your frontpage settings so that you are not using frontpage blocks.

~FS~grizz

I am using blocks on many panels.... and need them for the site I am running.

I went into settings:
ok - no errors if I go to TinyPortal Settings/Frontpage and uncheck all boxes for which panels to display

guess I will try all but one and change that one by one hoping I find only one causes this?
is it possibly code ina block causing this or something else?

~FS~grizz

 :up:
THANKS
I turned them off one by one and found it was the Lower panel, I need that so I changed the layout of the blocks in the lower panel from a grid to columns and it seems fine?

IchBin

Seems it may be a problem with the way things use a grid to display. Will have to get Bloc to look at it. Can you give any specific details on what layout you were using that caused the error?

~FS~grizz

#7
Lower Panel settings:

  • Use Lower Panel - ON
  • Hide Lower Panel When in Forum - NO
  • Disply Blocks According to a Grid - first choice selected, 1 horizontal block with 3 columns under it
  • Force this Width on Each Block - 150px
  • title chosen was first - titlebg+windowbg

Changed settings to the following and it seems ok now?

  • Use Lower Panel - ON
  • Hide Lower Panel When in Forum - YES
  • Disply Blocks Horizontally
  • Force this Width on Each Block - BLANK NO SIZE
  • title chosen was first - titlebg+windowbg

Though now I am seeing:

Quote8: Undefined variable: content
File: /****/****/public_html/Themes/default/languages/Post.english-utf8.php (tp_below sub template - eval?)
Line: 33

and

Quote8: Undefined variable: themesidebox
File: /****/****/public_html/Themes/default/languages/Post.english-utf8.php (tp_below sub template - eval?)
Line: 29

and I do not know if it is related.

~FS~grizz

When I formed my account here, I set up with diff name - will change display so it appears to match.

I opened the file that was referenced in the error, it was part of the FontandSizeDropdown_1.3 mod.
I uninstalled and reinstalled - works fine now, errors gone.

thanks and MARK SOLVED.