[SOLVED] CMS 3.8.1 profile + Cloudflare
#1
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!

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

#3

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"];
}

#4

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.
#5
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..?

#6
Thank you ToXiC L33T everything runs great, Thank you!

#7

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



Forum Jump:


Users browsing this thread: 1 Guest(s)