DDC-499: Proxies cache fails on file_put_contents #622

Open
opened 2026-01-22 12:44:51 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Apr 7, 2010).

Jira issue originally created by user ssurowiec:

I'm running Doctrine2 with Symfony2 and keep getting the below error if I wipe the cache directory.

Warning: file_put_contents(/home/[snip]/cache/prod/doctrine/Proxies/BundleApiBundleEntitiesEventProxy.php) [function.file-put-contents]: failed to open stream: No such file or directory in /home/[snip]/vendor/doctrine/lib/Doctrine/ORM/Proxy/ProxyFactory.php line 149

From what I can tell the problem is that Doctrine never checks to make sure the proxy directory actually exists before attempting to write the files to it.

Originally created by @doctrinebot on GitHub (Apr 7, 2010). Jira issue originally created by user ssurowiec: I'm running Doctrine2 with Symfony2 and keep getting the below error if I wipe the cache directory. Warning: file_put_contents(/home/[snip]/cache/prod/doctrine/Proxies/BundleApiBundleEntitiesEventProxy.php) [function.file-put-contents]: failed to open stream: No such file or directory in /home/[snip]/vendor/doctrine/lib/Doctrine/ORM/Proxy/ProxyFactory.php line 149 From what I can tell the problem is that Doctrine never checks to make sure the proxy directory actually exists before attempting to write the files to it.
admin added the Bug label 2026-01-22 12:44:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#622