F
F
forcess2020-04-02 12:14:00
Nginx
forcess, 2020-04-02 12:14:00

I turned on memcached pecl, the site works, but the admin panel does not. What to do?

I enabled caching via memcached pecl, the site works fine, but when I try to enter the site's admin panel, I get a 500 error. If the problem is admin caching, how can I disable it? Preferably with sample code.
---------------
nginx logs:
2020/04/02 12:40:00 [error] 17323#17323: *205 FastCGI sent in stderr: "
PHP message: PHP Warning: require (/home/mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu/getAnnotations_CacheService.php): failed to open stream: No such file or directory in /home/mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu /appProdProjectContainer.php on line 1152
PHP message: PHP Fatal error: require(): Failed opening required '/home/mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu/getAnnotations_CacheService.php' (include_path='/home/mysite/mysite.ru/vendor /pear/pear_exception:/home/mysite/mysite.ru/vendor/pear/console_getopt:/home/mysite/mysite.ru/vendor/pear/pear-core-minimal/src:/home/mysite/mysite.ru/ vendor/pear/archive_tar:.:/usr/share/php') in /home/mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu/appProdProjectContainer.php on line 1152
PHP message: PHP Warning: require(/home /mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu/getAnnotations_CacheService.php): failed to open stream: No such file or directory in /home/mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu/appProdProjectContainer. php on line 1152

PHP message: PHP Fatal error: require(): Failed opening required '/home/mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu/getAnnotations_CacheService.php' (include_path='/home/mysite/mysite.ru/vendor /pear/pear_exception:/home/mysite/mysite.ru/vendor/pear/console_getopt:/home/mysite/mysite.ru/vendor/pear/pear-core-minimal/src:/home/mysite/mysite.ru/ vendor/pear/archive_tar:.:/usr/share/php') in /home/mysite/mysite.ru/var/cache/prod/ContainerP0zuqhu/appProdProjectContainer.php on line 1152" while reading response header from upstream, client: 188.126.52.8, server: mysite.ru, request: "POST /backoffice/index.php?controller=AdminAjaxFaviconBO&token=73d5294050c6113de9462ec804ce082e HTTP/2.0", upstream: "fastcgi://unix:/run/php/mysite.sock:" , host: "mysite.ru", referrer: "https://mysite.ru/backoffice/index.php?controller=..."

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forcess, 2020-04-02
@forcess

The issue has been resolved. The fact is that some files were missing because of which the admin panel did not load. Requested a backup copy of these files - voila! Admin panel works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question