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

Webpage not displaying

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
PaulMy
Posts: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and 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
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
saratogaWX
Posts: 1202
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: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and 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
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
saratogaWX
Posts: 1202
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: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and 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
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
PaulMy
Posts: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and 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
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
saratogaWX
Posts: 1202
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: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Webpage not displaying

Post by PaulMy »

Thanks so much Ken, ok now on both.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
PaulMy
Posts: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Webpage not displaying

Post by PaulMy »

Hi Ken,
The site again stopped working. There were some scripts to be updated and I downloaded today and updated the site but still not working. The http://www.komokaweather.com/komokaweat ... -times.php indicates

Code: Select all

 curl Error: Failed to connect to weather.gc.ca port 443 after 3000 ms: Couldn't connect to server


I checked the updated wxecradar-inc.php and it has the update as you noted in my previous issue in November.

Any further suggestion?

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
saratogaWX
Posts: 1202
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 curl 'failed to connect' issue is a problem with your webserver's connection -- it's something the hoster needs to address in the routing for outbound connections to weather.gc.ca -- the script just reports the issue (but can't fix it).
User avatar
PaulMy
Posts: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Webpage not displaying

Post by PaulMy »

Thanks Ken, I will contact GoDaddy.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
Post Reply