Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

Saratoga Templates with PHP 7

Discussion of Ken True's web site templates

Moderator: saratogaWX

User avatar
saratogaWX
Posts: 912
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

Post by saratogaWX » Sun 02 Apr 2017 9:47 pm

I've been running 7.1.3 for about 2 weeks now.. working just fine :)

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: Saratoga Templates with PHP 7

Post by ConligWX » Sat 15 Apr 2017 9:05 am

btw 7.1.4 is now out Ken.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
saratogaWX
Posts: 912
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

Post by saratogaWX » Sat 15 Apr 2017 2:54 pm

Thanks... I'll keep checking my Plesk panel for an available update for my VPS :)

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: Saratoga Templates with PHP 7

Post by ConligWX » Fri 07 Jul 2017 5:57 pm

PHP 7.1.7 is now out btw.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
saratogaWX
Posts: 912
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

Post by saratogaWX » Fri 07 Jul 2017 10:51 pm

My sites are running 7.1.6 -- I'll wait for Plesk to have an update for 7.1.7 to install it :)

User avatar
N0BGS
Posts: 200
Joined: Sat 10 Nov 2012 2:26 am
Weather Station: Davis Vantage Pro 2
Operating System: Win7vm,VMWare ESXi 6.5
Location: Hermon, Maine USA
Contact:

Re: Saratoga Templates with PHP 7

Post by N0BGS » Thu 03 Aug 2017 6:39 pm

I'm a little late to this thread but since upgrading to PHP 7.1.7 I'm getting the following errors:

Code: Select all

PHP Warning:  A non-numeric value encountered in /var/www/html/nws-alerts.php on line 127
PHP Warning:  Illegal string offset 'Androscoggin County' in /var/www/html/nws-alerts.php on line 219
PHP Warning:  Illegal string offset 'Aroostook County' in /var/www/html/nws-alerts.php on line 219
PHP Warning:  Illegal string offset 'MEZ008' in /var/www/html/nws-alerts.php on line 308
Page can be seen here: https://www.kpw3.com/wxadvisory.php

Some of you have mentioned you discovered the fix. Care to share it?

Thanks,

--Kurt
Blitzortung Station 1809

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: Saratoga Templates with PHP 7

Post by ConligWX » Thu 03 Aug 2017 10:39 pm

N0BGS wrote:I'm a little late to this thread but since upgrading to PHP 7.1.7 I'm getting the following errors:

Code: Select all

PHP Warning:  A non-numeric value encountered in /var/www/html/nws-alerts.php on line 127
PHP Warning:  Illegal string offset 'Androscoggin County' in /var/www/html/nws-alerts.php on line 219
PHP Warning:  Illegal string offset 'Aroostook County' in /var/www/html/nws-alerts.php on line 219
PHP Warning:  Illegal string offset 'MEZ008' in /var/www/html/nws-alerts.php on line 308
Page can be seen here: https://www.kpw3.com/wxadvisory.php

Some of you have mentioned you discovered the fix. Care to share it?

Thanks,

--Kurt
is your wxgraphs heavily edited?

https://www.kpw3.com/check-fetch-times. ... w=versions

shows: Common wxgraphs.php Need update to V1.04 - 2013-02-16 V1.04 - 2013-02-16 Vn/a - n/a (not specified)

btw PHP 7.1.8 was released today.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
N0BGS
Posts: 200
Joined: Sat 10 Nov 2012 2:26 am
Weather Station: Davis Vantage Pro 2
Operating System: Win7vm,VMWare ESXi 6.5
Location: Hermon, Maine USA
Contact:

Re: Saratoga Templates with PHP 7

Post by N0BGS » Fri 04 Aug 2017 4:31 am

Yes, it's not actually Ken's wxgraphs page, it is a replacement for the page of the same name since CumulusMX doesn't generate graphs the way Cumulus 1.x did. I suppose I should rename it to avoid confusion.

