Web Weather > Weather Website PHP/AJAX scripting
Updated PHP on the server now just seeing a blank page
w5twc:
Good afternoon,
I updated the PHP version on the host and now I am just seeing a blank page. Any ideas?
weather.w5twc.com
--using the saratoga-weather.org template base-usa
any help would be appreciated.
Thanks
Thomas W5TWC
w5twc:
I did run the following command
check-fetch-times.php
results are below
check-fetch-times.php Version 1.52 - 03-Apr-2023
Website PHP information
Webserver OS: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
PHP Version: 8.1.18 built for Linux
PHP cmd location: /usr/bin/php
Document root: /kunden/homepages/40/d380653040/htdocs/weather
Template root: /homepages/40/d380653040/htdocs/weather
allow_url_fopen = ON
allow_url_include = off
request_order =
Stream support for http is available
Stream support for https is available
Streams supported: compress.bzip2, compress.zlib, data, file, ftp, ftps, glob, http, https, phar, php, zip
Socket transports: ssl, tcp, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3, udg, udp, unix
saratogaWX:
The same happens when using check-fetch-times.php?show=versions I suspect the problem is with curl functions on your website.
Take a look at the error_log for your site .. it should have a message about what is failing. You may need to contact your hoster to resolve the issue.
Also, you'll need to change header.php from
--- Code: ---$tuom = split('�',$temperature); // extract units
--- End code ---
to
--- Code: ---$tuom = explode('�',$temperature); // extract units
--- End code ---
as the split() function is deprecated in PHP 8.1.
w5twc:
Good afternoon,
I apologize for not responding sooner.
I had the hosting company turn back the PHP upgrade. I then just upgraded 1 URL. Since both url's link to the same server, I am little confused. I also thought it migh help troubleshooting.
the url's are listed below
weather.twchandler.com
weather.w5twc.com
Is there something else I may be missing on my part.
Thanks
saratogaWX:
I think your issue is caused by Settings.php
--- Code: ---$SITE['cacheFileDir'] = '/cache/'; // directory to use for scripts cache files .. use './' for doc.root.dir
--- End code ---
that should be
--- Code: ---$SITE['cacheFileDir'] = './cache/'; // directory to use for scripts cache files .. use './' for doc.root.dir
--- End code ---
to enable storing info into the proper directory.
then you can run http://weather.w5twc.com/check-fetch-times.php?show=versions to show needed updates.
Also, before updating to PHP 8+, change header.php
--- Code: ---$tuom = split('�',$temperature); // extract units
--- End code ---
to
--- Code: ---$tuom = explode('�',$temperature); // extract units
--- End code ---
since the split() built-in function is removed in PHP 8.1 and will cause a fatal error (undefined function)
Navigation
[0] Message Index
[#] Next page
Go to full version