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.             $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.             ->addGroupBy('p.id')
  2.             ->setMaxResults($limit)
  3.             ->setFirstResult($offset)
  4.             ->getQuery();
  5.         return $return->execute();
  6.     }
  7.     public function getPostListCount($categoryIds$isUser=null$search null$region null)
  8.     {
  9.         $quety $this->createQueryBuilder('p')
  1.                     $postRepository $this->getDoctrine()->getRepository(Post::class);
  2.                     $postCat $postRepository->getPostList($categories_180);
  3.                 } else {
  4.                     $categories $category->getChildsMapIds();
  5.                     $postRepository $this->getDoctrine()->getRepository(Post::class);
  6.                     $postCat $postRepository->getPostList($categories80);
  7.                 }
  8.                 $str $post->getContent();
  9.                 $str str_replace('../thumb/thumb.php?src=..'''$str);
  10.                 $str str_replace('../thumb/thumb.php?src='''$str);
  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/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()
     (/home/admin/web/t.ukraine-inform.com/public_html/src/Repository/PostRepository.php:457)
  at App\Repository\PostRepository->getPostList()
     (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:2729)
  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)