Yahoo Weather
ExpressionEngine 2, ExpressionEngine 3
Back to this add-on's main page
View Other Add-ons From 25hweb
PHP Errors
Bug Report
displayground
|
Posted: 28 March 2016 12:43 PM |
|
|
|
Hello,
We’re running into some php errors and our template tags are being printed to the page and not loading the weather information.
Details…
php errors in CP on plugin page.
A PHP Error was encountered Severity: 8192 Message: Non-static method Yahoo_weather::usage() should not be called statically, assuming $this from incompatible context Filename: yahoo_weather/pi.yahoo_weather.php Line Number: 21 A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /system/codeigniter/system/core/Exceptions.php:170) Filename: core/Common.php Line Number: 479
Template tag
{exp:yahoo_weather location="USCO0085" language="en" unit="f"} <i class="wi wi-yahoo-{current_condition_code}"></i> <span class="temp">{current_condition_temp_c}°</span>{/exp:yahoo_weather}
Running…
EE v2.10.3
Yahoo Weather 1.2.1
PHP 5.6.17
Would really appreciate some help getting this fixed.
Thank you.
|
|
|
Daliz
|
Posted: 29 March 2016 10:06 AM |
# 1
|
|
|
I have the same problem, seems like something is going wrong with the Yahoo Interface or so..
|
|
|
Click Rain
|
Posted: 30 March 2016 10:45 AM |
# 2
|
|
|
We are experiencing the same issue.
|
|
|
Filippo
|
Posted: 30 March 2016 11:39 AM |
# 3
|
|
Developer
|
Hello,
Seems to be a Yahoo change in API.
I’ll try to find a quick solution but probable I need to change a lot of code.
Filippo
|
|
|
Filippo
|
Posted: 30 March 2016 11:44 AM |
# 4
|
|
Developer
|
Please,
use error tag to handle yahoo error in right way.
Filippo
|
|
|
displayground
|
Posted: 31 March 2016 10:24 AM |
# 5
|
|
|
I’m sorry, I don’t understand what “use error tag to handle yahoo error in right way” means.
Can you give an example?
|
|
|
Filippo
|
Posted: 01 April 2016 06:34 AM |
# 6
|
|
Developer
|
It’s quite simple.
{exp:yahoo_weather location=“UKXX0085” language=“en” unit=“c” tomorrow=“disable” }
{if ‘{error}’==‘FALSE’}
[your code and template]
{/if}
{if ‘{error}’==‘TRUE’}
Forecasts aren’t available.
{/if}
{/exp:yahoo_weather}
In this way you can handle Yahoo Weather error and so avoid to break your html template.
|
|
|
Filippo
|
Posted: 02 April 2016 11:05 AM |
# 7
|
|
Developer
|
Seems to be many changes on yahoo api, and many other users have problem.
Now yahoo api documentation and other yahoo services are not working correctly.
Anyway I’m working on an update of Yahoo Weather.
Filippo
|
|
|
Filippo
|
Posted: 04 April 2016 11:36 AM |
# 8
|
|
Developer
|
Yahoo Weather v. 2.0.0. is released. Compatible with EE2 > 2.10.0 and EE v 3.1.0
Please open a new post o send an email to filippo [at] 25hweb dot com for any questione.
Filippo
|
|
|