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

Recent

Welcome to TinyPortal. Please login or sign up.

June 16, 2024, 02:52:03 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,242
  • Total Topics: 21,223
  • Online today: 180
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 144
  • Total: 144

whichbar - undefined variable

Started by tapirul, January 17, 2007, 07:08:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tapirul

Hello
I just upgraded a forum to smf 1.1.1 and TP 0.971 and I notice that I get a bunch of errors (I got 10 pages in 10 minutes), regardless of the theme used, all related to this:


Quote8: Undefined variable: whichbar
File: /...../public_html/mansarda-lui-vlad/Sources/TPortal.php
Line: 279

Line 279 is
      $show=get_blockaccess($row['access2'],false, $whichbar);

(from :

// check that we are in frontpage rather
if($mypage!='' && !isset($_GET['page']) && $context['TPortal']['is_front'] && $mypage==$context['TPortal']['featured_article'])
$show=get_blockaccess($row['access2'],true, $whichbar);
else
$show=get_blockaccess($row['access2'],false, $whichbar);

if($show)
{
// some tests to minimize sql calls


Obviously, I need help.
Heeeeeeelp!

Thanks

G6Cad

A known bug from TP V.096, shouldent be there now if you have updated.
Can you try and replace the TPortal.php file with the one in the manual install package ?

tapirul


tapirul

did that, same thing.
So, to review: I updated a forum from RC3 to 1.1.1, but before that I uninstalled the mods. On the new upgraded forum I installed TP 0.971 and I started to get those errors. I replaced the TPortal.php with the one from manual_instal_files, doesn't solve the problem.

Maybe TP 0.98? :) - I see Bloc is already testing it.

sikhness

Yea, i'm getting this problem as well.... I'm guessing it will probably be fixed in the next version... It really isn't causing any problems, so I think it should be ok to leave it til 0.9.8...  just my 2 cents...

tapirul

Oh, I agree, it doesn't create problems. Although I guess it kind of puts a stress on the database (aren't all error messages recorded in DB - I might be wrong)

G6Cad

If you turn off the error notification in the admin/configuration the errors will not be stored in the DB.
So until Bloc releases the next version turn that off :)


sikhness

she's got a point man...

Quote from: G6Ã,â,,¢ on January 18, 2007, 06:25:27 AM
If you turn off the error notification in the admin/configuration the errors will not be stored in the DB.
So until Bloc releases the next version turn that off :)

Assistance

i currently have this error too

but wouldnt recomend turning reports off, defeats the purpose of having reports

i would recomend sorting by that error and deleting that type
and fix the others when u see fit

my opinion