Do you have reason to believe that 7.1.8 will fix the invalid argument error?

Thanks,

--Kurt
Blitzortung Station 1809

User avatar
N0BGS
Posts: 200
Joined: Sat 10 Nov 2012 2:26 am
Weather Station: Davis Vantage Pro 2
Operating System: Win7vm,VMWare ESXi 6.5
Location: Hermon, Maine USA
Contact:

Re: Saratoga Templates with PHP 7

Post by N0BGS » Fri 11 Aug 2017 7:40 pm

So to follow this up...

I installed PHP 7.1.8 and still have the same error, then downgraded to 7.1.6 and still have the error. :(

It must be nice to NOT be a PHP moron! :roll:

--K
Blitzortung Station 1809

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: Saratoga Templates with PHP 7

Post by ConligWX » Fri 11 Aug 2017 9:38 pm

N0BGS wrote:So to follow this up...

I installed PHP 7.1.8 and still have the same error, then downgraded to 7.1.6 and still have the error. :(

It must be nice to NOT be a PHP moron! :roll:

--K
I see an error:

Code: Select all

Warning: Invalid argument supplied for foreach() in /var/www/html/nws-alerts-summary-inc.php on line 61
on this link https://www.kpw3.com/wxadvisory.php

Mine points to a different website so cant really comment much on it... php 7.1.8 / Apache 2.4.27

what is line 61 on nws-alerts-summary-inc.php ?
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
saratogaWX
Posts: 912
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

Post by saratogaWX » Fri 11 Aug 2017 10:13 pm

That was likely a transient error caused by a problem with alerts.weather.gov today. They reported about a 1 hr outage earlier today. The page is not showin the error now.

User avatar
N0BGS
Posts: 200
Joined: Sat 10 Nov 2012 2:26 am
Weather Station: Davis Vantage Pro 2
Operating System: Win7vm,VMWare ESXi 6.5
Location: Hermon, Maine USA
Contact:

Re: Saratoga Templates with PHP 7

Post by N0BGS » Sun 13 Aug 2017 2:58 am

No, unfortunately the error is still there and has been since the upgrade to 7.1.7.

This page: https://www.kpw3.com/wxadvisory.php

Error:

Code: Select all

Warning: Invalid argument supplied for foreach() in /var/www/html/nws-alerts-summary-inc.php on line 61
Here's the section of code including line 61:

Code: Select all

if(!empty($noAlerts)) {                 // IF there are no alerts for this location
   foreach($noAlerts as $nak => $nav) {   //   FOR EACH no alert, assemble data  << THIS IS LINE 61
    $alerts .= ' <tr>
  <td style="padding-left:6px"><b>'.$nak."</b><br />\n";
    $alerts .= '   &nbsp;&nbsp;'.$blankIcon.'&nbsp;<a href="'.$alertURL
               .'?a='.$nav.'#WA1" title=" &nbsp;Details for '
               .$nak.'" style="color: #000;">No alerts</a>'."\n";
    $alerts .= '   <br /><br />
  </td>
 </tr>
';
  }
}
--Kurt
Blitzortung Station 1809

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: Saratoga Templates with PHP 7

Post by ConligWX » Sun 13 Aug 2017 7:42 pm

I found a couple of old graphs wouldn't work properly with php 7.1.7 ended up adding single quotes to the value fixed it. not sure if this is the case with yours however.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: Saratoga Templates with PHP 7

Post by ConligWX » Sun 18 Feb 2018 9:24 pm

Finally managed to get upgraded to PHP 7.2.2 tonight. Templates are looking good so far.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
saratogaWX
Posts: 912
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

Post by saratogaWX » Sun 18 Feb 2018 9:41 pm

All my sites are now running 7.2.2. I did have to upgrade my JPGraph software from 4.0.1 to 4.2.0 to avoid some errata in error_log. Everything else is ok.

Post Reply