TinyPortal

Development => Support => Topic started by: Henk on December 03, 2008, 06:28:52 AM

Title: TPortal creating errors in log (SOLVED)
Post by: Henk on December 03, 2008, 06:28:52 AM
SMF: 1.1.7
TP: 0.9.8.

TPortal.php is creating errors in the log. It's always about three rows in the script:

http://www.tussendevaarten.nl/index.php?page=885 
8: Undefined index: 221
Bestand: .../Sources/TPortal.php
Regel: 917

http://www.tussendevaarten.nl/index.php?page=885 
8: Undefined index: 221
Bestand: .../Sources/TPortal.php
Regel: 915

http://www.tussendevaarten.nl/index.php?page=885 
8: Undefined index: 221
Bestand: .../Sources/TPortal.php
Regel: 914

The file is attached. Any suggestions about the course?
Title: Re: TPortal creating errors in log
Post by: G6Cad on December 03, 2008, 06:44:12 AM
Can you try and investigate this a bit ?
Even if the error show TPortal.php it's not sertain the error actually generates from tp, it can be from a block code you use, or another mod, a RSS feed etc

Clear your error log and click the forum button, then back to the error log and look at it again, when you find what place in your site the error generates from, look at your content and describe what you have on that page to us, if you use blocks, what block ? if you have an article, what code do you have there etc.
Also, can you list up your mods you have installed ?
Title: Re: TPortal creating errors in log
Post by: Henk on December 03, 2008, 07:04:06 AM
Last question is simple G6, there are no mods installed other then TP itself. I'll try to pinpoint the error.
Title: Re: TPortal creating errors in log
Post by: G6Cad on December 03, 2008, 07:19:06 AM
Yhank you henk, i went to your site and the page the error generates from and the easiest way to pinpoint the error there is to close all blocks, and then start activate them one by one and for every block you activate, check the error log until you find the one that generate the error
Title: Re: TPortal creating errors in log
Post by: Henk on December 03, 2008, 12:17:36 PM
OK G6, the next thing happens.
I have a lot 'visitors' from outher Europe lately trying to mess up the forum.
The article that created the error was NOT categorized. I just forgot to choose any categorie. After adding a categorie to the article the error was gone!!!

Question still remains, it should be possible to have articles without a categorie, shouldn't it?
Title: Re: TPortal creating errors in log
Post by: G6Cad on December 03, 2008, 12:37:48 PM
Not from verion TPV1 as there are no reason in having articles outside any category as far as i know
Im glad you found the cause of the error though  :up:
Title: Re: TPortal creating errors in log
Post by: Henk on December 03, 2008, 01:16:35 PM
Thnx for the quick support!!
And yet another problem solved. :)