Задать вопрос
  • В консоли bin/console кидает Notice: unserialize(): Error at offset 48 of 50 bytes, где логи?

    @zankoav Автор вопроса
    Нашел решение
    bin/console cache:clear --no-debug
    И отпустило )))
  • В консоли bin/console кидает Notice: unserialize(): Error at offset 48 of 50 bytes, где логи?

    @zankoav Автор вопроса
    Так это получается что-то в папке кэша не так?
  • В консоли bin/console кидает Notice: unserialize(): Error at offset 48 of 50 bytes, где логи?

    @zankoav Автор вопроса
    почему то эта команда работает, а ни одна другая нет )))
    bin/console cache:clear --env=prod
  • В консоли bin/console кидает Notice: unserialize(): Error at offset 48 of 50 bytes, где логи?

    @zankoav Автор вопроса
    Есть папки app/cache/prod и var/cache/prod
    но на обе
    rm rf app/cache/prod и
    rm rf var/cache/prod
    В консоли пишет
    rm: cannot remove 'rf': No such file or directory
    rm: cannot remove 'app/cache/prod': Is a directory
    странно !
    Просто удалить эти папки кэша ?
  • В консоли bin/console кидает Notice: unserialize(): Error at offset 48 of 50 bytes, где логи?

    @zankoav Автор вопроса
    Exception trace:
     () at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Component/Config/Resource/FileResource.php:75
     Symfony\Component\Config\Resource\FileResource->unserialize() at n/a:n/a
     unserialize() at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCache.php:99
     Symfony\Component\Config\ResourceCheckerConfigCache->isFresh() at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Component/Config/ConfigCache.php:60
     Symfony\Component\Config\ConfigCache->isFresh() at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:482
     Symfony\Component\HttpKernel\Kernel->initializeContainer() at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:116
     Symfony\Component\HttpKernel\Kernel->boot() at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
     Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:122
     Symfony\Component\Console\Application->run() at /h/6vkusovby/htdocs/bin/console:29


    Я так понимаю в от тут проблема
    Symfony\Component\Config\Resource\FileResource->unserialize() at n/a:n/a
     unserialize() at /h/6vkusovby/htdocs/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCache.php:99
  • В консоли bin/console кидает Notice: unserialize(): Error at offset 48 of 50 bytes, где логи?

    @zankoav Автор вопроса
    pg
    Только два класса
    class User implements UserInterface, \Serializable
    {
    ...
    public function serialize()
        {
    
            return serialize(array(
                $this->id,
                $this->name,
                $this->birthday,
                $this->firstName,
                $this->lastName,
                $this->email,
                $this->phoneCode,
                $this->phoneNumber,
                $this->gender,
                $this->password,
                $this->salt,
                $this->roles,
                $this->newsletter,
                $this->confirmed,
                $this->resetPasswordToken,
                $this->confirmationToken,
                $this->plainPassword,
                $this->comments,
                $this->categories,
                $this->avatar,
                $this->oldPassword,
                $this->kitchens,
                $this->pointsAddedProfile,
                $this->affiliateCode,
                $this->affiliateUser,
                $this->pointsAddedAffiliate,
                $this->orderFrequency,
                $this->averageBill,
                $this->learnedFrom,
                $this->facebookId,
                $this->googleId,
                $this->vkId,
                $this->okId,
                $this->instagramId,
                $this->pointsAddedVk,
                $this->pointsAddedOk,
                $this->registrationIp,
                $this->lastLoginIp,
            ));
        }
    
    /**
         * {@inheritdoc}
         */
        public function unserialize($serialized)
        {
            $data = unserialize($serialized);
            // add a few extra elements in the array to ensure that we have enough keys when unserializing
            // older data which does not include all properties.
            $data = array_merge($data, array_fill(0, 2, null));
            list(
                $this->id,
                $this->name,
                $this->birthday,
                $this->firstName,
                $this->lastName,
                $this->email,
                $this->phoneCode,
                $this->phoneNumber,
                $this->gender,
                $this->password,
                $this->salt,
                $this->roles,
                $this->newsletter,
                $this->confirmed,
                $this->resetPasswordToken,
                $this->confirmationToken,
                $this->plainPassword,
                $this->comments,
                $this->categories,
                $this->avatar,
                $this->oldPassword,
                $this->kitchens,
                $this->pointsAddedProfile,
                $this->affiliateCode,
                $this->affiliateUser,
                $this->pointsAddedAffiliate,
                $this->orderFrequency,
                $this->averageBill,
                $this->learnedFrom,
                $this->facebookId,
                $this->googleId,
                $this->vkId,
                $this->okId,
                $this->instagramId,
                $this->pointsAddedVk,
                $this->pointsAddedOk,
                $this->registrationIp,
                $this->lastLoginIp,
                ) = $data;
        }
    ...
    }
    и 
    class Restaurant implements UserInterface, \Serializable
    {
    ...


    используют serialize
    c4882f48db814f139742f084096d6edc.pnga108786e18c240dd82db4feac8d486b5.png
    Подскажите может в структурах что не так?
  • Почему Symfony LiipImagineBundle не создает превью?

    @zankoav Автор вопроса
    Спасибо большое ! Действительно библиотека отсутствовала)))
    Сейчас все работает! Спасибо.
  • Почему Symfony LiipImagineBundle не создает превью?

    @zankoav Автор вопроса
    [2017-05-25 16:33:14] request.CRITICAL: Uncaught PHP Exception Imagine\Exception\RuntimeException: "Gd not installed" at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php line 172 {"exception":"[object] (Imagine\\Exception\\RuntimeException(code: 0): Gd not installed at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php:172)"} []
    [2017-05-25 16:33:37] request.CRITICAL: Uncaught PHP Exception Imagine\Exception\RuntimeException: "Gd not installed" at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php line 172 {"exception":"[object] (Imagine\\Exception\\RuntimeException(code: 0): Gd not installed at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php:172)"} []
    [2017-05-25 16:40:07] request.CRITICAL: Uncaught PHP Exception Imagine\Exception\RuntimeException: "Gd not installed" at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php line 172 {"exception":"[object] (Imagine\\Exception\\RuntimeException(code: 0): Gd not installed at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php:172)"} []
    [2017-05-25 16:40:13] request.CRITICAL: Uncaught PHP Exception Imagine\Exception\RuntimeException: "Gd not installed" at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php line 172 {"exception":"[object] (Imagine\\Exception\\RuntimeException(code: 0): Gd not installed at /h/6vkusovby/htdocs/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php:172)"} []
    [2017-05-25 16:40:13] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /media/cache/resolve/preview_food_thumb/" (from "https://6vkusov.by/partner/profile")" at /h/6vkusovby/htdocs/var/cache/prod/classes.php line 4595 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /media/cache/resolve/preview_food_thumb/\" (from \"https://6vkusov.by/partner/profile\") at /h/6vkusovby/htdocs/var/cache/prod/classes.php:4595, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /h/6vkusovby/htdocs/var/cache/prod/appProdProjectContainerUrlMatcher.php:1770)"} []
  • LiipImagineBundle не работает?

    @zankoav
    Добрый день!
    Можете объяснить решение (роутинг)
    Так как не могу решить такую же проблему