flux icon indicating copy to clipboard operation
flux copied to clipboard

Error after upgrade to 9.4.1: RecursiveDirectoryIterator::__construct(//boot/lost+found): failed to open dir: Permission denied

Open marvinhinz opened this issue 4 years ago • 2 comments

After updating to 9.4.1 the following error occurs:

image

marvinhinz avatar Aug 04 '20 14:08 marvinhinz

Hi @marvinhinz - can you provide a more complete stack trace?

Try also disabling the "plug and play" feature in extension configuration if you don't wish to use the global templates directory that Flux creates. Inability to resolve this directory could be the cause of this problem (though I'd expect som other directory than "lost+found" to be used...).

NamelessCoder avatar Aug 19 '20 10:08 NamelessCoder

trace.html.txt

Hi, took me a long time but heres a complete error page. Ill try disabling plug and play next

Edit:

I think i found out what happened. Some time ago, the plugAndPlay was enabled in the LocalConfiguration.php. I guess after an update or so, but the feature was not used or even known by us. We use deployer for deployment, and the folder /public/design seems to have been recreated empty on every deployment.

Somehow in this line (https://github.com/FluidTYPO3/flux/blob/development/Classes/Content/TypeDefinition/FluidFileBased/DropInContentTypeDefinition.php#L76) the $basePath is empty and ends up beeing "/".

Globbing this path as web user obviously not good and will end up in the bug in the screenshot. I suppose a check for $basePath != "/" could be implemented to prevent this.

marvinhinz avatar Aug 04 '21 11:08 marvinhinz