WordPress.org

Ready to get started?Download WordPress

Forums

WP Google Weather
Warning: simplexml_load_string() (19 posts)

  1. wiktoratgmail
    Member
    Posted 1 year ago #

    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/

  2. kravallle
    Member
    Posted 1 year ago #

    I'm having the same issue. Apparently, Google changed something...

  3. wiktoratgmail
    Member
    Posted 1 year ago #

    I'm going to test another plugin: http://wordpress.org/extend/plugins/weather-and-weather-forecast-widget/

    WP Google Weather was more simple, and customizable for me.

  4. kravallle
    Member
    Posted 1 year ago #

    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...

  5. ip00
    Member
    Posted 1 year ago #

    I'm also experiencing this issue. Is there a way to solve this or we need to look for another plugin or API service?

  6. BOCo23
    Member
    Posted 1 year ago #

    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!

  7. ip00
    Member
    Posted 1 year ago #

    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.

  8. piotrekp
    Member
    Posted 1 year ago #

    I have changed wp_remote_fopen to file_get_contents and, for now, it works well.

  9. fourgood
    Member
    Posted 1 year ago #

    @piotrekp how did you do this?
    Just replacing "wp_remote_fopen" with "file_get_contents" (at line ~159) doesnt seem to change anything.

  10. piotrekp
    Member
    Posted 1 year ago #

    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

  11. fourgood
    Member
    Posted 1 year ago #

    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.

  12. piotrekp
    Member
    Posted 1 year ago #

    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.

  13. fourgood
    Member
    Posted 1 year ago #

    btw ive switched to another plugin. not that pleasant but unless we dont find a fix, it is a solution.

  14. gezginrocker
    Member
    Posted 1 year ago #

    fourgood can u please tell the name of that plugin? I need a similiar weather plugin that I can embed into posts.

    thanks

  15. ip00
    Member
    Posted 1 year ago #

    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

    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.

  16. fourgood
    Member
    Posted 1 year ago #

    @gezginrocker im using "GoGadget Weather and Weatherforecast Widget". Many many options and looks pretty nice.

  17. gezginrocker
    Member
    Posted 1 year ago #

    @fourgood thanks for your reply. I checked the plugin, but installation instructions seemed a bit complicated. so I decided to give a try to WP Wunderground. and it seems to be working fine, if other people are also thniking of switching to a new plugin, you can see mine in action here:

    Tayland Hava Durumu

  18. Mike Logan
    Member
    Posted 1 year ago #

    Has the author been contacted about this and is he going to re-write the app to work with another API??? This really sucks...I have it on several of my WP sites and when I saw them this morning everything looked like a mess and my clients are pissed. Some warning from Google would have been nice. What a rotten way to start the day....

    peace out,
    DL

  19. piotrekp
    Member
    Posted 1 year ago #

    I tried to rewrite it to work with Yahoo! api. Here it is: CLICK. But this is experimental. There is only english language, because it is the only supported by Yahoo! weather.
    Additionally you have to obtain code of your place eg. code for London is 44418 because when you search for London on Yahoo! weather, you are redirected to that link (see last numbers): http://weather.yahoo.com/united-kingdom/england/london-44418/

    To install just replace files on your server.
    cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic