UnexpectedValueException: RecursiveDirectoryIterator::__construct

Created on 29 March 2024, 8 months ago
Updated 16 April 2024, 7 months ago

Problem/Motivation

I added the following to exclusion list:
sites/*
sites/mysite/*

Yet it still attempted to recurse:
UnexpectedValueException: RecursiveDirectoryIterator::__construct(/fullpath/mysite-d10.2.4/html/sites/mysite/.redisOff): Failed to open directory: Permission denied in RecursiveDirectoryIterator->__construct() (line 200 of /fullpath/mysite-d10.2.4/html/modules/contrib/minifyjs/src/MinifyJs.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

  • Issue created by @SocialNicheGuru
  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    an exception should not be thrown if you do not have access to a directory. Just skip it

  • Status changed to Needs review 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru
  • πŸ‡¨πŸ‡¦Canada slydevil Halifax

    Based on your description this is the path to exclude - /fullpath/mysite-d10.2.4/html/sites/mysite/.redisOff

    Is the base director for Drupal /fullpath/mysite-d10.2.4/? If so the exclusion should be html/sites/mysite/* and not sites/mysite/*. Have you tried that?

  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    /fullpath/mysite-d10.2.4/html/core is where Drupal core is.
    /fullpath/mysite-d10.2.4/html/sites/mysite is the sites file
    /fullpath/mysite-d10.2.4/html/modules is the modules file

    so just try the fullpath which could be /var/www/html/mysite-d10.2.4/ ?

Production build 0.71.5 2024