• Resolved dararede

    (@dararede)


    Today I noticed that some shortcodes are showing errors instead of weather(it is showing current weather but not days. Any solution for this and what is causing it?

    Warning: getimagesize(/home/xxx/public_html/wp-content/plugins/wp-forecast//icons/
    .png): failed to open stream: No such file or directory in /home/xxx/public_html/wp-content/plugins/wp-forecast/wp-forecast-show.php on line 417 ( and many other lines)

    Google for “failed to open stream: No such file or directory in /public_html/wp-content/plugins/wp-forecast/wp-forecast-show.php on line” and you will notice many websites with same problem.

    Thanks!

    https://www.ads-software.com/plugins/wp-forecast/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Hello and thanks for your hint.

    I googled but only found 4 or 5 sites with this problem. But anyway it is enough if it occurs on one site to try to fix it.

    Can you give an example of what shortcode does produce this result please?
    I tried it here and it seems to work. It would also be of importance which version of the plugin you use.

    It may help if you attach a screenshot of your settings, so I can adjust them in the test environment.

    Thanks

    Same issue here, am getting a PHP warning for ‘getimagesize’ since the latest update.

    I am inserting the plugin like so:

    <?php if(function_exists(wp_forecast)) { wp_forecast("A"); } ?>

    Screenshot of settings here https://www.dropbox.com/s/k8cjrp11jxe4ljk/settings.png?dl=0

    Thanks.

    Plugin Author tuxlog

    (@tuxlog)

    Not sure I fixed it because can not reproduce the problem on my sites. But anyway please try the v5.2.

    Thanks very much, that has fixed the issue for me.

    Plugin Author tuxlog

    (@tuxlog)

    Good to hear, should be solved for everyone then. ??

    I have this issue now after updating to 5.2.

    Warning: getimagesize(/home/newwhite/public_html/policedepartment/wp-content/plugins/wp-forecast//icons/ .gif): failed to open stream: No such file or directory in /home/newwhite/public_html/policedepartment/wp-content/plugins/wp-forecast/wp-forecast-show.php on line 413

    Warning: getimagesize(/home/newwhite/public_html/policedepartment/wp-content/plugins/wp-forecast//icons/ .gif): failed to open stream: No such file or directory in /home/newwhite/public_html/policedepartment/wp-content/plugins/wp-forecast/wp-forecast-show.php on line 491

    Thread Starter dararede

    (@dararede)

    I can also confirm this with v5.2, with v4, and even v3, I have plugin on multiple websites.

    Thread Starter dararede

    (@dararede)

    I have done some testing;
    Sometimes error is gone when I hit save(just save, no edit) widget.
    Sometimes error is only showing when metric units are on.
    By disabling icons (current, day, night) error codes are not visible but there are no forecast details for days.
    Current weather is not the problem.

    Very strange and cant figure out where is the problem…

    Plugin Author tuxlog

    (@tuxlog)

    Yes, it is strange. I am not convinced if it is a wp-forecast problem but maybe a php problem.

    The warnings occur when during the XML data of accuweather no weathericon codes are found. This happends sometimes and someimts not.
    I am checking now the php XML parser but will release a version soon which does some sanity chcking to get rid of the warning messages.

    Plugin Author tuxlog

    (@tuxlog)

    Seems accuweather changed the server. V5.4 should resolve this.
    Please test it.

    Thread Starter dararede

    (@dararede)

    Sadly v5.4 didn’t fix this ?? Only difference now is that there is no error text showing. Forecasts for days still have no icons or any data showing.

    Plugin Author tuxlog

    (@tuxlog)

    Yes, it seems accuweather sometimes sends only a part of the data. Don’t know why. Can you try to raise the refresh interval please. Let’s say to 11000, thats about 3 hours.

    I am currently try to find out why. But it is not a problem with wp-forecast. It is just because the data is not send.

    Aynway I keep analyzing this.

    Thread Starter dararede

    (@dararede)

    Thanks, hopefully you can find a way how to solve this, because plugin is great! ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Errors instead of weather’ is closed to new replies.