Author Topic: WxSim 3in1-forecast script not working in PHP 8.xx  (Read 1439 times)

0 Members and 1 Guest are viewing this topic.

Offline meteothes.gr

  • meteothes.gr Administrator
  • Member
  • *
  • Posts: 26
    • Weather Live! at Thessaloniki Historical Center
WxSim 3in1-forecast script not working in PHP 8.xx
« on: January 13, 2023, 04:35:58 AM »
Hi,
I've been using the WxSim 3in1-forecast (wxsim_wxall) script since 2017, but when I tried to migrate from PHP 7.xx PHP 8.xx version, it stopped working!
Although there are some compatibility warnings in 7.xx it is working. The author of that script (Nordicweather.net) has stopped the development since 2017 when it was updated for the last time.

Is there a chance to find an updated version of that or try to fix the issues that makes it unusable in PHP 8.xx environment? The author's page is here:

https://www.nordicweather.net/phpscripts.php?en and you can see the script running here at my weather site:

https://meteothes.gr/wxsim_wxall_fcast.php (Current PHP Version 7.4.33).

Thanos

https://meteothes.gr/
Weather Live! at the Historical Center of Thessaloniki
Central Macedonia - Northern Greece

Offline broadstairs

  • Forecaster
  • *****
  • Posts: 858
Re: WxSim 3in1-forecast script not working in PHP 8.xx
« Reply #1 on: January 13, 2023, 04:44:48 AM »
We are seeing a few scripts now which stop working on PHP 8+ and their authors are not around any more or at least not updating them. I think you will not be lucky unless a current user has corrected any issues and is willing to share the fixes. Perhaps if you could provide the actual PHP errors you are seeing in your server logs someone might be able to suggest a fix.

Stuart
Ecowitt GW1003 with ultrasonic wind gauge, lightning sensor and PM2.5 sensor with Personal Weather Tablet as a console.

Offline meteothes.gr

  • meteothes.gr Administrator
  • Member
  • *
  • Posts: 26
    • Weather Live! at Thessaloniki Historical Center
Re: WxSim 3in1-forecast script not working in PHP 8.xx
« Reply #2 on: January 13, 2023, 10:07:07 AM »
We are seeing a few scripts now which stop working on PHP 8+ and their authors are not around any more or at least not updating them. I think you will not be lucky unless a current user has corrected any issues and is willing to share the fixes. Perhaps if you could provide the actual PHP errors you are seeing in your server logs someone might be able to suggest a fix.

Stuart

I agree, it's very difficult to find an updated script, but I count to anyone who has corrected the issues and is willing to share any fixes!

If not, the script will be disabled and upgrade my server to PHP 8.xx, because a safer PHP environment is more important than anything else!

Thanks,

Thanos

https://meteothes.gr
Weather Live! at the Historical Center of Thessaloniki
Central Macedonia - Northern Greece

Offline meteosa

  • Member
  • *
  • Posts: 18
Re: WxSim 3in1-forecast script not working in PHP 8.xx
« Reply #3 on: September 22, 2023, 06:21:39 AM »
HI,
Has anyone managed to make the script work for PHP 8.x?
I would be interested too.
Thank you

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: WxSim 3in1-forecast script not working in PHP 8.xx
« Reply #4 on: March 27, 2024, 01:29:21 PM »
I am not aware of any current PHP 8 version of these fine scripts.
The same question was asked at another forum a few days ago.

I did a QAD upgrade and posted the results at https://discourse.weather-watch.com/t/wx3in1-script-running-on-php-8-x/73471/1

You can download and test/use thatversion but  and
-> share your problems when you encounter those so that i can solve them.

I will try to remove all warnings first and will remove other messages in the coming days.

It will take some time as the warnings are caused by missing versus expected available data.
And lastret.txt and plaintext.txt are very customisable.

Wim


 

anything