TinyPortal

Development => Support => Topic started by: patalete on November 17, 2008, 02:07:09 PM

Title: continuos Guest error in TPortal.php
Post by: patalete on November 17, 2008, 02:07:09 PM
Hi

I'm receiving this error from Guest reading forum pages...

smf 1.1.7 & TP 0.9.8

Quote
Undefined index: 2
File:/Sources/TPortal.php
Line: 914

Undefined index: 13
File:/Sources/TPortal.php
Line: 914

Undefined index: 14
File: /Sources/TPortal.php
Line: 914

Undefined index: 2
File: /Sources/TPortal.php
Line: 915

Undefined index: 13
File: /Sources/TPortal.php
Line: 915

Undefined index: 2
File:/Sources/TPortal.php
Line: 917

Undefined index: 13
File: /Sources/TPortal.php
Line: 917

my tportal.php issue lines.. from 905 to 925. Marked exact lines into code..

// add linktre for articles

if($mypage!='' && $context['TPortal']['action']=='')

{

TPstrip_linktree();

// do the category have any parents?

$parents=array();

if($row['category']>0)

$parents[]=array(

'id' => $row['category'],

== 914 ===> 'name' => $context['TPortal']['categories'][$row['category']]['name'],

== 915 ===> 'shortname' => $context['TPortal']['categories'][$row['category']]['shortname'],

);

== 917 ===> if($row['category']>0 && $context['TPortal']['categories'][$row['category']]['parent']>0){

$ca=$row['category'];

$parents=array();

while($ca>0){

$parents[]=array(

'id' => $ca,

'name' => $context['TPortal']['categories'][$ca]['name'],

'shortname' => $context['TPortal']['categories'][$ca]['shortname'],

);

$parent=$context['TPortal']['categories'][$ca]['parent'];

$ca=$parent;

}

}


any idea where to start?


Title: Re: continuos Guest error in TPortal.php
Post by: IchBin on November 17, 2008, 02:23:23 PM
Nope, these are errors that Bloc fixes for each beta release.
Title: Re: continuos Guest error in TPortal.php
Post by: patalete on November 17, 2008, 09:02:23 PM
so must update to latest TP and see waht happens?

How reliable and secure for the database and overall forum structure would be ?

Its a big one and cant mess it :)
Title: Re: continuos Guest error in TPortal.php
Post by: G6Cad on November 17, 2008, 09:16:31 PM
have a look in the bugtracker, it's not safe to run the latest beta on a live site