0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Rok Weather Bug

    • geoneto's Avatar
    • geoneto
    • Newbie
    • Posts: 1
    • Thanks: 0

    Rok Weather Bug

    Posted 13 years 7 months ago
    • It seems there is bug in Module Rok Weather.
      There are cases where google xml is missing some data, for example
      <wind_condition data="Wind: N at 18 mph"/>
      disappears when current conditions are sent are empty.
      This situation can even last for one hour.

      In this case the module Rok Weather cause the page in which is called from, to be crashed (it appears as a blank page). If you have this module enabled in all pages (assigned to all menus), the whole site crashes.

      The problem is caused in googleweather.class.php at
      $return_array = $current_conditions->wind_condition->attributes('data');
      where there is no handler for this or similar error.

      You can replicate this error, for example
      www.google.com/ig/api?weather=paris
      copy the xml file in the editor, remove the line
      <wind_condition data=""/> in <current_conditions>
      save it in a text file, and then modify the googleweather.class.php, instead of curl google, to read the file just saved.

      I have noticed that google misses some current condition data for small locations (towns).
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Rok Weather Bug

    Posted 13 years 6 months ago
    • I have added this to our bug tracker. 8)
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG

Time to create page: 0.068 seconds