Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Notice: file_put_contents(): write of 7292 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.             $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.      * {@inheritdoc}
  3.      */
  4.     public function loadById(array $identifier$entity null)
  5.     {
  6.         return $this->load($identifier$entity);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             case LockMode::PESSIMISTIC_READ === $lockMode:
  2.             case LockMode::PESSIMISTIC_WRITE === $lockMode:
  3.                 return $persister->load($sortedIdnullnull, [], $lockMode);
  4.             default:
  5.                 return $persister->loadById($sortedId);
  6.         }
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  1.      *
  2.      * @return object|null The entity instance or NULL if the entity can not be found.
  3.      */
  4.     public function find($id$lockMode null$lockVersion null)
  5.     {
  6.         return $this->_em->find($this->_entityName$id$lockMode$lockVersion);
  7.     }
  8.     /**
  9.      * Finds all entities in the repository.
  10.      *
  1.                          PlaceRegionsRepository $placeRegionsRepository,
  2.                          CategoryRepository $categoryRepository$photoLoad null)
  3.     {
  4.         $curentSite $this->getDoctrine()
  5.             ->getRepository(Sites::class)
  6.             ->find($this->params->get('curent_site'));
  7.         if($category=='blogosfera') {
  8.             return $this->redirect'https://vse.media/korupcia/'.$alies.'.html');
  9.         }
  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 7292 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/Persisters/Entity/BasicEntityPersister.php:734)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:744)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:472)
  at Doctrine\ORM\EntityManager->find()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:151)
  at Doctrine\ORM\EntityRepository->find()
     (/home/admin/web/t.ukraine-inform.com/public_html/src/Controller/DefaultController.php:2259)
  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:40)