TinyPortal

Development => Support => Topic started by: grabman on October 13, 2008, 11:32:48 AM

Title: Error Log message
Post by: grabman on October 13, 2008, 11:32:48 AM
Evening all,

I've just upgraded to TP v1.0.6B2, all went well!

I do have a strange error message though in my forum log, the message is:
8: Undefined variable: k
File: /home/brodiesc/public_html/Sources/TPortal.php
Line: 1706

This is line for Tportal.php file ;          $context['TPortal']['boardnews']=$k;

Url for site is: http://www.brodiescastlebrewing.com

Running SMF 1.1.6

Installed mods:
1.     TinyPortal      1.063                                          [ Uninstall ]  [ List Files ]  [ Delete ]
2.    SMF 1.0.14 / 1.1.6 Update    1.0                        [ Uninstall ] [ List Files ] [ Delete ]
3.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0        [ List Files ] [ Delete ]
4.    SMF 1.0.14 / 1.1.6 Update    1.0                        [ Uninstall ] [ List Files ] [ Delete ]
5.    TinyPortal    1.052

Any thoughts appreciated,

Grab
Title: Re: Error Log message
Post by: Ianedres on October 13, 2008, 11:53:57 AM
Not a fatal error, just a call to a variable that wasn't explicitly initialized...
Title: Re: Error Log message
Post by: grabman on October 13, 2008, 11:56:01 AM
Quote from: Ianedres on October 13, 2008, 11:53:57 AM
Not a fatal error, just a call to a variable that wasn't explicitly initialized...

True, but I'd like to stop the error log from filling with errors that aren't going to upset things.  Is there a simple fix for this? 

cheers
Title: Re: Error Log message
Post by: Ianedres on October 13, 2008, 12:40:13 PM
Try this at the top of the TPortal.php after the opening <? statement:
$k = '';

This is not an official fix, and please enter it into the bugtracker.

Title: Re: Error Log message
Post by: grabman on October 13, 2008, 03:34:09 PM
Thanks,

Have added line to TPortal.php and placed in BugTracker

Grab
Title: Re: Error Log message
Post by: Ianedres on October 13, 2008, 08:51:09 PM
It'll go on the 'to-be-fixed' list...

Thanks!