• Resolved lucy88

    (@lucy88)


    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/

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter lucy88

    (@lucy88)

    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!

    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.

    Thread Starter lucy88

    (@lucy88)

    Thanks TUXLOG for your help!
    Vielen Dank!!!

    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.

    Plugin Author tuxlog

    (@tuxlog)

    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

    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!

    Plugin Author tuxlog

    (@tuxlog)

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

    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
    Plugin Author tuxlog

    (@tuxlog)

    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

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

    Plugin Author tuxlog

    (@tuxlog)

    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?

    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?

    Plugin Author tuxlog

    (@tuxlog)

    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.

    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

    Plugin Author tuxlog

    (@tuxlog)

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

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Plugin: wp-forecast] Help! No location found for many cities (?)’ is closed to new replies.