php (5.4) is now not playing very nice with one plugin, it used to on 5.3 spit odd errors but now php is fataling them.
PHP Fatal error: Cannot use object of type PEAR_Error as array in serendipity_plugin_weather/
serendipity_plugin_weather.php on line 196
which is:
$windDir = $weather_data["windDirection"];
Any pointers?
Cheers
serendipity_plugin_weather needs an update?
Re: serendipity_plugin_weather needs an update?
I don't really want to dive into this, but if this is still onboard, you could try to cast this as an array after the pear error checks and add
here:
https://github.com/s9y/additional_plugi ... r.php#L193
Did you try to upgrade the pear package first?
http://pear.php.net/package/Services_Weather
https://github.com/pear/Services_Weather
There was an update on such an error
http://pear.php.net/bugs/bug.php?id=19228
Code: Select all
$weather_data = (array)$weather_data;
https://github.com/s9y/additional_plugi ... r.php#L193
Did you try to upgrade the pear package first?
http://pear.php.net/package/Services_Weather
https://github.com/pear/Services_Weather
There was an update on such an error
http://pear.php.net/bugs/bug.php?id=19228
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: serendipity_plugin_weather needs an update?
thanks, I'm trying your code addition and have upgraded services_weather, will see how it goesTimbalu wrote:I don't really want to dive into this, but if this is still onboard, you could try to cast this as an array after the pear error checks and addhere:Code: Select all
$weather_data = (array)$weather_data;
https://github.com/s9y/additional_plugi ... r.php#L193
Did you try to upgrade the pear package first?
http://pear.php.net/package/Services_Weather
https://github.com/pear/Services_Weather
There was an update on such an error
http://pear.php.net/bugs/bug.php?id=19228
cheers