Title: [Plugin: WP Google Weather] Warning: simplexml_load_string()
Last modified: August 20, 2016

---

# [Plugin: WP Google Weather] Warning: simplexml_load_string()

 *  [wiktoratgmail](https://wordpress.org/support/users/wiktoratgmail/)
 * (@wiktoratgmail)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/)
 * **Warning: simplexml_load_string() [function.simplexml-load-string]: <!DOCTYPE
   html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”> in /domain/wp-content/plugins/
   wp-google-weather/wp-google-weather.php on line 162**
 * It was working like a charm couple weeks. Today gets broken.
 * [http://wordpress.org/extend/plugins/wp-google-weather/](http://wordpress.org/extend/plugins/wp-google-weather/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/page/2/?output_format=md)

 *  [kravallle](https://wordpress.org/support/users/kravallle/)
 * (@kravallle)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795013)
 * I’m having the same issue. Apparently, Google changed something…
 *  Thread Starter [wiktoratgmail](https://wordpress.org/support/users/wiktoratgmail/)
 * (@wiktoratgmail)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795060)
 * I’m going to test another plugin: [http://wordpress.org/extend/plugins/weather-and-weather-forecast-widget/](http://wordpress.org/extend/plugins/weather-and-weather-forecast-widget/)
 * WP Google Weather was more simple, and customizable for me.
 *  [kravallle](https://wordpress.org/support/users/kravallle/)
 * (@kravallle)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795117)
 * > I’m having the same issue. Apparently, Google changed something…
 * It’s a captcha that you have to solve before Google provides the xml sheet with
   weather data…
 *  [ip00](https://wordpress.org/support/users/ip00/)
 * (@ip00)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795199)
 * I’m also experiencing this issue. Is there a way to solve this or we need to 
   look for another plugin or API service?
 *  [BOCo23](https://wordpress.org/support/users/boco23/)
 * (@boco23)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795200)
 * Hi!
 * I have similar problem, but I found a solution (temporary, until to update!)
 * Into file wp-google-weather.php paste code
 *     ```
       error_reporting(0);
   
       ini_set('display_errors', '0');
       ini_set('error_reporting', '0');
       ```
   
 * This code will not show warning anymore, just a blank WP Google Weather form.
 * Sorry for my bad english, I hope it will help you!
 *  [ip00](https://wordpress.org/support/users/ip00/)
 * (@ip00)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795202)
 * I thought that this might be caused by too many request from our IP address. 
   So we have modified plugin code so it fetches weather data from google every 
   1 hour and stores it in xml file. Request within following hour are extraced 
   from that (local) xml file.
 * But it didn’t solve our issue. Every hour, when data is fetched from google, 
   there is an error. Weird thing is that everything is written in xml file just
   fine, and all following request that read data from xml file work great.
 *  [piotrekp](https://wordpress.org/support/users/piotrekp/)
 * (@piotrekp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795205)
 * I have changed wp_remote_fopen to file_get_contents and, for now, it works well.
 *  [fourgood](https://wordpress.org/support/users/fourgood/)
 * (@fourgood)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795207)
 * [@piotrekp](https://wordpress.org/support/users/piotrekp/) how did you do this?
   
   Just replacing “wp_remote_fopen” with “file_get_contents” (at line ~159) doesnt
   seem to change anything.
 *  [piotrekp](https://wordpress.org/support/users/piotrekp/)
 * (@piotrekp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795208)
 * I thought it was working 🙁 Now I get error “error on line 1 at column 1: Document
   is empty” when I type in browser this link: [http://www.google.pl/ig/api?weather=beijing&oe=utf-8&hl=pl](http://www.google.pl/ig/api?weather=beijing&oe=utf-8&hl=pl)
 *  [fourgood](https://wordpress.org/support/users/fourgood/)
 * (@fourgood)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795209)
 * We’re sorry…
 * … but your computer or network may be sending automated queries. To protect our
   users, we can’t process your request right now.
 *  [piotrekp](https://wordpress.org/support/users/piotrekp/)
 * (@piotrekp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795210)
 * So there is problem with Google. But as far as I know, my proposal wasn’t good
   enough – changing wp_remote_fopen doesn’t seem to fix the problem.
 *  [fourgood](https://wordpress.org/support/users/fourgood/)
 * (@fourgood)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795211)
 * btw ive switched to another plugin. not that pleasant but unless we dont find
   a fix, it is a solution.
 *  [gezginrocker](https://wordpress.org/support/users/gezginrocker/)
 * (@gezginrocker)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795213)
 * fourgood can u please tell the name of that plugin? I need a similiar weather
   plugin that I can embed into posts.
 * thanks
 *  [ip00](https://wordpress.org/support/users/ip00/)
 * (@ip00)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795214)
 * We can’t fix it, it’s not plugin related. Google shut down Weather API.
    You 
   can read more about this here: [http://goo.gl/AEqYs](http://goo.gl/AEqYs)
 * We all have to switch to another plugin.
    Most are overly complicated with too
   many options, this one was a good mesure for us, too bad.
 *  [fourgood](https://wordpress.org/support/users/fourgood/)
 * (@fourgood)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/#post-2795216)
 * [@gezginrocker](https://wordpress.org/support/users/gezginrocker/) im using “
   GoGadget Weather and Weatherforecast Widget”. Many many options and looks pretty
   nice.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/page/2/?output_format=md)

The topic ‘[Plugin: WP Google Weather] Warning: simplexml_load_string()’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-google-weather.svg)
 * [WP Google Weather](https://wordpress.org/plugins/wp-google-weather/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-weather/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-weather/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-weather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-weather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-weather/reviews/)

 * 18 replies
 * 8 participants
 * Last reply from: [piotrekp](https://wordpress.org/support/users/piotrekp/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-weather-warning-simplexml_load_string/page/2/#post-2795219)
 * Status: not resolved