Symfony Exception

ContextErrorException

HTTP 500 Internal Server Error

Warning: file_put_contents(/var/www/html/prizmu/var/cache/prod/doctrine/orm/Proxies/__CG__MediadivAdminBundleEntityCategoriasShop.php.6605847e54a9c2.19863060): failed to open stream: No space left on device

Exception

Symfony\Component\Debug\Exception\ ContextErrorException

  1.             throw UnexpectedValueException::proxyDirectoryNotWritable($this->proxyDirectory);
  2.         }
  3.         $tmpFileName $fileName '.' uniqid(''true);
  4.         file_put_contents($tmpFileName$proxyCode);
  5.         @chmod($tmpFileName0664);
  6.         rename($tmpFileName$fileName);
  7.     }
  8.     /**
ProxyGenerator->generateProxyClass(object(ClassMetadata), '/var/www/html/prizmu/var/cache/prod/doctrine/orm/Proxies/__CG__MediadivAdminBundleEntityCategoriasShop.php') in vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php (line 220)
  1.                     }
  2.                     require $fileName;
  3.                     break;
  4.                 case self::AUTOGENERATE_ALWAYS:
  5.                     $this->proxyGenerator->generateProxyClass($classMetadata$fileName);
  6.                     require $fileName;
  7.                     break;
  8.                 case self::AUTOGENERATE_EVAL:
  9.                     $this->proxyGenerator->generateProxyClass($classMetadatafalse);
AbstractProxyFactory->getProxyDefinition('Mediadiv\\AdminBundle\\Entity\\CategoriasShop') in vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php (line 119)
  1.      */
  2.     public function getProxy($className, array $identifier)
  3.     {
  4.         $definition = isset($this->definitions[$className])
  5.             ? $this->definitions[$className]
  6.             : $this->getProxyDefinition($className);
  7.         $fqcn       $definition->proxyClassName;
  8.         $proxy      = new $fqcn($definition->initializer$definition->cloner);
  9.         foreach ($definition->identifierFields as $idField) {
  10.             if (! isset($identifier[$idField])) {
AbstractProxyFactory->getProxy('Mediadiv\\AdminBundle\\Entity\\CategoriasShop', array('id' => 20)) in vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php (line 2707)
  1.                         default:
  2.                             switch (true) {
  3.                                 // We are negating the condition here. Other cases will assume it is valid!
  4.                                 case ($hints['fetchMode'][$class->name][$field] !== ClassMetadata::FETCH_EAGER):
  5.                                     $newValue $this->em->getProxyFactory()->getProxy($assoc['targetEntity'], $associatedId);
  6.                                     break;
  7.                                 // Deferred eager load only works for single identifier classes
  8.                                 case (isset($hints[self::HINT_DEFEREAGERLOAD]) && ! $targetClass->isIdentifierComposite):
  9.                                     // TODO: Is there a faster approach?
UnitOfWork->createEntity('Mediadiv\\AdminBundle\\Entity\\Productos', array('id' => 240, 'nombre' => 'Green question. Random sticker pack', 'material' => null, 'precio' => '30', 'descripcion' => 'This is a random pack for sticker art collectors. The sizes are between 9,5 x 9,5 to 20 x 11 cm. You will receive 6 different designs. Hand cutted. Digitally printed on a&nbsp; PVC paper for exteriors. This is not an industrial print. This series is closed so that means that some of the designs will not be printed again (or in the same way). Random means that not necessary you will receive the sticker on the picture but also you can receive a sticker that is not on the online catalogue. There are more than 300 motives and everyday I am working on new ones.<br>', 'cuidado' => '<br>', 'codigo' => null, 'destacado' => null, 'tipodespacho' => 'carta', 'principalf' => 'stiker primera tirada peke_0043_Layer 10.jpg', 'hoverf' => 'stiker primera tirada peke_0044_Layer 32.jpg', 'categoriasshop_id' => 20, 'segmento_id' => 2, 'estados_id' => 1), array('fetchMode' => array('Mediadiv\AdminBundle\Entity\Productos' => array('categoriasshop' => 2)))) in vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php (line 147)
  1.         if (isset($this->_hints[Query::HINT_REFRESH_ENTITY])) {
  2.             $this->registerManaged($this->class$this->_hints[Query::HINT_REFRESH_ENTITY], $data);
  3.         }
  4.         $uow    $this->_em->getUnitOfWork();
  5.         $entity $uow->createEntity($entityName$data$this->_hints);
  6.         $result[] = $entity;
  7.         if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
  8.             $this->_uow->hydrationComplete();
SimpleObjectHydrator->hydrateRowData(array('id_1' => '240', 'nombre_2' => 'Green question. Random sticker pack', 'material_3' => null, 'precio_4' => '30', 'descripcion_5' => 'This is a random pack for sticker art collectors. The sizes are between 9,5 x 9,5 to 20 x 11 cm. You will receive 6 different designs. Hand cutted. Digitally printed on a&nbsp; PVC paper for exteriors. This is not an industrial print. This series is closed so that means that some of the designs will not be printed again (or in the same way). Random means that not necessary you will receive the sticker on the picture but also you can receive a sticker that is not on the online catalogue. There are more than 300 motives and everyday I am working on new ones.<br>', 'cuidado_6' => '<br>', 'codigo_7' => null, 'destacado_8' => null, 'tipodespacho_9' => 'carta', 'principalf_10' => 'stiker primera tirada peke_0043_Layer 10.jpg', 'hoverf_11' => 'stiker primera tirada peke_0044_Layer 32.jpg', 'categoriasshop_id_12' => '20', 'segmento_id_13' => '2', 'estados_id_14' => '1'), array()) in vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php (line 69)
  1.     protected function hydrateAllData()
  2.     {
  3.         $result = array();
  4.         while ($row $this->_stmt->fetch(PDO::FETCH_ASSOC)) {
  5.             $this->hydrateRowData($row$result);
  6.         }
  7.         $this->_em->getUnitOfWork()->triggerEagerLoads();
  8.         return $result;
SimpleObjectHydrator->hydrateAllData() in vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php (line 150)
  1.         $evm $this->_em->getEventManager();
  2.         $evm->addEventListener(array(Events::onClear), $this);
  3.         $this->prepare();
  4.         $result $this->hydrateAllData();
  5.         $this->cleanup();
  6.         return $result;
  7.     }
AbstractHydrator->hydrateAll(object(PDOStatement), object(ResultSetMapping), array()) in vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php (line 720)
  1.             $hints[Query::HINT_REFRESH]         = true;
  2.             $hints[Query::HINT_REFRESH_ENTITY]  = $entity;
  3.         }
  4.         $hydrator $this->em->newHydrator($this->currentPersisterContext->selectJoinSql Query::HYDRATE_OBJECT Query::HYDRATE_SIMPLEOBJECT);
  5.         $entities $hydrator->hydrateAll($stmt$this->currentPersisterContext->rsm$hints);
  6.         return $entities $entities[0] : null;
  7.     }
  8.     /**
BasicEntityPersister->load(array('id' => '240'), null, null, array(), null, 1, null) in vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php (line 196)
  1.      */
  2.     public function findOneBy(array $criteria, array $orderBy null)
  3.     {
  4.         $persister $this->_em->getUnitOfWork()->getEntityPersister($this->_entityName);
  5.         return $persister->load($criterianullnull, array(), null1$orderBy);
  6.     }
  7.     /**
  8.      * Adds support for magic finders.
  9.      *
EntityRepository->findOneBy(array('id' => '240')) in src/Mediadiv/HomeBundle/Controller/DefaultController.php (line 672)
  1.         
  2.         
  3.         $session    $request->getSession();
  4.         $em         $this->getDoctrine()->getManager();
  5.         $producto   $em->getRepository('MediadivAdminBundle:Productos')->findOneby(array('id' => $id));
  6.         $imagenes   $producto->getImagenes();
  7.         $categoria  $producto->getCategoriasshop();
  8.         $tags       $producto->getTags();
  9.         $tallas     $em->getRepository('MediadivAdminBundle:Tallas')->findBy(array('productos' => $producto ));
  10.         $token         $this->get('security.csrf.token_manager')->getToken('authenticate')->getValue();
DefaultController->detalleProductoAction(object(Request), '240', 'Green%20question.%20Random%20sticker%20pack') in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 169)
  1.     {
  2.         if (false === $this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     /**
  8.      * Gets a HTTP kernel from the container.
  9.      *
Kernel->handle(object(Request)) in web/app.php (line 22)
  1. $kernel = new AppKernel('prod'true);
  2. if (PHP_VERSION_ID 70000) {
  3.     $kernel->loadClassCache();
  4. }
  5. $request Request::createFromGlobals();
  6. $response $kernel->handle($request);
  7. $response->send();
  8. $kernel->terminate($request$response);

Logs

No log messages

Stack Trace

ContextErrorException

Symfony\Component\Debug\Exception\ContextErrorException:
Warning: file_put_contents(/var/www/html/prizmu/var/cache/prod/doctrine/orm/Proxies/__CG__MediadivAdminBundleEntityCategoriasShop.php.6605847e54a9c2.19863060): failed to open stream: No space left on device

  at vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php:304
  at Doctrine\Common\Proxy\ProxyGenerator->generateProxyClass(object(ClassMetadata), '/var/www/html/prizmu/var/cache/prod/doctrine/orm/Proxies/__CG__MediadivAdminBundleEntityCategoriasShop.php')
     (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:220)
  at Doctrine\Common\Proxy\AbstractProxyFactory->getProxyDefinition('Mediadiv\\AdminBundle\\Entity\\CategoriasShop')
     (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:119)
  at Doctrine\Common\Proxy\AbstractProxyFactory->getProxy('Mediadiv\\AdminBundle\\Entity\\CategoriasShop', array('id' => 20))
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2707)
  at Doctrine\ORM\UnitOfWork->createEntity('Mediadiv\\AdminBundle\\Entity\\Productos', array('id' => 240, 'nombre' => 'Green question. Random sticker pack', 'material' => null, 'precio' => '30', 'descripcion' => 'This is a random pack for sticker art collectors. The sizes are between 9,5 x 9,5 to 20 x 11 cm. You will receive 6 different designs. Hand cutted. Digitally printed on a&nbsp; PVC paper for exteriors. This is not an industrial print. This series is closed so that means that some of the designs will not be printed again (or in the same way). Random means that not necessary you will receive the sticker on the picture but also you can receive a sticker that is not on the online catalogue. There are more than 300 motives and everyday I am working on new ones.<br>', 'cuidado' => '<br>', 'codigo' => null, 'destacado' => null, 'tipodespacho' => 'carta', 'principalf' => 'stiker primera tirada peke_0043_Layer 10.jpg', 'hoverf' => 'stiker primera tirada peke_0044_Layer 32.jpg', 'categoriasshop_id' => 20, 'segmento_id' => 2, 'estados_id' => 1), array('fetchMode' => array('Mediadiv\AdminBundle\Entity\Productos' => array('categoriasshop' => 2))))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:147)
  at Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateRowData(array('id_1' => '240', 'nombre_2' => 'Green question. Random sticker pack', 'material_3' => null, 'precio_4' => '30', 'descripcion_5' => 'This is a random pack for sticker art collectors. The sizes are between 9,5 x 9,5 to 20 x 11 cm. You will receive 6 different designs. Hand cutted. Digitally printed on a&nbsp; PVC paper for exteriors. This is not an industrial print. This series is closed so that means that some of the designs will not be printed again (or in the same way). Random means that not necessary you will receive the sticker on the picture but also you can receive a sticker that is not on the online catalogue. There are more than 300 motives and everyday I am working on new ones.<br>', 'cuidado_6' => '<br>', 'codigo_7' => null, 'destacado_8' => null, 'tipodespacho_9' => 'carta', 'principalf_10' => 'stiker primera tirada peke_0043_Layer 10.jpg', 'hoverf_11' => 'stiker primera tirada peke_0044_Layer 32.jpg', 'categoriasshop_id_12' => '20', 'segmento_id_13' => '2', 'estados_id_14' => '1'), array())
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:69)
  at Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAllData()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:150)
  at Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll(object(PDOStatement), object(ResultSetMapping), array())
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:720)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('id' => '240'), null, null, array(), null, 1, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:196)
  at Doctrine\ORM\EntityRepository->findOneBy(array('id' => '240'))
     (src/Mediadiv/HomeBundle/Controller/DefaultController.php:672)
  at Mediadiv\HomeBundle\Controller\DefaultController->detalleProductoAction(object(Request), '240', 'Green%20question.%20Random%20sticker%20pack')
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:169)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app.php:22)