WordPress.org

Ready to get started?Download WordPress

Forums

wp-forecast
[resolved] Help! No location found for many cities (?) (22 posts)

  1. Lucy88
    Member
    Posted 2 years ago #

    Hi!

    I just tried the plugin but most locations I searched could not be found (?)

    I tried Beijing or Shanghai for China and only hyphens showed up. If I try Paris, I first get half page of hypens then some results but nothing for many cities in Asia like even Bangkok (?)
    Nevertheless, all these cities forecast are available on AccuWeather and WeatherBug web pages.

    Is there any other way we can know the ID for a location (and insert it directly) without going through the plugin search?

    THANK YOU for your help and concern.
    L.

    http://wordpress.org/extend/plugins/wp-forecast/

  2. Lucy88
    Member
    Posted 2 years ago #

    Hello,

    Just updated the plugin to v3.9 but still cannot get many locations.

    I did use the new function to check my connection with Weatherprovider and got the following log:
    Checking for Weatherprovider Accuweather
    Checking default transport
    Test was successfull.
    Fetched 19116 Bytes in 0 seconds.
    Checking fsockopen transport
    Test was successfull.
    Fetched 19116 Bytes in 1 seconds.
    Checking exthttp transport
    Test was successfull.
    Fetched 19116 Bytes in 0 seconds.
    Checking streams transport
    Test was successfull.
    Fetched 19116 Bytes in 0 seconds.
    Checking curl transport
    Test was successfull.
    Fetched 19116 Bytes in 0 seconds

    THANK YOU!

  3. JamesBB
    Member
    Posted 2 years ago #

    Hi there!

    I have similar issues with location too.
    Seems quite a few cities are not found within the plugin but can be found with a direct request on Accuweather site.

    Any idea where to dig?
    Thanks.

  4. Lucy88
    Member
    Posted 2 years ago #

    Thanks TUXLOG for your help!
    Vielen Dank!!!

  5. pro01
    Member
    Posted 2 years ago #

    I've got kind of similar problem, except this is what I get when I run search:

    No WeatherBug Partner-ID given. WeatherBug will not be searched.
    Enter a correct Partner-ID in the admin panel and save it to search WeatherBug.

    Please select a location:
    XML Fehler: EntityRef: expecting ';' in Zeile 1

    Okay, I created a Weatherbug development account and got 2 keys. Tried both of them in there, nada. Removed them, problem remains.

  6. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    Please try the new release, there was a problem with the location search and I hope this is fixed now.

    Regards, Hans

    p.s. new release will be out during the next hours

  7. Swan1305
    Member
    Posted 1 year ago #

    How much longer before this is released? I would like to know if it's worth waiting or if I should look elsewhere as I'm just getting the choice of one country at the moment!

  8. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, for the delay. It is published now and should be available in 5 minutes on wordpress.org.

  9. adriapixel
    Member
    Posted 1 year ago #

    Hi,
    I've installed version 4.1 and get for Searchresult:

    No WeatherBug Partner-ID given. WeatherBug will not be searched.
    Enter a correct Partner-ID in the admin panel and save it to search WeatherBug.
    
    Please select a location:
    
    XML Fehler: Not well-formed (invalid token) in Zeile 1
  10. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    what did you search for? have you tried different locations?
    The notice concerning the partner ID is only a warning that weatherbug will not be searched, because you can only search weatherbug if you have a partner id.

    but the XML Fehler: Not well formed should not occur

  11. adriapixel
    Member
    Posted 1 year ago #

    Yes, I tried different locations (London, Rome, Frankfurt etc). Is it matter if I use it with WP 3.4.2?

  12. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    I jsut tested it again with wp 3.4.2 and it works without any problems. You can watch it here h
    Did you try the connection test? Does it work?

  13. adriapixel
    Member
    Posted 1 year ago #

    Hi, I just uploaded website to real server and it's working. I'm developing on MAMP, on localhost:8888. Where could be the problem?

  14. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    Well, I am not a MAC expert. Do you have any firewalls activated? Or maybe it sends something accuweather does not like.

    But to see what accuweather sends back you can change func_accu.php beginning with line 178 to

    if( !xml_parse( $parser, $xml, true ) )
          {
            // Fehler -> Ausf├╝hrung abbrechen
            die(  "XML Fehler: " .
                  xml_error_string( xml_get_error_code( $parser ) ) .
                  " in Zeile " .
                  xml_get_current_line_number( $parser ) .
                  " Antwort vom Server: <pre>" .
                  $xml . "</pre>"
                  );
          }

    This should give you the complete output of what accuweather sent back.

  15. edselsanz
    Member
    Posted 1 year ago #

    Hi!, i detect the problem. if the var $av['apikey1'] is empty the url fails. you must check this before call the api.

    if(!empty($av['apikey1'])){
        $blu=str_replace('#apicode#',$av['apikey1'],$av['BUG_LOC_URI']);
        $xml=get_loclist($blu,$_GET['searchterm']);
        $xml=utf8_encode($xml);
        bug_get_locations($xml); // modifies global array $loc
    	$bug_loc = $loc;
        }

    sorry for my inglish

  16. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    Well, works as designed. The part you picked is just for the WeatherBug query. It has nothing to do with the accuweather query.

    For WeatherBug query to work enter a partner-ID and save it in widget A.

    But good try. :-)

  17. adriapixel
    Member
    Posted 1 year ago #

    Is it possible to change language dinamicaly because I use QTranslate?

  18. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    Due to wp-forecast feature to have every location in a different language, what means wp-forecast has to load different translations at once it is not possible to translate it directly with qtranslate. but there is a wp-forecast.pot file which you can use to translate it to your language using e.g. poedit. I f you send the translation to me I will be glad to add it to the package.

  19. shaalan
    Member
    Posted 1 year ago #

    Where do I get a weatherbug partner ID??

  20. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    You can get the partner id at weatherbug.com under Weather bug API (top right) and please do not capture threads in this forum. Nobody will find anything again.

    THanks, Hans

  21. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    You can get the partner id at weatherbug.com under Weather bug API (top right) and please do not capture threads in this forum. Nobody will find anything again.

    THanks, Hans

  22. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    You can get the partner id at weatherbug.com under Weather bug API (top right) and please do not capture threads in this forum. Nobody will find anything again.

    Thanks, Hans

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic