Skip to content

Instantly share code, notes, and snippets.

@hissy
Last active May 5, 2023 19:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hissy/8ce0c6e76e4c6b4bc6893757eb4e383b to your computer and use it in GitHub Desktop.
Save hissy/8ce0c6e76e4c6b4bc6893757eb4e383b to your computer and use it in GitHub Desktop.
[concrete5] How to fix "failed to open stream" error when you delete doctrine proxies directory

How to fix "failed to open stream" error when you delete doctrine proxies directory

Whoops\Exception\ErrorException thrown with message "require(/path/to/concrete5/application/config/doctrine/proxies/__CG__ConcreteCoreEntityExpressEntity.php): failed to open stream: No such file or directory"

Enable "Doctrine Dev mode" manually

Add application/config/concrete.php file (or modify it) like below:

<?php

return [
    'cache' => [
        'doctrine_dev_mode' => true
    ],
];

That it!

When you check your site comes back, please turn off the doctrine dev mode. If it enabled, your site will slow down.

Optional

Sometimes you have to run refresh entities command too.

concrete/bin/concrete5 c5:entities:refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment