pwsWD fatal error on 1 site, other site without problems

I have two weather websites on the same server, they have been working fine for several years, one seems to have stalled, the top banner is working ok, the rest doesn’t appear. Has anyone seen this before?

Link

Its hard to describe so heres a screen shot.

Running _test.php shows:

Fatal error : Uncaught Error: Class “DOMDocument” not found

in the Forecast module. Hopefully Wim can explain :slightly_smiling_face:

1 Like

Uncaught Error: Class “DOMDocument” not found

The error occurs when the phpsetup is incomplete.
Not every type of forecast needs this php function.
What are the differences between the two websites?

The OP should contact the website provider to compare the two php-setups.

@all I am enroute without decent internet until September 19.

Wim

Please unzip and move the info.php script to both your websites.
It should lists the installed PHP parts so we can check what parts are missing.


Also can you post the URL to your other website which is working correctly?

Thanks,
Wim

1 Like

Thanks for the reply, Ive searched through the whole installation folder and I can’t find the info.php file, is it hiding somewhere?

Here is the working webiste Alberta - Canada Home Weather Station (wu version)
Here is the faulty website https://lakesummersideweather.ca/

i think Wim intended to include this link in his post
info.zip (135 Bytes)

1 Like

Thank you.

I have now uploaded info.php to both the above websites.

See attached screenshot for the differences between your two webservers.
The sites have different settings for xml support

Please contact your hosting support staff.
You pay for their support.
You can point them to this topic, I attach as much info as possible


The link to the forecast block in test mode ./_test.php?test=fct_ec_block.php

The error message:

Fatal error: Uncaught Error: Class "DOMDocument" not found in 
/home/cyupco15/lakesummersideweather.ca/fct_ec_shared.php:195

The PHP source of the fct_ec_shared.php script ./fct_ec_shared.php?sce=view

Line 195 reads:

$doc = new DOMDocument(‘1.0’, ‘utf-8’);


As a first alternative you can click this link to google search with the error message "Uncaught Error: Class “DOMDocument not found” ".
There are no solutions we could apply. At least I did not found them.


A second alternative, use the WU forecast on the problem website.
That forecast works OK.

Succes,
Wim

Thank you so much.

Paul