Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Notice: file_put_contents(): write of 1795 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.             $this->registerManaged($this->_metadataCache[$className], $this->_hints[Query::HINT_REFRESH_ENTITY], $data);
  2.         }
  3.         $this->_hints['fetchAlias'] = $dqlAlias;
  4.         return $this->_uow->createEntity($className$data$this->_hints);
  5.     }
  6.     /**
  7.      * @param string $className
  8.      * @param array  $data
  1.                     continue;
  2.                 }
  3.                 // check for existing result from the iterations before
  4.                 if ( ! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) {
  5.                     $element $this->getEntity($data$dqlAlias);
  6.                     if ($this->_rsm->isMixed) {
  7.                         $element = [$entityKey => $element];
  8.                     }
  1.     protected function hydrateAllData()
  2.     {
  3.         $result = [];
  4.         while ($row $this->_stmt->fetch(PDO::FETCH_ASSOC)) {
  5.             $this->hydrateRowData($row$result);
  6.         }
  7.         // Take snapshots from all newly initialized collections
  8.         foreach ($this->initializedCollections as $coll) {
  9.             $coll->takeSnapshot();
  1.         $this->_em->getEventManager()->addEventListener([Events::onClear], $this);
  2.         $this->prepare();
  3.         $result $this->hydrateAllData();
  4.         $this->cleanup();
  5.         return $result;
  6.     }
  1.             return $stmt;
  2.         }
  3.         $rsm  $this->getResultSetMapping();
  4.         $data $this->_em->newHydrator($this->_hydrationMode)->hydrateAll($stmt$rsm$this->_hints);
  5.         $setCacheEntry($data);
  6.         return $data;
  7.     }
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      * @throws NonUniqueResultException
  2.      */
  3.     public function getOneOrNullResult($hydrationMode null)
  4.     {
  5.         try {
  6.             $result $this->execute(null$hydrationMode);
  7.         } catch (NoResultException $e) {
  8.             return null;
  9.         }
  1.             ->andWhere('c.id =:categoryId')
  2.             ->setParameter('categoryId'$categoryId)
  3.             ->andWhere('p.alies =:alies')
  4.             ->setParameter('alies'$alies)
  5.             ->getQuery()
  6.             ->getOneOrNullResult();
  7.     }
  8.     public function getPagesByCategoryLimit($categoryIds$limit$site$group false$filterfalse$exclude = [])
  9.     {
  10.         if(empty($categoryIds))
  1.         $postTypePage $this->getDoctrine()
  2.             ->getRepository(\App\Entity\PostType::class)
  3.             ->find(1);
  4.         $postRepository $this->getDoctrine()->getRepository(Post::class);
  5.         $category_page $categoryRepository->findOneBy(['postType'=>$postTypePage'site'=>$curentSite]);
  6.         $post_page $postRepository->getPagesByCategory($category_page->getId(), $alies);
  7.         if($post_page) {
  8.             return $this->page($alies.'.html'$request);
  9.         }
  10.         $category $this->getCategory($alies$curentSite);
  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 40)
  1. }
  2. $kernel = new Kernel($env$debug);
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Stack Trace

ErrorException

ErrorException:
Notice: file_put_contents(): write of 1795 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/ObjectHydrator.php:271)
  at Doctrine\ORM\Internal\Hydration\ObjectHydrator->getEntity()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:492)
  at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateRowData()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:162)
  at Doctrine\ORM\Internal\Hydration\ObjectHydrator->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/AbstractQuery.php:1009)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:796)
  at Doctrine\ORM\AbstractQuery->getOneOrNullResult()
     (/home/admin/web/t.ukraine-inform.com/public_html/src/Repository/PostRepository.php:204)
  at App\Repository\PostRepository->getPagesByCategory()
     (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:1910)
  at App\Controller\DefaultController->category()
     (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:40)