Jump to content

Ошибка 500 после очистки кэша (Dumper.php). Не заходит в админку


Connor1

Recommended Posts

Всем привет. Почистил кэш, после этого перестало заходить в админку, ошибка 500. На сайт заходит без проблем.

Вот что пишет в файле Error:

PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\RuntimeException: Cannot dump definition because of invalid class name (NULL) in /home/fpbuz/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1403
Stack trace:
#0 /home/fpbuz/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php(790): Symfony\Component\DependencyInjection\Dumper\PhpDumper->dumpLiteralClass('NULL')
#1 /home/fpbuz/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php(394): Symfony\Component\DependencyInjection\Dumper\PhpDumper->addNewInstance('_defaults', Object(Symfony\Component\DependencyInjection\Definition), 'return ', '$this->services...')
#2 /home/fpbuz/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php(639): Symfony\Component\DependencyInjection\Dumper\PhpDumper->addServiceInstance('_defaults', Object(Symfony\Component\DependencyInjection\Definition)) in /home/fpbuz/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php on line 1403

Содержимое файла Dumper.php:

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\DependencyInjection\Dumper;

use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
 * Dumper is the abstract class for all built-in dumpers.
 *
 * @author Fabien Potencier <[email protected]>
 */
abstract class Dumper implements DumperInterface
{
    protected $container;

    public function __construct(ContainerBuilder $container)
    {
        $this->container = $container;
    }
}

Кэш также почистил вручную в папках: /cache/cachefs/    /cache/smarty/

Edited by Connor1 (see edit history)
Link to comment
Share on other sites

3 minutes ago, TemKa_SD said:

Внимательней смотрите

Посмотрел и в корневом каталоге и в /public_html/. Нашел /var/ только в /.cagefs/, но там все чисто

 

Версия может 1.6, не помню точно. А щас и посмотреть никак не могу...

Edited by Connor1 (see edit history)
Link to comment
Share on other sites

3 minutes ago, Connor1 said:

Посмотрел и в корневом каталоге и в /public_html/. Нашел /var/ только в /.cagefs/, но там все чисто

 

Версия может 1.6, не помню точно. А щас и посмотреть никак не могу...

В 1.6 нет симфони, дайте доступы в ЛС в админку и фтп.

Link to comment
Share on other sites

  • 1 year later...
2 hours ago, RomaP said:

Добрый день.

У меня такая же ошибка после обновления кэша вылезла. Как вы ее исправили?

Вообще не помню) Возможно, использовал бэкап...

Edited by Connor1 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...