Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Saratoga Templates with PHP 7
Moderator: saratogaWX
- ConligWX
- Posts: 1622
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Saratoga Templates with PHP 7
Hi there.
Is anyone running Saratoga Templates with PHP 7? I am thinking of upgrading the PHP from 5.6.29 and was wondering does anyone have php7 running without any severe issues?
any Deprecated commands need changed?
Is anyone running Saratoga Templates with PHP 7? I am thinking of upgrading the PHP from 5.6.29 and was wondering does anyone have php7 running without any severe issues?
any Deprecated commands need changed?
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 272
- Joined: Tue 28 May 2013 1:06 am
- Weather Station: Davis VP2 Plus
- Operating System: Raspian Buster (RPi 3b)
- Location: Tulsa, OK
Re: Saratoga Templates with PHP 7
My Saratoga website isn't WAN accessible (without firewall modifications as I can access my network from the WAN) but I put 7.0.1 on the Pi I'm running the webserver on and it seems ok. I don't access it a lot, but the only deprecated message I could find was related to Cumulus server side graphs and having to change jpgraphs to 4.0.2 in order for it to work. 3.5.1 won't work on PHP7 as far as I can tell.
- ConligWX
- Posts: 1622
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Saratoga Templates with PHP 7
Thank for the info. Just looked at my jpgraphs they are 4.0.1 but http://jpgraph.net shows php7 was supported from 4.0.0
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
- saratogaWX
- Posts: 1187
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Saratoga Templates with PHP 7
I'm running PHP Version 7.0.14 on saratoga-weather.org and all the current release (stock) scripts are working fine with no errors. Some 3-rd party scripts may need updates which would be provided by those authors. The USA nws-alerts.php script does need a couple of variable initialization tweaks (to initialize as array() instead of '' (a null string)). PHP 7.1 stops doing auto-recasting of string-to-array and posts warning messages instead.
I'll be testing with PHP 7.1 a bit later when I have it available on my VPS.
I'll be testing with PHP 7.1 a bit later when I have it available on my VPS.
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Saratoga Templates with PHP 7
Saratoga templates have worked / are working OK with 7.0.10, 7.0.11, 7.0.12, 7.0.13 and 7.0.14 but not with 7.1.0 because of changes to array handling.
Last edited by BCJKiwi on Thu 12 Jan 2017 6:54 am, edited 2 times in total.
- saratogaWX
- Posts: 1187
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Saratoga Templates with PHP 7
Other than the nws-alerts.php issues with PHP 7.1, did you find any other scripts that were having issues??
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Saratoga Templates with PHP 7
Ken,
Don't actually use NWS Alerts (in New Zealand!!)
The only one I have found so far is the datasummary scripts (creates arrays with [] but could be something else?) by beteljuice.
You can check out the scripts I am using at the link in my sig below BUT the public site is running php 7.0.13. Have various versions on my internal WAMP server for development/testing.
PM or email me if you want any further info
Don't actually use NWS Alerts (in New Zealand!!)
The only one I have found so far is the datasummary scripts (creates arrays with [] but could be something else?) by beteljuice.
You can check out the scripts I am using at the link in my sig below BUT the public site is running php 7.0.13. Have various versions on my internal WAMP server for development/testing.
PM or email me if you want any further info
- ConligWX
- Posts: 1622
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Saratoga Templates with PHP 7
Thanks for the responses guys, I've just installed a new package for my NAS (QApache - Apache 2.4.25/ PHP 7.1.0 +PECL) and setup a new Web share.
So far so good, had to change a few paths etc, but will keep an eye out for any issues and let you know what I find.
So far so good, had to change a few paths etc, but will keep an eye out for any issues and let you know what I find.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Saratoga Templates with PHP 7
Just upgraded the development webserver from Wampserver v3.06 to v3.08 which was required to install PHP v7.1.1
Unfortunately PHP v7.1.1 has the same issue as PHP v7.1.0 with the one webpage mentioned before. Everything else appeared OK.
Pretty sure this relates to the array changes in v7.1.x
Also installed the just released PHP v7.0.15 - it is amazing to see how many bugs they are still fixing in 7.0
v7.0.15 appears OK as the same webpage that does not work in 7.1.x is fine in 7.0.15.
Unfortunately PHP v7.1.1 has the same issue as PHP v7.1.0 with the one webpage mentioned before. Everything else appeared OK.
Pretty sure this relates to the array changes in v7.1.x
Also installed the just released PHP v7.0.15 - it is amazing to see how many bugs they are still fixing in 7.0
v7.0.15 appears OK as the same webpage that does not work in 7.1.x is fine in 7.0.15.
- ConligWX
- Posts: 1622
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Saratoga Templates with PHP 7
Running php 7.1.1 here and so far so good. Also added https to my virtual hosts too!
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Saratoga Templates with PHP 7
Running PHP 7.1.1 here too. Found a fix for the array problem so that page is good now.
Also found this
Advised the writer of that script and it has been updated already
Also found this
when looking at the PHP error logs when sorting out the array changes.PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
Advised the writer of that script and it has been updated already
- ConligWX
- Posts: 1622
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Saratoga Templates with PHP 7
Running PHP 7.1.2 now. all seems ok.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
- saratogaWX
- Posts: 1187
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Saratoga Templates with PHP 7
Me too.. upgraded yesterday to 7.1.2 also for the saratoga main site (and 8 regional networks).
Only one issue found in mesonet-map-common.php that cast a Warning: inside the JSON when a station wasn't reporting Gusts (so the map disappeared).
Changed mesonet-map-common.php to and that fixed the issue.
Only one issue found in mesonet-map-common.php that cast a Warning: inside the JSON when a station wasn't reporting Gusts (so the map disappeared).
Changed mesonet-map-common.php
Code: Select all
if ($GUST <> '-') {
if (!preg_match('|m/s|',$uomWind)) { // convert wind to meters-per-second
Code: Select all
if ($GUST <> '-' and is_numeric($GUST)) {
if (!preg_match('|m/s|',$uomWind)) { // convert wind to meters-per-second
- ConligWX
- Posts: 1622
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Saratoga Templates with PHP 7
Thanks Ken, just amended mine now.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
- ConligWX
- Posts: 1622
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Saratoga Templates with PHP 7
just upgraded to 7.1.3. all seems good so far.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0