Comments error (localhost) + comunication error
-
Hi, I have configured Jetpack to handle comments, so users can decide to use facebook, google or other too.
But if a comment is made, an error appears and redirects to a localhost address 127.0.0.2
I did some research and found that my provider had rules in .htaccess to limit access to the xmlrpc.php file, so I deleted them and now if I browse to this file, I get the right answer “XML-RPC server accepts POST requests only.”
I also discovered that my provider does not use the php variable “REMOTE_ADDR”, so I added “$_SERVER[‘REMOTE_ADDR’] = $_SERVER[‘HTTP_X_FORWARDED_FOR’];” to the beginning of the wp-config.php file and, now in the “Site Health” summary, both “HTTP_X_FORWARDED_FOR” and “REMOTE_ADDR” show the visitor’s ip.
However I still can’t add a comment, I also tried disconnecting and reconnecting jetpack but it doesn’t seem to work. Even Jetpack debugger can’t connect to the site, as error it returns “Communication error”.
Does anyone have an idea what I can do to fix this problem?J
- The topic ‘Comments error (localhost) + comunication error’ is closed to new replies.