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'] . ' ' . $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;
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.
QuoteTry disabling frontpage blocks
???
maybe lack of sleep/coffee
how do I disable frontpage blocks?
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.
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?
: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?
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?
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.
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.