Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4604576 bytes) in /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Driver/PDO/Statement.php on line 55
An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. (500 Internal Server Error)

Symfony Exception

OutOfMemoryError PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

Exceptions 4

Doctrine\DBAL\Exception\ DriverException

Show exception properties
Doctrine\DBAL\Exception\DriverException {#18446
  -query: Doctrine\DBAL\Query {#18449
    -sql: "SELECT `rule`.`id` as `rule.id`, `rule`.`name` as `rule.name`, `rule`.`priority` as `rule.priority`, `rule`.`description` as `rule.description`, `rule`.`payload` as `rule.payload`, `rule`.`invalid` as `rule.invalid`, `rule`.`areas` as `rule.areas`, `rule`.`custom_fields` as `rule.customFields`, `rule`.`module_types` as `rule.moduleTypes`, `rule`.`created_at` as `rule.createdAt`, `rule`.`updated_at` as `rule.updatedAt` FROM `rule` WHERE `rule`.`id` IN (?, ?, ?, ?, ?)"
    -params: array:5 [
      0 => b"\x18˜\x15\f‹–AÞ¶bªY¼­\fÿ"
      1 => b"@-‚Oq~KF™|oZÁ—ç\x02"
      2 => b"Û¢è½\x18ÉKM«B»\x7FѨŠò"
      3 => b"V(¸&üýD\x12‘ˆ\x17T‚Li"
      4 => b"é†eÚ$õOê€"à³Z£~"
    ]
    -types: array:5 [
      0 => Doctrine\DBAL\ParameterType {#1886
        +name: "BINARY"
      }
      1 => Doctrine\DBAL\ParameterType {#1886}
      2 => Doctrine\DBAL\ParameterType {#1886}
      3 => Doctrine\DBAL\ParameterType {#1886}
      4 => Doctrine\DBAL\ParameterType {#1886}
    ]
  }
}
  1. 1171,
  2. 1252,
  3. 1263,
  4. 1364,
  5. 1566 => new NotNullConstraintViolationException($exception, $query),
  6. default => new DriverException($exception, $query),
  7. };
  8. }
  9. }
  1. private function handleDriverException(
  2. Driver\Exception $driverException,
  3. ?Query $query,
  4. ): DriverException {
  5. $this->exceptionConverter ??= $this->driver->getExceptionConverter();
  6. $exception = $this->exceptionConverter->convert($driverException, $query);
  7. if ($exception instanceof ConnectionLost) {
  8. $this->close();
  9. }
  1. Driver\Exception $e,
  2. string $sql,
  3. array $params = [],
  4. array $types = [],
  5. ): DriverException {
  6. return $this->handleDriverException($e, new Query($sql, $params, $types));
  7. }
  8. /** @internal */
  9. final public function convertException(Driver\Exception $e): DriverException
  10. {
  1. $result = $connection->query($sql);
  2. }
  3. return new Result($result, $this);
  4. } catch (Driver\Exception $e) {
  5. throw $this->convertExceptionDuringQuery($e, $sql, $params, $types);
  6. }
  7. }
  8. /**
  9. * Executes a caching query.
  1. *
  2. * @throws Exception
  3. */
  4. public function executeQuery(): Result
  5. {
  6. return $this->connection->executeQuery(
  7. $this->getSQL(),
  8. $this->params,
  9. $this->types,
  10. $this->resultCacheProfile,
  11. );
  1. if ($criteria->getTitle()) {
  2. $query->setTitle($criteria->getTitle() . '::read');
  3. }
  4. return $query->executeQuery()->fetchAllAssociative();
  5. }
  6. /**
  7. * @param EntityCollection<Entity> $collection
  8. * @param array<string, mixed> $partial
  1. if ($definition->isInheritanceAware() && $criteria->hasAssociation('parent')) {
  2. throw DataAbstractionLayerException::parentAssociationCannotBeFetched();
  3. }
  4. $rows = $this->fetch($criteria, $definition, $context, $fields, $partial);
  5. $collection = $this->hydrator->hydrate($collection, $definition->getEntityClass(), $definition, $rows, $definition->getEntityName(), $context, $partial);
  6. $collection = $this->fetchAssociations($criteria, $definition, $context, $collection, $fields, $partial);
  1. /** @var EntityCollection<Entity> $collectionClass */
  2. $collectionClass = $definition->getCollectionClass();
  3. $fields = $this->criteriaFieldsResolver->resolve($criteria, $definition);
  4. return $this->_read(
  5. $criteria,
  6. $definition,
  7. $context,
  8. new $collectionClass(),
  9. $definition->getFields()->getBasicFields(),
  1. {
  2. $criteria = clone $criteria;
  3. /** @var TEntityCollection $entities */
  4. // @phpstan-ignore varTag.type (phpstan can't detect that TEntityCollection is always an EntityCollection<Entity>)
  5. $entities = $this->reader->read($this->definition, $criteria, $context);
  6. if ($criteria->getFields() === []) {
  7. $event = $this->eventFactory->create($entities->getElements(), $context);
  8. } else {
  9. $event = $this->eventFactory->createPartial($entities->getElements(), $context);
  1. if (!RepositorySearchDetector::isSearchRequired($this->definition, $criteria)) {
  2. $this->eventDispatcher->dispatch(
  3. new EntitySearchedEvent($criteria, $this->definition, $context)
  4. );
  5. $entities = $this->read($criteria, $context);
  6. return new EntitySearchResult($this->definition->getEntityName(), $entities->count(), $entities, $aggregations, $criteria, $context);
  7. }
  8. $ids = $this->searchIds($criteria, $context);
  1. * @return EntitySearchResult<TEntityCollection>
  2. */
  3. public function search(Criteria $criteria, Context $context): EntitySearchResult
  4. {
  5. if (!$criteria->getTitle()) {
  6. return $this->_search($criteria, $context);
  7. }
  8. return Profiler::trace($criteria->getTitle(), fn () => $this->_search($criteria, $context), 'repository');
  9. }
  1. return new RuleCollection();
  2. }
  3. $criteria = new Criteria($this->ruleIds);
  4. return $this->ruleRepository->search($criteria, Context::createDefaultContext())->getEntities();
  5. }
  6. }
  1. return \count($this->data);
  2. }
  3. public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
  4. {
  5. $this->data = $this->getMatchingRules()->getElements();
  6. }
  7. public static function getTemplate(): string
  8. {
  9. return '@Profiling/Collector/rules.html.twig';
  1. }
  2. $response->headers->set('X-Debug-Token', $profile->getToken());
  3. foreach ($this->collectors as $collector) {
  4. $collector->collect($request, $response, $exception);
  5. // we need to clone for sub-requests
  6. $profile->addCollector(clone $collector);
  7. }
  1. $usageIndexValue = $usageIndexReference = &$session->getUsageIndex();
  2. $usageIndexReference = \PHP_INT_MIN;
  3. }
  4. try {
  5. if (!$profile = $this->profiler->collect($request, $event->getResponse(), $exception)) {
  6. return;
  7. }
  8. } finally {
  9. if ($session instanceof Session) {
  10. $usageIndexReference = $usageIndexValue;
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. */
  2. private function filterResponse(Response $response, Request $request, int $type): Response
  3. {
  4. $event = new ResponseEvent($this, $request, $type, $response);
  5. $this->dispatcher->dispatch($event, KernelEvents::RESPONSE);
  6. $this->finishRequest($request, $type);
  7. return $event->getResponse();
  8. }
  1. throw new ControllerDoesNotReturnResponseException($msg, $controller, __FILE__, __LINE__ - 17);
  2. }
  3. }
  4. return $this->filterResponse($response, $request, $type);
  5. }
  6. /**
  7. * Filters a response object.
  8. *
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. }
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. if ($request->attributes->get('exception') !== null) {
  5. return parent::handle($request, $type, $catch);
  6. }
  7. if (!$request->attributes->has('sw-skip-transformer')) {
  8. try {
  9. $request = $this->requestTransformer->transform($request);
  1. }
  2. $request = $this->duplicateRequest($throwable, $event->getRequest());
  3. try {
  4. $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5. } catch (\Exception $e) {
  6. $f = FlattenException::createFromThrowable($e);
  7. $this->logException($e, \sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine()));
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. * Handles a throwable by trying to convert it to a Response.
  2. */
  3. private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6. $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
  7. // a listener might have replaced the exception
  8. $e = $event->getThrowable();
  9. if (!$event->hasResponse()) {
  1. if ($pop = $request !== $this->requestStack->getMainRequest()) {
  2. $this->requestStack->push($request);
  3. }
  4. try {
  5. $response = $this->handleThrowable($exception, $request, self::MAIN_REQUEST);
  6. } finally {
  7. if ($pop) {
  8. $this->requestStack->pop();
  9. }
  10. }
  1. if ($hasRun) {
  2. throw $e;
  3. }
  4. $hasRun = true;
  5. $kernel->terminateWithException($e, $request);
  6. };
  7. }
  8. } elseif ($event instanceof ConsoleEvent && $app = $event->getCommand()->getApplication()) {
  9. $output = $event->getOutput();
  10. if ($output instanceof ConsoleOutputInterface) {
in /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 538)
  1. $this->exceptionHandler = null;
  2. }
  3. try {
  4. if (null !== $exceptionHandler) {
  5. $exceptionHandler($exception);
  6. return;
  7. }
  8. $handlerException ??= $exception;
  9. } catch (\Throwable $handlerException) {
  1. }
  2. try {
  3. if (null !== $fatalError) {
  4. self::$exitCode = 255;
  5. $handler->handleException($fatalError);
  6. }
  7. } catch (FatalError) {
  8. // Ignore this re-throw
  9. }
