Symfony Exception

ContextErrorException

HTTP 500 Internal Server Error

Warning: file_put_contents(/var/www/html/prizmu/var/cache/prod/doctrine/orm/Proxies/__CG__MediadivAdminBundleEntityEstados.php.6605e2402234a9.86714348): 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__MediadivAdminBundleEntityEstados.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\\Estados') 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\\Estados', array('id' => 1)) 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\\CategoriasShop', array('id' => 10, 'nombre' => 'OTHER TECHNIQUES', 'url' => null, 'orden' => null, 'estados_id' => 1), array('fetchMode' => array('Mediadiv\AdminBundle\Entity\CategoriasShop' => array('estados' => 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' => '10', 'nombre_2' => 'OTHER TECHNIQUES', 'url_3' => null, 'orden_4' => null, 'estados_id_5' => '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' => '10'), 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' => '10')) in src/Mediadiv/HomeBundle/Controller/DefaultController.php (line 384)
  1.     public function categoriasAction(Request $request $id $idsegmento ,  $segmento ,$categoria){
  2.         $em         $this->getDoctrine()->getManager();
  3.         $categoria  $em->getRepository('MediadivAdminBundle:CategoriasShop')->findOneBy(array('id' => $id ));
  4.         $segmento   $em->getRepository('MediadivAdminBundle:Segmento')->findOneby(array('id' => $idsegmento));
  5.         $session    $request->getSession();
  6.         $datos      $this->datos($request$em$session);
  7.         $token         $this->get('security.csrf.token_manager')->getToken('authenticate')->getValue();
  8.         $breadCump1 '';
DefaultController->categoriasAction(object(Request), '10', '6', 'PRINTS', 'OTHER%20TECHNIQUES') 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__MediadivAdminBundleEntityEstados.php.6605e2402234a9.86714348): 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__MediadivAdminBundleEntityEstados.php')
     (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:220)
  at Doctrine\Common\Proxy\AbstractProxyFactory->getProxyDefinition('Mediadiv\\AdminBundle\\Entity\\Estados')
     (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:119)
  at Doctrine\Common\Proxy\AbstractProxyFactory->getProxy('Mediadiv\\AdminBundle\\Entity\\Estados', array('id' => 1))
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2707)
  at Doctrine\ORM\UnitOfWork->createEntity('Mediadiv\\AdminBundle\\Entity\\CategoriasShop', array('id' => 10, 'nombre' => 'OTHER TECHNIQUES', 'url' => null, 'orden' => null, 'estados_id' => 1), array('fetchMode' => array('Mediadiv\AdminBundle\Entity\CategoriasShop' => array('estados' => 2))))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:147)
  at Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateRowData(array('id_1' => '10', 'nombre_2' => 'OTHER TECHNIQUES', 'url_3' => null, 'orden_4' => null, 'estados_id_5' => '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' => '10'), null, null, array(), null, 1, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:196)
  at Doctrine\ORM\EntityRepository->findOneBy(array('id' => '10'))
     (src/Mediadiv/HomeBundle/Controller/DefaultController.php:384)
  at Mediadiv\HomeBundle\Controller\DefaultController->categoriasAction(object(Request), '10', '6', 'PRINTS', 'OTHER%20TECHNIQUES')
     (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)