Author Topic: Leuven WXSIM scripts and PHP8  (Read 747 times)

0 Members and 1 Guest are viewing this topic.

Offline weatheroz

  • Senior Contributor
  • ****
  • Posts: 216
    • http://www.jimboombaweather.com
Leuven WXSIM scripts and PHP8
« on: January 30, 2023, 07:28:40 AM »
I'm trying to update to PHP8, and I'm getting this error when I load the page with this wsfct4 forecasting script.

Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /home/loganvil/public_html/wsfct4/wsIncWxsimPCreate.php:207 Stack trace: #0 /home/loganvil/public_html/wsfct4/wsIncWxsimPCreate.php(207): round('') #1 /home/loganvil/public_html/wsfct4/wsIncWxsimPHtml4.php(85): include_once('/home/loganvil/...') #2 /home/loganvil/public_html/wsfct4/wsFctWxsimDPage.php(270): include_once('/home/loganvil/...') #3 {main} thrown in /home/loganvil/public_html/wsfct4/wsIncWxsimPCreate.php on line 207

I'm hoping there is a simple fix to this, because this produces a very nice forecast on my site.
Brendan,
vk4blp
IRLP 6857 Echolink 672767


Offline broadstairs

  • Forecaster
  • *****
  • Posts: 858
Re: Leuven WXSIM scripts and PHP8
« Reply #1 on: January 30, 2023, 07:36:26 AM »
I replied on your other thread to this. The variable is the wrong type, it's string and should be integer or float. Try contacting the original author.

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

Offline weatheroz

  • Senior Contributor
  • ****
  • Posts: 216
    • http://www.jimboombaweather.com
Re: Leuven WXSIM scripts and PHP8
« Reply #2 on: January 30, 2023, 08:14:31 AM »
I replied on your other thread to this. The variable is the wrong type, it's string and should be integer or float. Try contacting the original author.

Stuart

Thanks, I'm hoping he still visits here and has an answer or better yet a fix. :)
Brendan,
vk4blp
IRLP 6857 Echolink 672767


Offline souldrifter798

  • Member
  • *
  • Posts: 19
    • Tamworth Weather Station
Re: Leuven WXSIM scripts and PHP8
« Reply #3 on: February 08, 2023, 07:30:33 AM »
Does anyone have a link to download this script? I used to use it and would like to again but the version i have don't seem to work correctly anymore, think i broke it with editing somewhere along the line. Thanks.
« Last Edit: February 08, 2023, 07:34:39 AM by souldrifter798 »
Watson W8686 (HP2550)

Offline broadstairs

  • Forecaster
  • *****
  • Posts: 858
Ecowitt GW1003 with ultrasonic wind gauge, lightning sensor and PM2.5 sensor with Personal Weather Tablet as a console.

Offline souldrifter798

  • Member
  • *
  • Posts: 19
    • Tamworth Weather Station
Watson W8686 (HP2550)

 

anything