ErrorHandler::handleFatalError()

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

  1. } else {
  2. $code = $exception->getCode();
  3. $sqlState = null;
  4. }
  5. return new self($exception->getMessage(), $sqlState, $code, $exception);
  6. }
  7. }
  1. public function execute(): Result
  2. {
  3. try {
  4. $this->stmt->execute();
  5. } catch (PDOException $exception) {
  6. throw Exception::new($exception);
  7. }
  8. return new Result($this->stmt);
  9. }
  1. $stmt = $connection->prepare($sql);
  2. $this->bindParameters($stmt, $params, $types);
  3. $result = $stmt->execute();
  4. } else {
  5. $result = $connection->query($sql);
  6. }
  7. return new Result($result, $this);
  1. *
  2. * @throws Exception
  3. */
  4. public function executeQuery(): Result
  5. {
  6. return $this->connection->executeQuery(
  7. $this->getSQL(),
  8. $this->params,
  9. $this->types,
  10. $this->resultCacheProfile,
  11. );
  1. if ($criteria->getTitle()) {
  2. $query->setTitle($criteria->getTitle() . '::read');
  3. }
  4. return $query->executeQuery()->fetchAllAssociative();
  5. }
  6. /**
  7. * @param EntityCollection<Entity> $collection
  8. * @param array<string, mixed> $partial
  1. if ($definition->isInheritanceAware() && $criteria->hasAssociation('parent')) {
  2. throw DataAbstractionLayerException::parentAssociationCannotBeFetched();
  3. }
  4. $rows = $this->fetch($criteria, $definition, $context, $fields, $partial);
  5. $collection = $this->hydrator->hydrate($collection, $definition->getEntityClass(), $definition, $rows, $definition->getEntityName(), $context, $partial);
  6. $collection = $this->fetchAssociations($criteria, $definition, $context, $collection, $fields, $partial);
  1. /** @var EntityCollection<Entity> $collectionClass */
  2. $collectionClass = $definition->getCollectionClass();
  3. $fields = $this->criteriaFieldsResolver->resolve($criteria, $definition);
  4. return $this->_read(
  5. $criteria,
  6. $definition,
  7. $context,
  8. new $collectionClass(),
  9. $definition->getFields()->getBasicFields(),
  1. {
  2. $criteria = clone $criteria;
  3. /** @var TEntityCollection $entities */
  4. // @phpstan-ignore varTag.type (phpstan can't detect that TEntityCollection is always an EntityCollection<Entity>)
  5. $entities = $this->reader->read($this->definition, $criteria, $context);
  6. if ($criteria->getFields() === []) {
  7. $event = $this->eventFactory->create($entities->getElements(), $context);
  8. } else {
  9. $event = $this->eventFactory->createPartial($entities->getElements(), $context);
  1. if (!RepositorySearchDetector::isSearchRequired($this->definition, $criteria)) {
  2. $this->eventDispatcher->dispatch(
  3. new EntitySearchedEvent($criteria, $this->definition, $context)
  4. );
  5. $entities = $this->read($criteria, $context);
  6. return new EntitySearchResult($this->definition->getEntityName(), $entities->count(), $entities, $aggregations, $criteria, $context);
  7. }
  8. $ids = $this->searchIds($criteria, $context);
  1. * @return EntitySearchResult<TEntityCollection>
  2. */
  3. public function search(Criteria $criteria, Context $context): EntitySearchResult
  4. {
  5. if (!$criteria->getTitle()) {
  6. return $this->_search($criteria, $context);
  7. }
  8. return Profiler::trace($criteria->getTitle(), fn () => $this->_search($criteria, $context), 'repository');
  9. }
  1. return new RuleCollection();
  2. }
  3. $criteria = new Criteria($this->ruleIds);
  4. return $this->ruleRepository->search($criteria, Context::createDefaultContext())->getEntities();
  5. }
  6. }
  1. return \count($this->data);
  2. }
  3. public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
  4. {
  5. $this->data = $this->getMatchingRules()->getElements();
  6. }
  7. public static function getTemplate(): string
  8. {
  9. return '@Profiling/Collector/rules.html.twig';
  1. }
  2. $response->headers->set('X-Debug-Token', $profile->getToken());
  3. foreach ($this->collectors as $collector) {
  4. $collector->collect($request, $response, $exception);
  5. // we need to clone for sub-requests
  6. $profile->addCollector(clone $collector);
  7. }
  1. $usageIndexValue = $usageIndexReference = &$session->getUsageIndex();
  2. $usageIndexReference = \PHP_INT_MIN;
  3. }
  4. try {
  5. if (!$profile = $this->profiler->collect($request, $event->getResponse(), $exception)) {
  6. return;
  7. }
  8. } finally {
  9. if ($session instanceof Session) {
  10. $usageIndexReference = $usageIndexValue;
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. */
  2. private function filterResponse(Response $response, Request $request, int $type): Response
  3. {
  4. $event = new ResponseEvent($this, $request, $type, $response);
  5. $this->dispatcher->dispatch($event, KernelEvents::RESPONSE);
  6. $this->finishRequest($request, $type);
  7. return $event->getResponse();
  8. }
  1. throw new ControllerDoesNotReturnResponseException($msg, $controller, __FILE__, __LINE__ - 17);
  2. }
  3. }
  4. return $this->filterResponse($response, $request, $type);
  5. }
  6. /**
  7. * Filters a response object.
  8. *
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. }
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. if ($request->attributes->get('exception') !== null) {
  5. return parent::handle($request, $type, $catch);
  6. }
  7. if (!$request->attributes->has('sw-skip-transformer')) {
  8. try {
  9. $request = $this->requestTransformer->transform($request);
  1. }
  2. $request = $this->duplicateRequest($throwable, $event->getRequest());
  3. try {
  4. $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5. } catch (\Exception $e) {
  6. $f = FlattenException::createFromThrowable($e);
  7. $this->logException($e, \sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine()));
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. * Handles a throwable by trying to convert it to a Response.
  2. */
  3. private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6. $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
  7. // a listener might have replaced the exception
  8. $e = $event->getThrowable();
  9. if (!$event->hasResponse()) {
  1. if ($pop = $request !== $this->requestStack->getMainRequest()) {
  2. $this->requestStack->push($request);
  3. }
  4. try {
  5. $response = $this->handleThrowable($exception, $request, self::MAIN_REQUEST);
  6. } finally {
  7. if ($pop) {
  8. $this->requestStack->pop();
  9. }
  10. }
  1. if ($hasRun) {
  2. throw $e;
  3. }
  4. $hasRun = true;
  5. $kernel->terminateWithException($e, $request);
  6. };
  7. }
  8. } elseif ($event instanceof ConsoleEvent && $app = $event->getCommand()->getApplication()) {
  9. $output = $event->getOutput();
  10. if ($output instanceof ConsoleOutputInterface) {
in /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 538)
  1. $this->exceptionHandler = null;
  2. }
  3. try {
  4. if (null !== $exceptionHandler) {
  5. $exceptionHandler($exception);
  6. return;
  7. }
  8. $handlerException ??= $exception;
  9. } catch (\Throwable $handlerException) {
  1. }
  2. try {
  3. if (null !== $fatalError) {
  4. self::$exitCode = 255;
  5. $handler->handleException($fatalError);
  6. }
  7. } catch (FatalError) {
  8. // Ignore this re-throw
  9. }
