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