I am still wondering when createip is null.
function qa_remote_ip_address() is obviously creating the IP address by:
return @$_SERVER['REMOTE_ADDR'];
I think the function should be expanded by:
public function getRemoteIPAddress() {
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
return $_SERVER['HTTP_CLIENT_IP'];
} else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
return $_SERVER['HTTP_X_FORWARDED_FOR'];
}
return $_SERVER['REMOTE_ADDR'];
}
From http://stackoverflow.com/a/19311275/1066234
To get the IP in all cases.
PS: Just stumbled over https://github.com/q2a/question2answer/pull/240 but there is no solution.
Basically: Why is the IP null?
*** Gosh, can you just add the "source" button to the ckeditor so we can edit/clean the html. Cannot get rid of this formatting here.