Used redirct or not and pages dont always load

Status
Not open for further replies.

zero5854

New Member
Messages
126
Reaction score
0
Points
0
I noticed that my pages dont always load using the latest version of smf ver 1.1.13

Is there some type of server protection that maybe causes this or is there another reason?
 

Tyrael

New Member
Messages
71
Reaction score
0
Points
0
Yes, I had the same problem, I tracked back the source of the problem:
You have to turn on the "Disable hostname lookups?" option.
This is located on Features and Options / Layout and Options.
If this dosn't solve your problem, then you must comment out a few lines in the script.

Tyrael
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
This has nothing to do with server protection. Try what Tyrael said and if that does not work post back.
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
I can understand the first thing you said but what lines and why would you have to comment them out. ????

Yes, I had the same problem, I tracked back the source of the problem:
You have to turn on the "Disable hostname lookups?" option.
This is located on Features and Options / Layout and Options.
If this dosn't solve your problem, then you must comment out a few lines in the script.

Tyrael
 

Tyrael

New Member
Messages
71
Reaction score
0
Points
0
I can understand the first thing you said but what lines and why would you have to comment them out. ????
When I was in this situation, I've just debuged the problem, and commented out the part of the script, where it lookup the visitors host name from ip address.
Then when I solved the problem, I found out that it could be disabled from the admin section of the forum.
So I think don't have to edit anything in the script, but if you does, then it should be this:
Change this:
if (!isset($modSettings['host_to_dis']))
$test = @shell_exec('host -W 1 ' . @escapeshellarg($ip));
else
$test = @shell_exec('host ' . @escapeshellarg($ip));
Something like this:
/* if (!isset($modSettings['host_to_dis']))
$test = @shell_exec('host -W 1 ' . @escapeshellarg($ip));
else
$test = @shell_exec('host ' . @escapeshellarg($ip));
*/

In the Sources/Subs.php

But as I said: It can be disabled from the admin area, no need to edit the script itself.

Tyrael
 
Last edited:

zero5854

New Member
Messages
126
Reaction score
0
Points
0
WOW that sounds like a smart idea!! I will give it a shot and let you guys know how it worked...thanks!


UPDATE:

Yesssss!!! It worked like a charm!! Thanks alot!!!!
 
Last edited:

Tyrael

New Member
Messages
71
Reaction score
0
Points
0
Maybe we should make a wiki, where every cms/blog/etc have a page, where its list how to install, configure on x10hosting, and how to add the ads.

Tyrael
 

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
Maybe we'll see about putting something together like this. I'm closing this thread since the issue was resolved.

-Corey
 
Status
Not open for further replies.
Top