News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Undefined variable: modsettings

Started by dxyy, January 08, 2008, 02:22:35 AM

Previous topic - Next topic

dxyy

I'm getting some errors in my log, but I'm not knowledgeable enough to know what the real problem is.

8: Undefined variable: modsettings
File: /home/daxueyin/public_html/forum/Sources/Load.php
Line: 1093 (also line 1094)

I'll attach the load.php if that helps.

Any help with this would be appreciated.

Thank you. :)

karlbenson

Its related to the visual warning mod
'warning' => $profile['warning'] > 0 ? array(
'link' => ($modsettings['visualw_image_' . $warn] != "" ? '<img src="' . $settings['images_url'] . '/' . $modsettings['visualw_image_' . $warn] . '"/>' : '') .
($modsettings['visualw_color_' . $warn] != "" ? '<font size="2" color="' . $modsettings['visualw_color_' . $warn] . '">
' . $txt['visual_text_' . $warn] . '</font>' : '') . '<br />',
) : array('link' => ''),


Those instances of $modsettings need to be changed to $modSettings

(noting the uppercase S on settings).



karlbenson

Be aware, that the Visual warning mod may have added more code which uses all lowercase.

So you may get some more errors in new locations.

dxyy

#4
Thanks for the tip, I'll be on the lookout for additional errors, but at least this time I'll know how to deal with them. ;)

Advertisement: