Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Notice: file_put_contents(): write of 8192 bytes failed with errno=28 No space left on device

Exception

ErrorException

  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.     /**
  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);
  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])) {
  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?
  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();
  1.     protected function hydrateAllData()
  2.     {
  3.         $result = [];
  4.         while ($row $this->_stmt->fetch(PDO::FETCH_ASSOC)) {
  5.             $this->hydrateRowData($row$result);
  6.         }
  7.         $this->_em->getUnitOfWork()->triggerEagerLoads();
  8.         return $result;
  1.         $this->_em->getEventManager()->addEventListener([Events::onClear], $this);
  2.         $this->prepare();
  3.         $result $this->hydrateAllData();
  4.         $this->cleanup();
  5.         return $result;
  6.     }
  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.     /**
  1.             }
  2.             return $result[0];
  3.         }
  4.         if (($result $this->persister->load($criteria$entity$assoc$hints$lockMode$limit$orderBy)) === null) {
  5.             return null;
  6.         }
  7.         $cached $queryCache->put($queryKey$rsm, [$result]);
  1.      */
  2.     public function findOneBy(array $criteria, array $orderBy null)
  3.     {
  4.         $persister $this->_em->getUnitOfWork()->getEntityPersister($this->_entityName);
  5.         return $persister->load($criterianullnull, [], null1$orderBy);
  6.     }
  7.     /**
  8.      * Counts entities by a set of criteria.
  9.      *
  1.                 ->getRepository(Category::class)
  2.                 ->findOneBy(['site'=>$curentSite'postType'=>$postType]);
  3.         } else {
  4.             $category $this->getDoctrine()
  5.                 ->getRepository(Category::class)
  6.                 ->findOneBy(['site' => $curentSite'alies' => $alies]);
  7.         }
  8.         if($category)
  9.             return $category;
  10.         return false;
  1.                 $cachePool = new FilesystemAdapter(''360"cache");
  2.         $category $this->getCategory($category$curentSite);
  3.         if($category) {
  4.             /*if($category->getPostType()->getId()==2) {
  5.                 $response = new Response($this->renderView($this->template.'/error.html.twig'),404);
  6.                 return $response;
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) 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) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 37)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

ErrorException

ErrorException:
Notice: file_put_contents(): write of 8192 bytes failed with errno=28 No space left on device

  at vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php:296
  at Doctrine\Common\Proxy\ProxyGenerator->generateProxyClass()
     (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:215)
  at Doctrine\Common\Proxy\AbstractProxyFactory->getProxyDefinition()
     (vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:114)
  at Doctrine\Common\Proxy\AbstractProxyFactory->getProxy()
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2807)
  at Doctrine\ORM\UnitOfWork->createEntity()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:155)
  at Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateRowData()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:70)
  at Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAllData()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:153)
  at Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:734)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php:386)
  at Doctrine\ORM\Cache\Persister\Entity\AbstractEntityPersister->load()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:193)
  at Doctrine\ORM\EntityRepository->findOneBy()
     (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:2978)
  at App\Controller\DefaultController->getCategory()
     (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:2276)
  at App\Controller\DefaultController->post()
     (vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:37)