Customizing SMF > SMF Coding Discussion
[Bogus]Possible bug - Undefined index
AmphetaMarinE:
I did a fresh install on my machine today... to help me in learning the templating system....
That is a fresh install of apache v2.0.49
A fresh install of php v4.35
A fresh install of mySQL v4.0.18
And a fresh install of SMF v1.0beta4.1
And while trying to learn how the forum works (Tracking php through zend studio...) i found an error.....
Not a major one, as the forum doesn't seem affected... but in the interest of perfect code... ;)
On running index.php, sources/errors.php gets parsed... and this error is noted in zend.
Undefined index: ip
I think its here....
VALUES ($ID_MEMBER, " . time() . ", '$user_info[ip]', '"
in the code below
--- Code: ---// Insert into the database.
mysql_query("
INSERT INTO {$db_prefix}log_errors
(ID_MEMBER, logTime, IP, url, message, session)
VALUES ($ID_MEMBER, " . time() . ", '$user_info[ip]', '" . (empty($_SERVER['QUERY_STRING']) ? '' : addslashes(htmlspecialchars('?' . $_SERVER['QUERY_STRING']))) . "', '" . addslashes($error_message) . "', '$sc')", $db_connection) or die($error_message);
--- End code ---
Dunno if you guys need to know or not... but posted about it anyway.
[Unknown]:
Sounds like you had errors before that.
I've already done something to prevent this, but it is caused by other errors.
-[Unknown]
ECCShaman:
--- Code: ---http://www.mygroup.com/myforums/index.php?action=reporttm;topic=53.6
8: Undefined index: rtm3
File: /home/mysite/public_html/myforums/Sources/ReportToModerator.php
Line: 139
http://www.mygroup.com/myforums/index.php?action=reporttm;topic=53.6
8: Undefined index: rtm_email1
File: /home/mysite/public_html/myforums/Sources/ReportToModerator.php
Line: 140
--- End code ---
Here is an Undefined Index error that may be legit...
Several of these error messages popped up at the same time when a member sent a report a post to the moderator message, to admin.
There were zero problems encountered during installation, and the program has been running smoothly. This is so far the only real error I have seen pop up.
In addition, the message that was sent to admin did not include the members return PM or email, and was a little hard to decipher. Here is the main content of what was sent
> whitecougar Mark B :
>
>
http://www.mygroup.com/myforums/index.php?topic=53.msg116#msg116
>
> :
>
> Are you still restricting mention of the gov't disinfo site zt?
>
> Regards,
> The My Group Forums Team.
[Unknown]:
You're missing language file entries - try a detailed version check.
-[Unknown]
ECCShaman:
--- Code: ---Default Templates ?? 1.0 Beta 4.1 Public
Admin.template.php ?? 1.0 Beta 4.1 Public
BoardIndex.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Calendar.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Display.template.php ?? 1.0 Beta 4.1 Public
Errors.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Help.template.php ?? 1.0 Beta 4.1 Public
InstantMessage.template.php ?? 1.0 Beta 4.1 Public
Login.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ManageAttachments.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ManageBoards.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ManageMembers.template.php ?? 1.0 Beta 4.1 Public
ManagePermissions.template.php ?? 1.0 Beta 4.1 Public
ManageSmileys.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Memberlist.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
MessageIndex.template.php ?? 1.0 Beta 4.1 Public
Modlog.template.php ?? 1.0 Beta 4.1 Public
MoveTopic.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Notify.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Packages.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Poll.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Post.template.php ?? 1.0 Beta 4.1 Public
Printpage.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Profile.template.php ?? 1.0 Beta 4.1 Public
Recent.template.php ?? 1.0 Beta 4.1 Public
Register.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Reminder.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ReportToModerator.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Search.template.php ?? 1.0 Beta 4.1 Public
SendTopic.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Settings.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
SplitTopics.template.php ?? 1.0 Beta 4.1 Public
Stats.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Themes.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Who.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Wireless.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
index.template.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Language Files 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Admin.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Errors.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Help.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
InstantMessage.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Login.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ManageBoards.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ManageMembers.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ManagePermissions.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ManageSmileys.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
ModSettings.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Modifications.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Packages.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Post.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Profile.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Settings.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Stats.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Themes.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Who.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
Wireless.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
index.english.php 1.0 Beta 4.1 Public 1.0 Beta 4.1 Public
--- End code ---
I am using the latest version, and all of the necessary language files (English) and all appers to be OK - just the ?? on some of the Default templates.
Any ideas?
Navigation
[0] Message Index
[#] Next page
Go to full version