TinyPortal

Development => Support => Topic started by: othersi on December 27, 2006, 06:02:37 PM

Title: SMF Error report "Undefined variable: mg"
Post by: othersi on December 27, 2006, 06:02:37 PM
Hi all, Merry Christmas. :)

I'm running TP 0.97 on SMF 1.1.1, and I'm finding that anytime a user goes into the Submit Article page, the forum records the following error:

Quotehttp://www.othersi.com/forum/index.php?action=tpmod;sa=submitarticle

8: Undefined variable: mg
File: /home/content/o/t/h/othersi/html/forum/Themes/default/TPmodules.template.php (eval?)
Line: 32

The article submission seems to work fine, but my error log is filling with these errors.

FYI, line 32 of TPmodules.template.php reads:

FullEditor("tp_article_body'.$mg['id'].'");

Any ideas?
Title: Re: SMF Error report "Undefined variable: mg"
Post by: IchBin on December 27, 2006, 06:28:31 PM
Can you switch editors and see if you get the same result. Looking at the TPmodules template it looks to me like $mg is not assigned anything in the Wizzywig code, which is why your getting that error. I'm just trying to figure out why. :)
Title: Re: SMF Error report "Undefined variable: mg"
Post by: othersi on December 27, 2006, 06:40:51 PM
Just tested, and the same error occurs when using FCKeditor.

Note that the error occurs on LOADING the article submission page... actually submitting the article is not needed to get this error. (not sure if that's important but just wanted to make it clear).
Title: Re: SMF Error report "Undefined variable: mg"
Post by: IchBin on December 27, 2006, 06:49:38 PM
yes, i do believe its a bug. So I'm going to submit this to the bug tracker.
Title: Re: SMF Error report "Undefined variable: mg"
Post by: othersi on December 28, 2006, 12:09:33 AM
Thanks. :)
Title: Re: SMF Error report "Undefined variable: mg"
Post by: softtouch_ph on February 16, 2007, 07:42:16 AM
And this is still not fixed... getting page after page of this error in the error log...