Author Topic: Theme Switch Error?  (Read 504 times)

0 Members and 1 Guest are viewing this topic.

Offline Forever

  • Senior Contributor
  • ****
  • Posts: 211
Theme Switch Error?
« on: March 26, 2023, 10:38:54 AM »
I have been getting the error below and I'm not able to track down where the bath is defined or how to fix this. Anyone have any ideas?

PHP Notice:  session_start(): ps_files_cleanup_dir: opendir(C:\Windows\TEMP) failed: No error (0) in C:\inetpub\weathercat\Settings.php on line 382

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Theme Switch Error?
« Reply #1 on: March 26, 2023, 03:29:37 PM »
I'm not sure (since you're running PHP on IIS/Windows), but I think the PHP settings you have for
Quote
session.save_handler   files   files
session.save_path   no value   no value
aren't quite right.  The save_handler says files, but no path is specified.

For my PHP on Apache/Linux, those values look like
Quote
session.save_handler   files   files
session.save_path   /var/lib/php/session   /var/lib/php/session
(note the default session.save_path points to a PHP writable directory
« Last Edit: March 26, 2023, 03:34:25 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 Forever

  • Senior Contributor
  • ****
  • Posts: 211
Re: Theme Switch Error?
« Reply #2 on: March 26, 2023, 05:01:18 PM »
I changed my session.save_path to C:\Windows\Temp to see if that helps. Do you know what script/file that path is defined in?

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Theme Switch Error?
« Reply #3 on: March 26, 2023, 05:07:46 PM »
That value is in the php.ini -- none of the scripts explicitly reference it, they just use the built-in PHP session_start() function if needed.  The issue is not a scripts problem, it's a PHP configuration problem to solve.
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 Forever

  • Senior Contributor
  • ****
  • Posts: 211
Re: Theme Switch Error?
« Reply #4 on: March 27, 2023, 08:54:30 AM »
It seems it was a permissions issue on the folder causing the issue. I moved the folder and gave PHP the ability to remove the files and I think the issue is fixed.

 

anything