Page 1 of 1

Webpage not displaying

Posted: Sat 18 Nov 2023 7:08 pm
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

Re: Webpage not displaying

Posted: Sat 18 Nov 2023 7:25 pm
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.

Re: Webpage not displaying

Posted: Sat 18 Nov 2023 8:14 pm
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

Re: Webpage not displaying

Posted: Sat 18 Nov 2023 9:01 pm
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.

Re: Webpage not displaying

Posted: Sat 18 Nov 2023 9:08 pm
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

Re: Webpage not displaying

Posted: Mon 20 Nov 2023 10:54 pm
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

Re: Webpage not displaying

Posted: Tue 21 Nov 2023 2:34 am
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.

Re: Webpage not displaying

Posted: Tue 21 Nov 2023 4:03 am
by PaulMy
Thanks so much Ken, ok now on both.

Enjoy,
Paul