ErrorHandler::handleFatalError()

PDOException

SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

  1. }
  2. public function execute(): Result
  3. {
  4. try {
  5. $this->stmt->execute();
  6. } catch (PDOException $exception) {
  7. throw Exception::new($exception);
  8. }
  9. return new Result($this->stmt);
  1. }
  2. public function execute(): Result
  3. {
  4. try {
  5. $this->stmt->execute();
  6. } catch (PDOException $exception) {
  7. throw Exception::new($exception);
  8. }
  9. return new Result($this->stmt);
  1. $stmt = $connection->prepare($sql);
  2. $this->bindParameters($stmt, $params, $types);
  3. $result = $stmt->execute();
  4. } else {
  5. $result = $connection->query($sql);
  6. }
  7. return new Result($result, $this);
  1. *
  2. * @throws Exception
  3. */
  4. public function executeQuery(): Result
  5. {
  6. return $this->connection->executeQuery(
  7. $this->getSQL(),
  8. $this->params,
  9. $this->types,
  10. $this->resultCacheProfile,
  11. );
  1. if ($criteria->getTitle()) {
  2. $query->setTitle($criteria->getTitle() . '::read');
  3. }
  4. return $query->executeQuery()->fetchAllAssociative();
  5. }
  6. /**
  7. * @param EntityCollection<Entity> $collection
  8. * @param array<string, mixed> $partial
  1. if ($definition->isInheritanceAware() && $criteria->hasAssociation('parent')) {
  2. throw DataAbstractionLayerException::parentAssociationCannotBeFetched();
  3. }
  4. $rows = $this->fetch($criteria, $definition, $context, $fields, $partial);
  5. $collection = $this->hydrator->hydrate($collection, $definition->getEntityClass(), $definition, $rows, $definition->getEntityName(), $context, $partial);
  6. $collection = $this->fetchAssociations($criteria, $definition, $context, $collection, $fields, $partial);
  1. /** @var EntityCollection<Entity> $collectionClass */
  2. $collectionClass = $definition->getCollectionClass();
  3. $fields = $this->criteriaFieldsResolver->resolve($criteria, $definition);
  4. return $this->_read(
  5. $criteria,
  6. $definition,
  7. $context,
  8. new $collectionClass(),
  9. $definition->getFields()->getBasicFields(),
  1. {
  2. $criteria = clone $criteria;
  3. /** @var TEntityCollection $entities */
  4. // @phpstan-ignore varTag.type (phpstan can't detect that TEntityCollection is always an EntityCollection<Entity>)
  5. $entities = $this->reader->read($this->definition, $criteria, $context);
  6. if ($criteria->getFields() === []) {
  7. $event = $this->eventFactory->create($entities->getElements(), $context);
  8. } else {
  9. $event = $this->eventFactory->createPartial($entities->getElements(), $context);
  1. if (!RepositorySearchDetector::isSearchRequired($this->definition, $criteria)) {
  2. $this->eventDispatcher->dispatch(
  3. new EntitySearchedEvent($criteria, $this->definition, $context)
  4. );
  5. $entities = $this->read($criteria, $context);
  6. return new EntitySearchResult($this->definition->getEntityName(), $entities->count(), $entities, $aggregations, $criteria, $context);
  7. }
  8. $ids = $this->searchIds($criteria, $context);
  1. * @return EntitySearchResult<TEntityCollection>
  2. */
  3. public function search(Criteria $criteria, Context $context): EntitySearchResult
  4. {
  5. if (!$criteria->getTitle()) {
  6. return $this->_search($criteria, $context);
  7. }
  8. return Profiler::trace($criteria->getTitle(), fn () => $this->_search($criteria, $context), 'repository');
  9. }
  1. return new RuleCollection();
  2. }
  3. $criteria = new Criteria($this->ruleIds);
  4. return $this->ruleRepository->search($criteria, Context::createDefaultContext())->getEntities();
  5. }
  6. }
  1. return \count($this->data);
  2. }
  3. public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
  4. {
  5. $this->data = $this->getMatchingRules()->getElements();
  6. }
  7. public static function getTemplate(): string
  8. {
  9. return '@Profiling/Collector/rules.html.twig';
  1. }
  2. $response->headers->set('X-Debug-Token', $profile->getToken());
  3. foreach ($this->collectors as $collector) {
  4. $collector->collect($request, $response, $exception);
  5. // we need to clone for sub-requests
  6. $profile->addCollector(clone $collector);
  7. }
  1. $usageIndexValue = $usageIndexReference = &$session->getUsageIndex();
  2. $usageIndexReference = \PHP_INT_MIN;
  3. }
  4. try {
  5. if (!$profile = $this->profiler->collect($request, $event->getResponse(), $exception)) {
  6. return;
  7. }
  8. } finally {
  9. if ($session instanceof Session) {
  10. $usageIndexReference = $usageIndexValue;
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. */
  2. private function filterResponse(Response $response, Request $request, int $type): Response
  3. {
  4. $event = new ResponseEvent($this, $request, $type, $response);
  5. $this->dispatcher->dispatch($event, KernelEvents::RESPONSE);
  6. $this->finishRequest($request, $type);
  7. return $event->getResponse();
  8. }
  1. throw new ControllerDoesNotReturnResponseException($msg, $controller, __FILE__, __LINE__ - 17);
  2. }
  3. }
  4. return $this->filterResponse($response, $request, $type);
  5. }
  6. /**
  7. * Filters a response object.
  8. *
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. }
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. if ($request->attributes->get('exception') !== null) {
  5. return parent::handle($request, $type, $catch);
  6. }
  7. if (!$request->attributes->has('sw-skip-transformer')) {
  8. try {
  9. $request = $this->requestTransformer->transform($request);
  1. }
  2. $request = $this->duplicateRequest($throwable, $event->getRequest());
  3. try {
  4. $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5. } catch (\Exception $e) {
  6. $f = FlattenException::createFromThrowable($e);
  7. $this->logException($e, \sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine()));
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. * Handles a throwable by trying to convert it to a Response.
  2. */
  3. private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6. $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
  7. // a listener might have replaced the exception
  8. $e = $event->getThrowable();
  9. if (!$event->hasResponse()) {
  1. if ($pop = $request !== $this->requestStack->getMainRequest()) {
  2. $this->requestStack->push($request);
  3. }
  4. try {
  5. $response = $this->handleThrowable($exception, $request, self::MAIN_REQUEST);
  6. } finally {
  7. if ($pop) {
  8. $this->requestStack->pop();
  9. }
  10. }
  1. if ($hasRun) {
  2. throw $e;
  3. }
  4. $hasRun = true;
  5. $kernel->terminateWithException($e, $request);
  6. };
  7. }
  8. } elseif ($event instanceof ConsoleEvent && $app = $event->getCommand()->getApplication()) {
  9. $output = $event->getOutput();
  10. if ($output instanceof ConsoleOutputInterface) {
in /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 538)
  1. $this->exceptionHandler = null;
  2. }
  3. try {
  4. if (null !== $exceptionHandler) {
  5. $exceptionHandler($exception);
  6. return;
  7. }
  8. $handlerException ??= $exception;
  9. } catch (\Throwable $handlerException) {
  1. }
  2. try {
  3. if (null !== $fatalError) {
  4. self::$exitCode = 255;
  5. $handler->handleException($fatalError);
  6. }
  7. } catch (FatalError) {
  8. // Ignore this re-throw
  9. }
