Author Topic: Updated PHP on the server now just seeing a blank page  (Read 527 times)

0 Members and 1 Guest are viewing this topic.

Offline w5twc

  • Member
  • *
  • Posts: 4
Updated PHP on the server now just seeing a blank page
« on: May 08, 2023, 01:11:38 PM »
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

Offline w5twc

  • Member
  • *
  • Posts: 4
Re: Updated PHP on the server now just seeing a blank page
« Reply #1 on: May 08, 2023, 01:47:33 PM »
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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Updated PHP on the server now just seeing a blank page
« Reply #2 on: May 08, 2023, 02:01:53 PM »
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: [Select]
$tuom = split('�',$temperature);  // extract units
to
Code: [Select]
$tuom = explode('�',$temperature);  // extract units
as the split() function is deprecated in PHP 8.1.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline w5twc

  • Member
  • *
  • Posts: 4
Re: Updated PHP on the server now just seeing a blank page
« Reply #3 on: June 12, 2023, 02:16:19 PM »
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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Updated PHP on the server now just seeing a blank page
« Reply #4 on: June 12, 2023, 02:49:45 PM »
I think your issue is caused by Settings.php
Code: [Select]
$SITE['cacheFileDir']   =  '/cache/';   // directory to use for scripts cache files .. use './' for doc.root.dir
that should be
Code: [Select]
$SITE['cacheFileDir']   =  './cache/';   // directory to use for scripts cache files .. use './' for doc.root.dir
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: [Select]
$tuom = split('�',$temperature);  // extract units
to
Code: [Select]
$tuom = explode('�',$temperature);  // extract units
since the split() built-in function is removed in PHP 8.1 and will cause a fatal error (undefined function)
« Last Edit: June 12, 2023, 02:56:32 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline w5twc

  • Member
  • *
  • Posts: 4
Re: Updated PHP on the server now just seeing a blank page
« Reply #5 on: June 16, 2023, 09:40:14 PM »
Good evening,

I thought I had made the one change, maybe I didn't the site is back up and working now.


Thanks

 

anything