Posts: 7
Threads: 1
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2014
Reputation:
0
Hi we're having problems with cms, seems that when we activated bussiness plan on cloudflare cms started working wrong, profile section is not working, so alias changing or password changing are impossible. thank you!
Posts: 1,163
Threads: 160
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
I had a problem with this before with cloudflare but the free version but I fixed it in 3.8.1 never tested on bussiness
Posts: 1,163
Threads: 160
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
FIXED:
Edit Core/functions.php
Change
function get_real_ip_noimport(){
if (isset($_SERVER["HTTP_CLIENT_IP"])) return $_SERVER["HTTP_CLIENT_IP"];
elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) return $_SERVER["HTTP_X_FORWARDED_FOR"];
elseif (isset($_SERVER["HTTP_X_FORWARDED"])) return $_SERVER["HTTP_X_FORWARDED"];
elseif (isset($_SERVER["HTTP_FORWARDED_FOR"])) return $_SERVER["HTTP_FORWARDED_FOR"];
elseif (isset($_SERVER["HTTP_FORWARDED"])) return $_SERVER["HTTP_FORWARDED"];
else return $_SERVER["REMOTE_ADDR"];
}
Posts: 1,163
Threads: 160
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
to
function get_real_ip_noimport(){
if (isset($_SERVER["HTTP_CLIENT_IP"])) return $_SERVER["HTTP_CLIENT_IP"];
elseif (isset($_SERVER["HTTP_X_FORWARDED"])) return $_SERVER["HTTP_X_FORWARDED"];
elseif (isset($_SERVER["HTTP_FORWARDED"])) return $_SERVER["HTTP_FORWARDED"];
else return $_SERVER["REMOTE_ADDR"];
}
This will fix the bug of view profile behind cloudflare.
Posts: 190
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Feb 2013
Reputation:
0
how is the bug fix with vote? on 3.6.1(2)? Users can still vote but if they voted its checked that they voted but the cash didnt arrive..?
Posts: 7
Threads: 1
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2014
Reputation:
0
Thank you ToXiC L33T everything runs great, Thank you!
Posts: 1,163
Threads: 160
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
how is the bug fix with vote? on 3.6.1(2)? Users can still vote but if they voted its checked that they voted but the cash didnt arrive..?
check your scripts 3.6.1/2 I think gives reward points not cash but its a simple edit in vote4us.php