Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.28.5 (build 3282) - 23 February 2024

Legacy Cumulus 1 release v1.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

Webpage not displaying

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
PaulMy
Posts: 3742
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2+ Cumulus1 / CummulusMX
Operating System: Windows8 / Windows10
Location: Komoka, ON Canada
Contact:

Webpage not displaying

Post by PaulMy »

Hi Ken,
I have been looking at updating my original Saratoga template (since 2011) which needs a lot of work http://www.komokaweather.com/komokaweather-ca/
As an intermediate process I added a new but separate Saratoga template page with no modifications http://www.komokaweather.com/komokaweather-ca2/
Both had been displaying until a couple of days ago and now in both there is no data displayed in the main page. Some menu items are ok like the NOAA reports. I have today updated all the files from the latest Base-Canada and CU-plugin updates (previous was Nov. 14, 2022).
The Status shows

Code: Select all

Weather Station Status
This page shows the current status of the weather software used in the operation of this website.
This website uses CumulusMX for weather conditions reporting.

Component	Status	Age
h:m:s	Latest update time as of 18/11/2023 13:47
CumulusMX realtime	Current	0:00:03	18/11/2023 13:47
CumulusMX FTP	Current	0:02:02	18/11/2023 13:45
CumulusMX weather data	NOT Current	472314:47:11	> 0:05:15 31/12/1969 19:00
There are many warning and some fatal errors shown in my host error log:

Code: Select all

[18-Nov-2023 13:46:34 America/Toronto] PHP Warning:  Undefined variable $VPuv in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ajax-gizmo.php on line 207
[18-Nov-2023 13:46:34 America/Toronto] PHP Warning:  Undefined variable $VPuv in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ajax-gizmo.php on line 209
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Attempt to read property "currentConditions" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 696
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Attempt to read property "forecastGroup" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 826
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Attempt to read property "yesterdayConditions" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 835
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Attempt to read property "riseSet" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 846
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Attempt to read property "forecastGroup" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1115
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Attempt to read property "forecast" on null in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1115
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  foreach() argument must be of type array|object, null given in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1115
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Undefined variable $forecasttext in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1201
[18-Nov-2023 13:46:38 America/Toronto] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php:1201
Stack trace:
#0 /home/psoykkrhjuz3/public_html/komokaweather-ca2/wxadvisory.php(85): include_once()
#1 {main}
  thrown in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1201
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Undefined variable $temperature in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ajax-gizmo.php on line 96
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Undefined variable $Currentsolardescription in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ajax-gizmo.php on line 112
[18-Nov-2023 13:46:38 America/Toronto] PHP Warning:  Undefined variable $temperature in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ajax-gizmo.php on line 115
Not sure how to fix this.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www .komokaweather.com/cumulusmxwll/index.htm
MX www.komokaweather.com/cumulusmx/index.php
MX www.komokaweather.com/cumulusmx/index.html

Image
User avatar
saratogaWX
Posts: 1169
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: Webpage not displaying

Post by saratogaWX »

For the komokaweather-ca2/ site:
It looks like your CUtags.php is not the expected CU-plugin CUtags.php -- it seems to be the pre-parsed one used with the silveracorn.nz MXUI website --- Version MX_2.2.6 - 24-March-2023.

I'm not surprised the template is aborting .. upload a processed CUtags.php with the $WX[] variables set, then all should work ok.

I used http://www.komokaweather.com/komokaweat ... hp?show=wx to show that issue.

There also seem to be issues revealed by http://www.komokaweather.com/komokaweat ... ?show=info

For the komokaweather-ca/ site http://www.komokaweather.com/komokaweat ... hp?show=wx
shows that the CUtags.php file is missing entirely.
User avatar
PaulMy
Posts: 3742
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2+ Cumulus1 / CummulusMX
Operating System: Windows8 / Windows10
Location: Komoka, ON Canada
Contact:

Re: Webpage not displaying

Post by PaulMy »

Thank you Ken, that solved the Status issue and trends are displaying. The pitfalls of using more than one template...

However the home page is still not showing. The webhost error message has

Code: Select all

