Skip to content

Instantly share code, notes, and snippets.

@hissy hissy/readme.md
Last active Sep 16, 2018

Embed
What would you like to do?
[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
You can’t perform that action at this time.