[Bogus]Possible bug - Undefined index

Started by AmphetaMarinE, April 11, 2004, 10:57:34 AM

Previous topic - Next topic

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


// 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);


Dunno if you guys need to know or not... but posted about it anyway.
Sign Here: X..........................................................................................

[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

#2
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 


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

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


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?

[Unknown]

You have user selectable languages off, don't you?

-[Unknown]

ECCShaman

Quote from: [Unknown] on April 11, 2004, 09:45:30 PM
You have user selectable languages off, don't you?

-[Unknown]

Yes it was off, and I turned it ON rather than ask why... You may want to add something in the little help pop-up windowbox so people don't turn the function off, since it appears to be more important than one would think.

Thanks for the tip and the hint...

[Unknown]

It's been fixed in the cvs.

-[Unknown]

AmphetaMarinE

Unknown... that error is on an out of the box install man.
I unzipped the smf archive.
That is all i had done beforehand.
the errors i was having elsewhere are on my online forum.
This is an offline one for testing.
Sign Here: X..........................................................................................

[Unknown]

This will only happen if an error is generated before the ip address is filled in the profile, which means there are other problems "afoot".  I have solved this in the cvs, and as you should have read in a sticky topic somewhere, this means it will be fixed in the next release.

However, my point is that this should never be undefined *anyway*.  It's like saying, "when I crashed into your wall I found out that it's hollow!"  Why, yes, it being hollow might be a problem, but... WHY DID YOU CRASH THROUGH MY WALL!?!

-[Unknown]

AmphetaMarinE

hrmmm ok....
so it's nothing you need to know about then....

doesn't phase me at all, as like i said before... its only a local testebed for the template system ;)

And i gotta say unknown...
now that i can see how it works... it is by far the best template system i have seen.;D

ps. could someone please move this post to the bogus or fixed sub board??
Sign Here: X..........................................................................................

Advertisement: