Deprecated: Constant E_STRICT is deprecated in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/symfony/error-handler/ErrorHandler.php on line 76

Deprecated: League\OAuth2\Client\Provider\AbstractProvider::authorize(): Implicitly marking parameter $redirectHandler as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/league/oauth2-client/src/Provider/AbstractProvider.php on line 496

Deprecated: GuzzleHttp\Client::getConfig(): Implicitly marking parameter $option as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Client.php on line 205

Deprecated: GuzzleHttp\ClientInterface::getConfig(): Implicitly marking parameter $option as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/ClientInterface.php on line 83

Deprecated: GuzzleHttp\HandlerStack::create(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 47

Deprecated: GuzzleHttp\HandlerStack::__construct(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 61

Deprecated: GuzzleHttp\HandlerStack::unshift(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 134

Deprecated: GuzzleHttp\Handler\StreamHandler::invokeStats(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php on line 82

Deprecated: GuzzleHttp\Handler\StreamHandler::invokeStats(): Implicitly marking parameter $error as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php on line 82

Deprecated: GuzzleHttp\Middleware::httpErrors(): Implicitly marking parameter $bodySummarizer as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php on line 58

Deprecated: GuzzleHttp\Middleware::tap(): Implicitly marking parameter $before as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php on line 135

Deprecated: GuzzleHttp\Middleware::tap(): Implicitly marking parameter $after as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php on line 135

Deprecated: GuzzleHttp\Middleware::retry(): Implicitly marking parameter $delay as nullable is deprecated, the explicit nullable type must be used instead in /home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php on line 179
Failed to start the session because headers have already been sent by "/home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php" at line 135. (500 Internal Server Error)

Symfony Exception

RuntimeException

HTTP 500 Internal Server Error

Failed to start the session because headers have already been sent by "/home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php" at line 135.

Exception

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_BOOL) && 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.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.         $this->storage->registerBag(new SessionBagProxy($bag, $this->data, $this->usageIndex, $this->usageReporter));
  2.     }
  3.     public function getBag(string $name): SessionBagInterface
  4.     {
  5.         $bag = $this->storage->getBag($name);
  6.         return method_exists($bag, 'getBag') ? $bag->getBag() : $bag;
  7.     }
  8.     /**
  1.      *
  2.      * Note that this method was added to help with IDE autocompletion.
  3.      */
  4.     private function getAttributeBag(): AttributeBagInterface
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * @return void
  3.      */
  4.     public function set(string $name, mixed $value)
  5.     {
  6.         $this->getAttributeBag()->set($name, $value);
  7.     }
  8.     public function all(): array
  9.     {
  10.         return $this->getAttributeBag()->all();
  1.         $url = $this->provider->getAuthorizationUrl($options);
  2.         // set the state (unless we're stateless)
  3.         if (!$this->isStateless()) {
  4.             $this->getSession()->set(
  5.                 self::OAUTH2_SESSION_STATE_KEY,
  6.                 $this->provider->getState()
  7.             );
  8.         }
OAuth2Client->redirect() in src/Controller/OAuthController.php (line 28)
  1.     
  2.     /**
  3.      * @Route("wordpress", name="start")
  4.      */
  5.     public function connect(ClientRegistry $clientRegistry){
  6.         return $this->clientRegistry->getClient('wordpress')->redirect();
  7.     }
  8.     /**
  9.      * @Route("wordpress/check", name="connect_wordpress_check")
  10.      */
  1.         $this->dispatcher->dispatch($event, KernelEvents::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, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  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.         $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.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs 1

Level Channel Message
INFO 02:06:30 request Matched route "connect_wordpress_start".
{
    "route": "connect_wordpress_start",
    "route_parameters": {
        "_route": "connect_wordpress_start",
        "_controller": "App\\Controller\\OAuthController::connect"
    },
    "request_uri": "https://agro.mega-devs.com/connect/wordpress",
    "method": "GET"
}
DEBUG 02:06:30 security Checking for authenticator support.
{
    "firewall_name": "main",
    "authenticators": 3
}
DEBUG 02:06:30 security Checking support on authenticator.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\AppAuthenticator"
}
DEBUG 02:06:30 security Authenticator does not support the request.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\AppAuthenticator"
}
DEBUG 02:06:30 security Checking support on authenticator.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\WordpressAuthenticator"
}
DEBUG 02:06:30 security Authenticator does not support the request.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\WordpressAuthenticator"
}
DEBUG 02:06:30 security Checking support on authenticator.
{
    "firewall_name": "main",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\RememberMeAuthenticator"
}
DEBUG 02:06:30 security Authenticator does not support the request.
{
    "firewall_name": "main",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\RememberMeAuthenticator"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\AssetMapper\AssetMapperDevServerSubscriber::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\AssetMapper\\AssetMapperDevServerSubscriber::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
DEBUG 02:06:30 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "ContainerSzFfPF0\RequestPayloadValueResolverGhost3590451::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "ContainerSzFfPF0\\RequestPayloadValueResolverGhost3590451::onKernelControllerArguments"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
CRITICAL 02:06:30 request Uncaught PHP Exception RuntimeException: "Failed to start the session because headers have already been sent by "/home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php" at line 135." at NativeSessionStorage.php line 132
{
    "exception": {}
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\AssetMapper\AssetMapperDevServerSubscriber::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\AssetMapper\\AssetMapperDevServerSubscriber::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
DEBUG 02:06:30 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
DEBUG 02:06:30 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
DEBUG 02:06:30 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "ContainerSzFfPF0\RequestPayloadValueResolverGhost3590451::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "ContainerSzFfPF0\\RequestPayloadValueResolverGhost3590451::onKernelControllerArguments"
}
DEBUG 02:06:30 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}

Stack Trace

RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/guzzlehttp/guzzle/src/Middleware.php" at line 135.

  at vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:132
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:311)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
     (vendor/symfony/http-foundation/Session/Session.php:222)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (vendor/symfony/http-foundation/Session/Session.php:242)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (vendor/symfony/http-foundation/Session/Session.php:77)
  at Symfony\Component\HttpFoundation\Session\Session->set()
     (vendor/knpuniversity/oauth2-client-bundle/src/Client/OAuth2Client.php:70)
  at KnpU\OAuth2ClientBundle\Client\OAuth2Client->redirect()
     (src/Controller/OAuthController.php:28)
  at App\Controller\OAuthController->connect()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/u425187614/domains/mega-devs.com/public_html/web/all/agronutrition-distributeurs/vendor/autoload_runtime.php')
     (public/index.php:5)                
Loading…
Loading the web debug toolbar…
Attempt #