After updating to the latest 8.x-3.0-alpha17 you can no longer clear the drupal cache. If you try to do it you get the following error.

`Case mismatch between loaded and declared class names: "Drupal\s3fs\S3fsFileService" vs "Drupal\S3fs\S3fsFileService". `

The problem is the namespace in S3fsFileService.php has an uppercase S. Attached is a patch with the fix.

CommentFileSizeAuthor
mismatched_case.patch335 bytesjesmaster

Comments

Jesmaster created an issue. See original summary.

  • cmlara committed 012cdc2 on 8.x-3.x authored by Jesmaster
    Issue #3201250 by Jesmaster: Unable to clear cache, mismatched namespace...
cmlara’s picture

Clearly wrong on the namespace and needs to be corrected.

Interestingly I don't see the error on my local dev environment (D9.1) which I find a bit unusual. Do you know if this is this caused by having some additional debugging on Symfony enabled that I may not have? At first glance it appears this is thrown from a Debugging class.

jesmaster’s picture

I got the error when doing the normal drush cache rebuild command `drush cr`. I do have the line \Symfony\Component\ErrorHandler\Debug::enable(); in my settings.local.php file for my dev setup.

cmlara’s picture

Status: Active » Fixed

Thank you for confirming.
I've confirmed that adding that line of configuration does indeed cause the error to show up in my own lab. I will likely keep that line in my local settings as well to help avoid issues like this in the future.

Your patch is already in the 8.x-3.x repo from earlier today.

From what I can tell this isn't causing any other problems at the moment as long as Symfony debug is disabled so shouldn't need a rush alpha18 for it.

Status: Fixed » Closed (fixed)

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