Comments on live site try to get sent to localhost server
-
Hello,
Thanks for a great plugin. It has been working flawlessly for many months until I saw this weird problem.
The problem: When submitting a comment on the live site, it would error out stating that it couldn’t find server ‘localhost’. I thought it was my work machine/network somehow, but confirmed the problem using a browser on iPhone over the cell network.
The workaround solution: localhost server was nowhere in my live database, so didn’t know how else to debug. Luckily, I simply logged out of JetPack connection and logged back in and it was all back to normal.
I don’t know when the live site got into this weird state and am concerned that perhaps something in my local dev environment is causing this problem. Is there a way to check that localhost server was not injected on the live site somewhere? The comment’s form action points to jetpack.wordpress.com/jetpack-comment/ and I don’t see any other hidden field mentioning localhost. Perhaps it happened when I copied the live db to my local machine resulting in my local env having the same blog id and blog token? If so, then what is the “proper” way to use Jetpack in my local env? My local url does not contain a period so I assume JETPACK_DEV_DEBUG is set by default.
Any thoughts or insights are greatly appreciated.
Thanks!
- The topic ‘Comments on live site try to get sent to localhost server’ is closed to new replies.