-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: Call to undefined function dirname() #685
Comments
At the same time, a simple restart of the container sometimes helps and Frankenphp begins to process requests successfully |
This looks a lot like an opcache corruption issue: dunglas/symfony-docker#578 Do you use any custom opcache option? |
My opcache related configs.
|
BTW the file /var/cache/prod/App_KernelProdContainer.preload.php doesnt exist |
Sorry, it does - this file exists in cache directory |
If I'm understanding correctly, if |
I think no. It's the same container and sometimes it runs to the issue, sometimes - not. |
If you disable preloading, does the issue still occur? |
You are right. When I disabled this script, the issue gone |
in file #api/docker/frankenphp/conf.d/app.prod.ini opcache.preload should be the same as path to file #api/config/preload.php |
What happened?
My Symfony6 application can not start with the following error:
My Dockerfile relevant part where I build frankenphp:
My index.php file is standard:
Probably it's important: Im wrapping frankenphp with supervisor:
So my container starts with Supervisor, which in turn runs Frankenphp and several other console listeners.
Build Type
Docker (Debian Bookworm)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
No response
The text was updated successfully, but these errors were encountered: