I'm try to move symfony to shared host.
I moved symfony structure to / and my web folder is /public_html.
Warning: require(/home/user/app/cache/prod/doctrine/orm/Proxies/__CG__UserBundleEntityUser.php): failed to open stream: No such file or directory in /home/user/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209
Warning: require(/home/user/app/cache/prod/doctrine/orm/Proxies/__CG__UserBundleEntityUser.php): failed to open stream: No such file or directory in /home/user/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209
Fatal error: require(): Failed opening required '/home/user/app/cache/prod/doctrine/orm/Proxies/__CG__UserBundleEntityUser.php' (include_path='.:/opt/php55/lib/php') in /home/user/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209
This error occurs only in the prod
environment. The exception is not thrown in the dev
environment.
I tried the following:
rm -rf /app/cache + chmod 777
app/console cache:warmup
I use Symfony 2.8.3. The following directories are present locally and on the server:
LOCAL CACHE: - /annotations, /twig, /vich_uploader + /doctrine, /translations
SERVER CACHE: - /annotations, /twig, /vich_uploader
If I upload my local cache to the server, the exception disappears.