FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » 0.0.0.0 posting IP in FUDForum 2.6.12?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
0.0.0.0 posting IP in FUDForum 2.6.12? [message #23607] Thu, 24 March 2005 01:35 Go to next message
likesthisforum   United States
Messages: 18
Registered: March 2005
Karma: 0
Junior Member
I upgraded one forum from FUDForum 2.6.11 to FUDForum 2.6.12 and noticed that when users and admins post messages, their posting IP address shows up as 0.0.0.0 on their posts instead of showing their real IP address.
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23608 is a reply to message #23607] Thu, 24 March 2005 03:01 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Seems to work fine on this forum, and the code handling the IPs did not change either.

FUDforum Core Developer
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23612 is a reply to message #23608] Thu, 24 March 2005 03:22 Go to previous messageGo to next message
likesthisforum   United States
Messages: 18
Registered: March 2005
Karma: 0
Junior Member
Weird, indeed. Before the upgrade, the FUDForum 2.6.11 install had no issues with displaying the proper posting IP when a user posted. After the upgrade, it shows nothing but 0.0.0.0. Makes no sense to me.
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23613 is a reply to message #23612] Thu, 24 March 2005 03:32 Go to previous messageGo to next message
likesthisforum   United States
Messages: 18
Registered: March 2005
Karma: 0
Junior Member
I also looked in the database of this forum with phpmyadmin and the "fud26_msg" table appears to have an "ip_addr" column with "0.0.0.0" on each new post in FUDForum 2.6.12.

Incase you need info about what the hoster is using, the hoster has php 4.3.10 and mysql 4.0.22 and is using linux.
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23614 is a reply to message #23613] Thu, 24 March 2005 03:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Is the $_SERVER super-global available on your server?

FUDforum Core Developer
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23615 is a reply to message #23614] Thu, 24 March 2005 03:43 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If it is not modify the .htaccess inside the forum's web directory to say:

php_value variables_order GPCS


FUDforum Core Developer
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23616 is a reply to message #23614] Thu, 24 March 2005 03:44 Go to previous messageGo to next message
likesthisforum   United States
Messages: 18
Registered: March 2005
Karma: 0
Junior Member
<?php
print_r($_SERVER);
?>


Outputs:
Array ( )

Only when I place that in "test.php" inside FUDForum's folder.

Outside of the folder, it outputs more than that.

So this is a .htaccess issue?
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23617 is a reply to message #23615] Thu, 24 March 2005 03:48 Go to previous messageGo to next message
likesthisforum   United States
Messages: 18
Registered: March 2005
Karma: 0
Junior Member
Thanks!
That fixed it!

The old .htaccess in FUDForum's directory had:
php_value output_buffering 64000
php_value variables_order GPC
php_flag implicit_flush 0
php_flag register_globals 0
php_flag register_argc_argv 0
php_flag magic_quotes_gpc 0
php_flag session.use_trans_sid 0
php_flag expose_php 0


It was missing the "S" at the end of: php_value variables_order GPC

I added the "S" and now it gets the posting IP just fine. Kind of weird how that fell off during the upgrade.
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23618 is a reply to message #23617] Thu, 24 March 2005 03:53 Go to previous messageGo to next message
likesthisforum   United States
Messages: 18
Registered: March 2005
Karma: 0
Junior Member
The upgrade script that this happened with was:
http://static.fudforum.org/FUDforum_upgrade_zl_2-6-12.tar.bz2

From my backup, FUDForum 2.6.11 didn't even have a .htaccess file before. So, I am assuming this .htaccess was newly added by the upgrade script for the upgrade to 2.6.12.
Re: 0.0.0.0 posting IP in FUDForum 2.6.12? [message #23620 is a reply to message #23618] Thu, 24 March 2005 04:07 Go to previous message
likesthisforum   United States
Messages: 18
Registered: March 2005
Karma: 0
Junior Member
When I looked at the upgrade script at: http://static.fudforum.org/FUDforum_upgrade_2-6-12.tar.bz2 which isn't using zlib, line 72576 has:
php_value variables_order GPC


So that is where it is missing the "S" at.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SQ URL parameter uses "?" after other parameters when logging in to view a private message
Next Topic: SQL error?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 12:04:52 GMT 2024

Total time taken to generate the page: 0.02401 seconds