Argument #1 ($directory) must be of type string, bool given

Created on 28 April 2025, 11 days ago

There is an error - Argument #1 ($directory) must be of type string, bool given in scandir() when trying to access a non-existent folder.

Steps to reproduce:
1. Add $settings['file_private_path'] = '../private/files'; setting to settings.php file.
2. Select the 'private' option for the 'File system path' field on the /admin/config/system/auditfiles page.
3. Remove the 'files' folder.
4. Go to /admin/reports/auditfiles/notindatabase page.

πŸ› Bug report
Status

Active

Version

4.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine AstonVictor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024