/var/www/html/trafficniche.com/api/api/src/Helper/ApiHelper.php:85:string 'Erreur de Partner' (length=17)
/var/www/html/trafficniche.com/api/api/src/Helper/ApiHelper.php:85:string 'intercontent' (length=12)
/var/www/html/trafficniche.com/api/api/src/Helper/ApiHelper.php:85:null
App\Helper\ApiHelper::getPartner(): Return value must be of type App\Helper\Partner\AbstractPartner, null returned (500 Internal Server Error)

Symfony Exception

TypeError

HTTP 500 Internal Server Error

App\Helper\ApiHelper::getPartner(): Return value must be of type App\Helper\Partner\AbstractPartner, null returned

Exception

TypeError

  1.             case "admitad":
  2.                 $partner $this->admitad;
  3.                 break;
  4.             default:
  5.                 var_dump("Erreur de Partner"$partnerIdentifiant$partner);
  6.                 return null;
  7.             //break;
  8.         }
  9.         return $partner;
  10.     }
ApiHelper->getPartner('intercontent') in src/Helper/ApiHelper.php (line 268)
  1.         $partnerIdentifiant = isset($client["partner"]["identifiant"]) ? $client["partner"]["identifiant"] : null;
  2.         if (($partnerIdentifiant == "yieldkit") || !$this->useCache || !is_array($merchantPartners) || empty($merchantPartners)) {
  3.             $partnerIdentifiant = isset($client["partner"]["identifiant"]) ? $client["partner"]["identifiant"] : null;
  4.             $partner $this->getPartner($partnerIdentifiant);
  5.             if ($this->debug) {
  6.                 var_dump($client$params);
  7.                 var_dump($partnerIdentifiant);
  8.             }
  9.             $merchantPartners $partner->getMerchants($client$params);
ApiHelper->getPartnerMerchants(array('id' => 92, 'createdAt' => '2024-11-18T18:56:45+00:00', 'updatedAt' => '2024-11-18T18:56:45+00:00', 'active' => true, 'partner' => array('id' => 89, 'identifiant' => 'intercontent', 'code' => 'ic'), 'user' => '/api/users/2', 'name' => 'ic_brilliants', 'slug' => 'ic-brilliants', 'short' => 265, 'domain' => 'brilliantsparklers.com', 'url' => 'https://brilliantsparklers.com', 'identifiant' => 'aaa', 'key' => '60192475-cfd6-11ee-9d96-002248a00657', 'secret' => 'a', 'token' => 'a'), array('url' => '/redirect-simple', 'c' => 'de', 'ci' => '265', 'mp' => 'KOFFER.COM')) in src/Controller/RedirectController.php (line 286)
  1.                 }
  2.                 return new JsonResponse($brands);
  3.             }
  4.         }
  5.         $merchantPartners $this->apiHelper->getPartnerMerchants($client$params);
  6.         if ($this->debug) {
  7.             $firstMerchant is_array($merchantPartners) && !empty($merchantPartners) ? $merchantPartners[0] : null;
  8.             var_dump("First Merchants : "$firstMerchant);
  9.             if (is_array($merchantPartners)) {
  10.                 var_dump(count($merchantPartners));
in vendor/symfony/http-kernel/HttpKernel.php -> redirectSimple (line 183)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::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('/var/www/html/trafficniche.com/api/api/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 Message
info 20:39:59 User Deprecated: Since api-platform/symfony 4.1: The "api_platform.validator.query_parameter_validator" service is deprecated use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\ParameterValidator" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\ArrayItems" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Bounds" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Enum" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Length" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\MultipleOf" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Pattern" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Required" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead.
{
    "exception": {}
}
info 20:39:59 User Deprecated: Since api-platform/core 3.4: Injecting the "ApiPlatform\JsonSchema\TypeFactoryInterface" inside "ApiPlatform\JsonSchema\SchemaFactory" is deprecated and "ApiPlatform\JsonSchema\TypeFactoryInterface" will be removed in 4.x.
{
    "exception": {}
}
info 20:39:59 Matched route "redirect_simple".
{
    "route": "redirect_simple",
    "route_parameters": {
        "_route": "redirect_simple",
        "_controller": "App\\Controller\\RedirectController::redirectSimple"
    },
    "request_uri": "https://brilliantsparklers.com/redirect-simple?c=de&ci=265&mp=KOFFER.COM&url=%2Fredirect-simple",
    "method": "GET"
}
info 20:39:59 User Deprecated: Relying on non-optimal defaults for ID generation is deprecated, and IDENTITY results in SERIAL, which is not recommended. Instead, configure identifier generation strategies explicitly through configuration. We currently recommend "SEQUENCE" for "Doctrine\DBAL\Platforms\PostgreSqlPlatform", so you should use $configuration->setIdentityGenerationPreferences([ "Doctrine\DBAL\Platforms\PostgreSqlPlatform" => ClassMetadata::GENERATOR_TYPE_SEQUENCE, ]); (ClassMetadataFactory.php:760 called by ClassMetadataFactory.php:631, https://github.com/doctrine/orm/issues/8893, package doctrine/orm)
{
    "exception": {}
}
debug 20:39:59 Checking for authenticator support.
{
    "firewall_name": "api",
    "authenticators": 3
}
debug 20:39:59 Checking support on authenticator.
{
    "firewall_name": "api",
    "authenticator": "Lexik\\Bundle\\JWTAuthenticationBundle\\Security\\Authenticator\\JWTAuthenticator"
}
debug 20:39:59 Authenticator does not support the request.
{
    "firewall_name": "api",
    "authenticator": "Lexik\\Bundle\\JWTAuthenticationBundle\\Security\\Authenticator\\JWTAuthenticator"
}
debug 20:39:59 Checking support on authenticator.
{
    "firewall_name": "api",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\JsonLoginAuthenticator"
}
debug 20:39:59 Authenticator does not support the request.
{
    "firewall_name": "api",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\JsonLoginAuthenticator"
}
debug 20:39:59 Checking support on authenticator.
{
    "firewall_name": "api",
    "authenticator": "Gesdinet\\JWTRefreshTokenBundle\\Security\\Http\\Authenticator\\RefreshTokenAuthenticator"
}
debug 20:39:59 Authenticator does not support the request.
{
    "firewall_name": "api",
    "authenticator": "Gesdinet\\JWTRefreshTokenBundle\\Security\\Http\\Authenticator\\RefreshTokenAuthenticator"
}
debug 20:39:59 Notified event "debug.security.authorization.vote" to listener "Symfony\Bundle\SecurityBundle\EventListener\VoteListener::onVoterVote".
{
    "event": "debug.security.authorization.vote",
    "listener": "Symfony\\Bundle\\SecurityBundle\\EventListener\\VoteListener::onVoterVote"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Nelmio\CorsBundle\EventListener\CorsListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Nelmio\\CorsBundle\\EventListener\\CorsListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\AddFormatListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\AddFormatListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\QueryParameterValidateListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\QueryParameterValidateListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\ReadListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\ReadListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\DeserializeListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\DeserializeListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
debug 20:39:59 Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
debug 20:39:59 Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
debug 20:39:59 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 20:39:59 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 20:39:59 Notified event "kernel.controller_arguments" to listener "ContainerZZoYrcZ\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "ContainerZZoYrcZ\\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments"
}
debug 20:39:59 Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
info 20:39:59 Deprecated: Creation of dynamic property App\Helper\Partner\Kelkoo::$useCache is deprecated
{
    "exception": {}
}
info 20:39:59 Deprecated: Creation of dynamic property App\Helper\Partner\Admitad::$useCache is deprecated
{
    "exception": {}
}
critical 20:39:59 Uncaught PHP Exception TypeError: "App\Helper\ApiHelper::getPartner(): Return value must be of type App\Helper\Partner\AbstractPartner, null returned" at ApiHelper.php line 86
{
    "exception": {}
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Nelmio\CorsBundle\EventListener\CorsListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Nelmio\\CorsBundle\\EventListener\\CorsListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\AddFormatListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\AddFormatListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\QueryParameterValidateListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\QueryParameterValidateListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
debug 20:39:59 Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\ReadListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\ReadListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.request" to listener "ApiPlatform\Symfony\EventListener\DeserializeListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "ApiPlatform\\Symfony\\EventListener\\DeserializeListener::onKernelRequest"
}
debug 20:39:59 Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
debug 20:39:59 Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
debug 20:39:59 Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
debug 20:39:59 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 20:39:59 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 20:39:59 Notified event "kernel.controller_arguments" to listener "ContainerZZoYrcZ\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "ContainerZZoYrcZ\\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments"
}
debug 20:39:59 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

TypeError
TypeError:
App\Helper\ApiHelper::getPartner(): Return value must be of type App\Helper\Partner\AbstractPartner, null returned

  at src/Helper/ApiHelper.php:86
  at App\Helper\ApiHelper->getPartner('intercontent')
     (src/Helper/ApiHelper.php:268)
  at App\Helper\ApiHelper->getPartnerMerchants(array('id' => 92, 'createdAt' => '2024-11-18T18:56:45+00:00', 'updatedAt' => '2024-11-18T18:56:45+00:00', 'active' => true, 'partner' => array('id' => 89, 'identifiant' => 'intercontent', 'code' => 'ic'), 'user' => '/api/users/2', 'name' => 'ic_brilliants', 'slug' => 'ic-brilliants', 'short' => 265, 'domain' => 'brilliantsparklers.com', 'url' => 'https://brilliantsparklers.com', 'identifiant' => 'aaa', 'key' => '60192475-cfd6-11ee-9d96-002248a00657', 'secret' => 'a', 'token' => 'a'), array('url' => '/redirect-simple', 'c' => 'de', 'ci' => '265', 'mp' => 'KOFFER.COM'))
     (src/Controller/RedirectController.php:286)
  at App\Controller\RedirectController->redirectSimple(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/var/www/html/trafficniche.com/api/api/vendor/autoload_runtime.php')
     (public/index.php:5)                
Loading…
Loading the web debug toolbar…
Attempt #