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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 101
  • Total: 101

SMF Error report "Undefined variable: mg"

Started by othersi, December 27, 2006, 06:02:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

othersi

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?

IchBin

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. :)

othersi

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).

IchBin

yes, i do believe its a bug. So I'm going to submit this to the bug tracker.


softtouch_ph

And this is still not fixed... getting page after page of this error in the error log...

This website is proudly hosted on Crocweb Cloud Website Hosting.