I get this when I run drush cron --debug

I also get this in my logs

Comments

rdeboer’s picture

Title: scandir(): Directory name cannot be empty session_cache_file.modul » scandir(): Directory name cannot be empty session_cache_file.module
Assigned: Unassigned » rdeboer
Status: Active » Fixed

Was there a line number? #87 maybe?

I think I know where this might have happened, so I've checked in some defensive code so that hook_cron() doesn't attempt a cleanup of expired cache files when no session cache directory is available.

The fact that you're getting this is not a good sign: it means that your Private File System Path is not set at .../admin/config/media/file-system or that it IS set, but cannot be created due to (file/directory permissions?). Typically the Private File System Path is set to sites/default/files/private. Please check if it exists and can be written to.

Did you see any other messages or warnings? You should have. At least on the Session Cache File configuration page.

In the latest 7.x-1.x-dev and 8.x-1.x-dev I've added code to show the status of the Session Cache File cache on the Status Report page. Check if it's green.

Rik

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.