Author Topic: WX3in1 - Blank Page - PHP8.2 - RESOLVED  (Read 344 times)

0 Members and 1 Guest are viewing this topic.

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
WX3in1 - Blank Page - PHP8.2 - RESOLVED
« on: March 24, 2024, 08:58:38 AM »
I recently changed servers and I migrated from PHP 7.4 to PHP8.2. When I load the "wx3in1php: page I get a blank page. I suspect that the path needs to be changed. In the “wall-settings.php” file. The current path is $cachedir = “/home/baldwinj1/public_html/wxsim_wxall/cache/”; Do I need to change this path and/or change any paths in any other files? My path to my server is “/home/baldwinj1/indiantrailweather.com/wxsim_wxall”. Here is the link to the blank page. Any help is appreciated. Thanks.
« Last Edit: March 26, 2024, 06:24:35 PM by Breezy »
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WX3in1 - Blank Page - PHP8.2
« Reply #1 on: March 24, 2024, 10:55:31 AM »
Your document root (shown at check-fetch-times.php?show=info) is /home/baldwinj1/indiantrailweather.com

So the $cachedir = "/home/baldwinj1/indiantrailweather.com/wxsim_all/cache/"; would appear to be correct,

Yes, all the other paths in the script need to change to /home/baldwinj1/indiantrailweather.com from /home/baldwinj1/public_html
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 Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: WX3in1 - Blank Page - PHP8.2
« Reply #2 on: March 24, 2024, 01:43:14 PM »
Thanks Ken,

Do I have to add the "." before the first "/" in "/home/baldwinj1/indiantrailweather.com/wxsim_all/cache/"? Such as "./home/baldwinj1/indiantrailweather.com/wxsim_all/cache/"?

I'm trying to find all of the paths in all of the "3in1" files.

Thank you.
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WX3in1 - Blank Page - PHP8.2
« Reply #3 on: March 24, 2024, 03:43:29 PM »
No.. the /home/baldwinj1/indiantrailweather.com/wxsim_all/cache/ is an absolute filesystem address.

Use ./wxsim_all/cache/ for releative filesystem address of any PHP page in your document root of /home/baldwinj1/indiantrailweather.com

adding a . before the absolute filesystem address would only result in 'file not found'.
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 Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: WX3in1 - Blank Page - PHP8.2
« Reply #4 on: March 24, 2024, 04:18:08 PM »
Thank you very much!  [tup]
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D