ErrorHandler::handleFatalError()

Symfony\Component\ErrorHandler\Error\ OutOfMemoryError

Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4604576 bytes)

  1. }
  2. public function execute(): Result
  3. {
  4. try {
  5. $this->stmt->execute();
  6. } catch (PDOException $exception) {
  7. throw Exception::new($exception);
  8. }
  9. return new Result($this->stmt);

Stack Traces 4

[4/4] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

  at /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:102
  at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Connection.php:1460)
  at Doctrine\DBAL\Connection->handleDriverException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Connection.php:1396)
  at Doctrine\DBAL\Connection->convertExceptionDuringQuery()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Connection.php:809)
  at Doctrine\DBAL\Connection->executeQuery()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Query/QueryBuilder.php:323)
  at Doctrine\DBAL\Query\QueryBuilder->executeQuery()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:317)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->fetch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:133)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->_read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:76)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:208)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:236)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->_search()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:65)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->search()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Profiling/Subscriber/ActiveRulesDataCollectorSubscriber.php:90)
  at Shopware\Core\Profiling\Subscriber\ActiveRulesDataCollectorSubscriber->getMatchingRules()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Profiling/Subscriber/ActiveRulesDataCollectorSubscriber.php:69)
  at Shopware\Core\Profiling\Subscriber\ActiveRulesDataCollectorSubscriber->collect()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/Profiler/Profiler.php:158)
  at Symfony\Component\HttpKernel\Profiler\Profiler->collect()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:102)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelResponse()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:41)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:28)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:216)
  at Symfony\Component\HttpKernel\HttpKernel->filterResponse()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:204)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:43)
  at Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/ErrorListener.php:99)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:41)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:28)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:241)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:134)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php:634)
  at Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError()                
[3/4] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

  at /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:24
  at Doctrine\DBAL\Driver\PDO\Exception::new()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:57)
  at Doctrine\DBAL\Driver\PDO\Statement->execute()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Connection.php:802)
  at Doctrine\DBAL\Connection->executeQuery()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Query/QueryBuilder.php:323)
  at Doctrine\DBAL\Query\QueryBuilder->executeQuery()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:317)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->fetch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:133)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->_read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:76)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:208)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:236)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->_search()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:65)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->search()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Profiling/Subscriber/ActiveRulesDataCollectorSubscriber.php:90)
  at Shopware\Core\Profiling\Subscriber\ActiveRulesDataCollectorSubscriber->getMatchingRules()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Profiling/Subscriber/ActiveRulesDataCollectorSubscriber.php:69)
  at Shopware\Core\Profiling\Subscriber\ActiveRulesDataCollectorSubscriber->collect()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/Profiler/Profiler.php:158)
  at Symfony\Component\HttpKernel\Profiler\Profiler->collect()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:102)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelResponse()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:41)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:28)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:216)
  at Symfony\Component\HttpKernel\HttpKernel->filterResponse()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:204)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:43)
  at Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/ErrorListener.php:99)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:41)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:28)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:241)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:134)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php:634)
  at Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError()                
