Page not found

The page you are trying to access does not exist, has been moved or has expired

 

Your IP address has been recorded as 216.73.216.194. Session reference b30c7808-764f-4373-a0f7-8ccbfc9ca3f7.
Loading…
Loading the web debug toolbar…
Attempt #

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4198400 bytes) in /var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 166
Failed to start the session because headers have already been sent by "/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-foundation/Response.php" at line 381. (500 Internal Server Error)

Symfony Exception

OutOfMemoryError RuntimeException

HTTP 500 Internal Server Error

Failed to start the session because headers have already been sent by "/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-foundation/Response.php" at line 381.

Exceptions 2

RuntimeException

  1. if (\PHP_SESSION_ACTIVE === session_status()) {
  2. throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3. }
  4. if (filter_var(\ini_get('session.use_cookies'), \FILTER_VALIDATE_BOOLEAN) && headers_sent($file, $line)) {
  5. throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
  6. }
  7. $sessionId = $_COOKIE[session_name()] ?? null;
  8. /*
  9. * Explanation of the session ID regular expression: `/^[a-zA-Z0-9,-]{22,250}$/`.
  1. /**
  2. * {@inheritdoc}
  3. */
  4. public function start()
  5. {
  6. return $this->storage->start();
  7. }
  8. /**
  9. * {@inheritdoc}
  10. */
  1. $sfSession = $this->getRequest()->getSession();
  2. }
  3. $this->sf_session = $sfSession;
  4. if (!$this->sf_session->isStarted()) {
  5. $this->sf_session->start();
  6. }
  7. }
  8. /**
  9. * Get Symfony Request
  1. // $this->container->get('sessions.manager')->limitRate($ip, $userAgent);
  2. $sessionManager = $this->container->get('sessions.manager');
  3. $sessionManager->setRequest($request);
  4. $sessionManager->setSfSession($request->getSession());
  5. $url = str_replace('/app_dev.php', '', $request->server->get('REQUEST_URI'));
  6. if (Utils::ignoreURL()) {
  7. return false;
  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. 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 handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
  3. {
  4. // request
  5. $event = new RequestEvent($this, $request, $type);
  6. $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
  7. if ($event->hasResponse()) {
  8. return $this->filterResponse($event->getResponse(), $request, $type);
  9. }
  1. {
  2. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3. $this->requestStack->push($request);
  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. $throwable = $event->getThrowable();
  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(), $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. 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. * @throws \Exception
  2. */
  3. private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e);
  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/clients/client2/web72/web/igotafrica/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 619)
  1. $this->exceptionHandler = null;
  2. }
  3. try {
  4. if (null !== $exceptionHandler) {
  5. return $exceptionHandler($exception);
  6. }
  7. $handlerException = $handlerException ?: $exception;
  8. } catch (\Throwable $handlerException) {
  9. }
  10. if ($exception === $handlerException && null === $this->exceptionHandler) {
  1. }
  2. try {
  3. if (null !== $fatalError) {
  4. self::$exitCode = 255;
  5. $handler->handleException($fatalError);
  6. }
  7. } catch (FatalError $e) {
  8. // Ignore this re-throw
  9. }
ErrorHandler::handleFatalError()

Symfony\Component\ErrorHandler\Error\ OutOfMemoryError

Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4198400 bytes)

  1. 'url' => $profile->getUrl(),
  2. 'time' => $profile->getTime(),
  3. 'status_code' => $profile->getStatusCode(),
  4. ];
  5. $data = serialize($data);
  6. if (\function_exists('gzencode')) {
  7. $data = gzencode($data, 3);
  8. }

Stack Traces 2

[2/2] RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-foundation/Response.php" at line 381.

  at /var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:145
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-foundation/Session/Session.php:61)
  at Symfony\Component\HttpFoundation\Session\Session->start()
     (/var/www/clients/client2/web72/web/igotafrica/src/IGA/SessionsBundle/Services/SessionsManager.php:237)
  at App\IGA\SessionsBundle\Services\SessionsManager->setSfSession()
     (/var/www/clients/client2/web72/web/igotafrica/src/IGA/SessionsBundle/EventListener/RequestListener.php:50)
  at App\IGA\SessionsBundle\EventListener\RequestListener->onKernelRequest()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/EventListener/ErrorListener.php:91)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/HttpKernel.php:223)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:132)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/error-handler/ErrorHandler.php:619)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()
     (/var/www/clients/client2/web72/web/igotafrica/vendor/symfony/error-handler/ErrorHandler.php:713)
  at Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError()                
[1/2] OutOfMemoryError
Symfony\Component\ErrorHandler\Error\OutOfMemoryError:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4198400 bytes)

  at /var/www/clients/client2/web72/web/igotafrica/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:166