[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  Attempt to read property "currentConditions" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 696
[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  Attempt to read property "forecastGroup" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 826
[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  Attempt to read property "yesterdayConditions" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 835
[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  Attempt to read property "riseSet" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 846
[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  Attempt to read property "forecastGroup" on bool in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1115
[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  Attempt to read property "forecast" on null in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1115
[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  foreach() argument must be of type array|object, null given in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1115
[18-Nov-2023 14:58:59 America/Toronto] PHP Warning:  Undefined variable $forecasttext in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1201
[18-Nov-2023 14:58:59 America/Toronto] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php:1201
Stack trace:
#0 /home/psoykkrhjuz3/public_html/komokaweather-ca2/index.php(86): include_once()
#1 {main}
  thrown in /home/psoykkrhjuz3/public_html/komokaweather-ca2/ec-forecast.php on line 1201
Is it possible that the cause is that the downloaded "update zip" included
ajaxMBwx.js
Updated: 2023-06-20 14:22
Version '4.04 - 20-Jun-2023 -- additional variables added by meteoalmendralejo.es for MB-trends-inc'
Size: 43953 bytes
Recommend: Replace current copy with updated copy after customization.
and which I uploaded to my website to replace the existing ajaxMBwx.js
and not ajaxCUwx.js so my website still has the ajaxCUwx.js dated Dec 23, 2021

I redid the Check for Updated and that shows the same ajaxMBwx.js

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www .komokaweather.com/cumulusmxwll/index.htm
MX www.komokaweather.com/cumulusmx/index.php
MX www.komokaweather.com/cumulusmx/index.html

Image
User avatar
saratogaWX
Posts: 1169
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: Webpage not displaying

Post by saratogaWX »

The ajaxXXwx.js scripts are included with all the Base-* updates as they are customized for units (Metric for Canada/World, E(Imperial) for USA).
It's ok to have it on your site, it's currently unused as your are using the Cumulus plugin. It would be ready to use if you switched to Meteobridge (MB-plugin).

Running http://www.komokaweather.com/komokaweat ... -times.php to test connectivity shows:
--checking EC Forecast URL --
Using Settings.php $SITE['fcsturlEC'] entry for test.
URL: https://weather.gc.ca/city/pages/on-137_metric_e.html
Cache: ./cache/ec-forecast-en.txt
curl fetching 'https://weather.gc.ca/city/pages/on-137_metric_e.html'
curl Error: Failed to connect to weather.gc.ca port 443 after 3001 ms: Couldn't connect to server
HTTP stats: RC=0 dest= port=0 (from sce=)
Times: dns=0.001 conn=0.000 pxfer=0.000 get=3.001 total=3.001 secs
headers returned:


RC=, bytes=4
------------
Content returned:


------------

Skipped cache write test to ./cache/ec-forecast-en.txt file.
Test was NOT successful.
--end EC Forecast URL check --
so the forecast failed due to no data.

Sam issue on the komokaweather-ca/ site. Looks like a connectivity issue between your webserver and weather.gc.ca.gov that should be worked with your hoster. The https://weather.gc.ca/city/pages/on-137_metric_e.html works fine for me and my site.
User avatar
PaulMy
Posts: 3742
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2+ Cumulus1 / CummulusMX
Operating System: Windows8 / Windows10
Location: Komoka, ON Canada
Contact:

Re: Webpage not displaying

Post by PaulMy »

Thanks again Ken, much appreciated.
That weather.gc.ca link you provided works for me here as well so will follow up with GoDaddy.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www .komokaweather.com/cumulusmxwll/index.htm
MX www.komokaweather.com/cumulusmx/index.php
MX www.komokaweather.com/cumulusmx/index.html

Image
User avatar
PaulMy
Posts: 3742
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2+ Cumulus1 / CummulusMX
Operating System: Windows8 / Windows10
Location: Komoka, ON Canada
Contact:

Re: Webpage not displaying

Post by PaulMy »

Hi Ken,
I am making progress...
I have selected for http://www.komokaweather.com/komokaweather-ca2/

Code: Select all

// radar settings for wxradar.php page
$SITE['ecradar']    = 'CASET';  // set to default Site for ec-radar (same as id=xxx on EC website)
// $SITE['ecradar']    = 'NAT';  // set to default Site for ec-radar (same as id=xxx on EC website)
//                               set to 'NAT' for Canada national composite map
and for http://www.komokaweather.ca/

Code: Select all

// radar settings for wxradar.php page
$SITE['ecradar']    = 'CASET';  // set to default Site for ec-radar (same as id=xxx on EC website)
// $SITE['ecradar']    = 'CASKR';  // set to default Site for ec-radar (same as id=xxx on EC website)
//                               set to 'NAT' for Canada national composite map
but the Local Radar defaults to King City CASKR instead of Exeter CASET
Is there another place I should be looking, or something else in my setup?

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www .komokaweather.com/cumulusmxwll/index.htm
MX www.komokaweather.com/cumulusmx/index.php
MX www.komokaweather.com/cumulusmx/index.html

Image
User avatar
saratogaWX
Posts: 1169
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: Webpage not displaying

Post by saratogaWX »

Ahh... found the issue.

In wxecradar-inc.php change

Code: Select all

	if (!isset($radar)) { // For debugging set some defaults if 'wxecradar-inc.php' is called alone
to

Code: Select all

	if (!isset($radarLoc)) { // For debugging set some defaults if 'wxecradar-inc.php' is called alone
then the $SITE['ecradar'] entry should be honored.
User avatar
PaulMy
Posts: 3742
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2+ Cumulus1 / CummulusMX
Operating System: Windows8 / Windows10
Location: Komoka, ON Canada
Contact:

Re: Webpage not displaying

Post by PaulMy »

Thanks so much Ken, ok now on both.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www .komokaweather.com/cumulusmxwll/index.htm
MX www.komokaweather.com/cumulusmx/index.php
MX www.komokaweather.com/cumulusmx/index.html

Image
Post Reply