TinyPortal

Development => Support => Topic started by: ~FS~grizz on June 09, 2010, 04:42:36 PM

Title: constant error message
Post by: ~FS~grizz on June 09, 2010, 04:42:36 PM
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;
Title: Re: constant error message
Post by: IchBin on June 09, 2010, 05:14:38 PM
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.
Title: Re: constant error message
Post by: ~FS~grizz on June 09, 2010, 05:39:48 PM
QuoteTry disabling frontpage blocks

???
maybe lack of sleep/coffee
how do I disable frontpage blocks?
Title: Re: constant error message
Post by: IchBin on June 09, 2010, 05:46:43 PM
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.
Title: Re: constant error message
Post by: ~FS~grizz on June 09, 2010, 05:48:21 PM
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?
Title: Re: constant error message
Post by: ~FS~grizz on June 09, 2010, 06:08:39 PM
 :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?
Title: Re: constant error message
Post by: IchBin on June 09, 2010, 10:45:53 PM
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?
Title: Re: constant error message
Post by: ~FS~grizz on June 10, 2010, 02:09:30 AM
Lower Panel settings:

Changed settings to the following and it seems ok now?

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.
Title: Re: constant error message
Post by: ~FS~grizz on June 23, 2010, 05:43:43 AM
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.