WordPress function wp_remote_get() test failed. Not necessary server related!!

WordPress function wp_remote_get() test failed. Looks like your server is not fully compatible with WordPress. Contact your hosting provider.
Status code: 404

It seems that this is not necessary server related as suggested. I have made to development websites on same server. One with an real domain, and one with a fake domain (accessed by editing hosts file). Error only occurred on website with fake domain.

Comments

  • So if you think that it's because of fake domain, you should ask your admin what this could be. We just use wp_remote_get() which is default wp's function and we do not have any impact on how it works exactly. It means that this must be something server related.
  • If I understand the script properly (I am not a php developer) it tries to resolve the domain name. If the site was accessed by IP instead of domain name I believe the script is not working. To replicate this you could easily set up a Wordpress site on local host, let the browser think it is on the Internet and then try to import demo. I think it will not work. Has nothing to do with a poor server setup. What I did was register a new domain, set up the website and because I had to wait for dns to resolve I accessed the site by editing my hosts file. I received the error mentioned above and started to look why this happened. Then I saw this problem only seem to occur on BeTheme. So I installed a new Wordpress on a live domain (my development domain) and all worked well with exactly the same setup. Then I changed domain name of this install and error message was back again. There is just one thing I do not understand, the problem seems to occur now and then with different servers and different hosting companies. Why do you specifically use this way of importing demo content?
  • wp_remote_get() is a Wordpress function and in accordance to WP API, this is the only function that supposed to be used for any wp themes. Envato is carefully checking if we use wp functions or not and if we won't follow those rules, we could have a problems. That's why it is so necessary to write the whole code in accordance to WP API.

    BTW The same wp_remote_get() function was used for default Wordpress Importer.

    P.S. The problem might be related with loopbacks as some hosting services doesn't allowe for that but it's necessary to import complete demo. More details about similar issue you can read on http://forum.muffingroup.com/betheme/discussion/12103/wp-remote-get-demo-download-no-header-menu-of-footer-settings where a problem was a little bit different but the solution may work for you as well.
Sign In or Register to comment.