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.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.