[2/4] PDOException
PDOException:
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

  at /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:55
  at PDOStatement->execute()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:55)
  at Doctrine\DBAL\Driver\PDO\Statement->execute()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Connection.php:802)
  at Doctrine\DBAL\Connection->executeQuery()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Query/QueryBuilder.php:323)
  at Doctrine\DBAL\Query\QueryBuilder->executeQuery()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:317)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->fetch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:133)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->_read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:76)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:208)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->read()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:236)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->_search()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:65)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->search()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Profiling/Subscriber/ActiveRulesDataCollectorSubscriber.php:90)
  at Shopware\Core\Profiling\Subscriber\ActiveRulesDataCollectorSubscriber->getMatchingRules()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Profiling/Subscriber/ActiveRulesDataCollectorSubscriber.php:69)
  at Shopware\Core\Profiling\Subscriber\ActiveRulesDataCollectorSubscriber->collect()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/Profiler/Profiler.php:158)
  at Symfony\Component\HttpKernel\Profiler\Profiler->collect()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:102)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelResponse()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:41)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:28)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:216)
  at Symfony\Component\HttpKernel\HttpKernel->filterResponse()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:204)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:43)
  at Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/ErrorListener.php:99)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:41)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:28)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:241)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/HttpKernel.php:134)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:84)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()
     (/var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/symfony/error-handler/ErrorHandler.php:634)
  at Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError()                
[1/4] OutOfMemoryError
Symfony\Component\ErrorHandler\Error\OutOfMemoryError:
Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4604576 bytes)

  at /var/www/unexstage.dev.fourdegrees.de/htdocs_67_test/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:55