Incorrect string value: '' for function inet_aton

Started by djahn, May 08, 2016, 09:53:49 AM

Previous topic - Next topic

djahn

I'm upgrading an SMF 1.1.14 forum that was on a public site.  I copied it to a localhost running

Windows 7 SP 1
PHP: 5.6.21
MySQL: 5.7.12
Appache 2.4.20

SMF Files were downloaded using Filezilla in Binary mode.  I ran the repair_settings.php utility updating all of the URL's and Directories.  I then copied the SMF 2.0.10 upgrade files into the SMF directory.  I had to modify the upgrade_1-1.sql file to remove "IGNORE" from the "ALTER IGNORE TABLE" statement.  For some reason, my version of MySQL didn't accept the "IGNORE" command. I then ran the upgrade which completes successfully.

When I launch the forum, it will run for one or more clicks and then it displays this error:

Incorrect string value: '' for function inet_aton
File: C:\Apache24\htdocs\smf\Sources\Subs.php
Line: 2653

After waiting for a period of time (5 minutes or so), the forum will once again run for one or more clicks and then the error is displayed again.

Any ideas how to resolve this error?

Thanks

David Jahn

djahn

Anybody have any ideas?  I see where this was brought up before, but haven't seen a resolution. 

Here are two threads where the issue was encountered.  The resolution isn't clear.

http://www.simplemachines.org/community/index.php?topic=543417.0

http://www.simplemachines.org/community/index.php?topic=545026.0

Does anyone know if there is a fix for this?

Thanks

David Jahn

Kindred

Did you try the code fix that the other user posted?

In short, smf 2.0.x does not currently support IPv6 addresses
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

djahn

I did try that.  The result is this error.

Parse error: syntax error, unexpected '$user_info' (T_VARIABLE), expecting ')' in C:\Apache24\htdocs\smf\Sources\Subs.php on line 2649

It looks like it is missing a closing parenthesis somewhere.

djahn

OK, here is how I fixed it.  I went into the httpd.conf file in Appache and edited the Listen value changing it from "Listen 80" to "Listen 0.0.0.0:80".  Then restarted Appache.

This worked without having to edit the sup.php file.

I hope this helps someone else.

David Jahn

quickbookstech

i m also facing same problem please suggest me how can i do that.  :-[

Illori

unless your server is managed by you, you cant do that.

Advertisement: