Exceptions
Exception
Error
in
src/Controller/API/Marketplace/ApiLengowController.php
(line 119)
"status" => $marketplace->getStatus(),"actions" => $marketplace->getActions(),"carrier" => $marketplace->getCarriers(),"shippingMethods" => $marketplace->getShippingMethods(),"company" => ['id' => $marketplace->getCompany()->getId(),'name' => $marketplace->getCompany()->getName()]], $marketplaces);return $this->json(['marketplaces' => $marketplaces]);
ApiLengowController->App\Controller\API\Marketplace\{closure}()
#[Route('/marketplaces', name: 'api_lengow_marketplace', options: ["expose" => true], methods: ['GET'])]public function getMarketplaces(){$marketplaces = $this->marketplaceRepository->findAll();$marketplaces = array_map(fn(Marketplace $marketplace) => ["id" => $marketplace->getId(),"label" => $marketplace->getLabel(),"name" => $marketplace->getName(),"logo" => $marketplace->getLogo(),"status" => $marketplace->getStatus(),
in
vendor/symfony/http-kernel/HttpKernel.php
->
getMarketplaces
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/var/www/vhosts/dev.gepreco.fr/httpdocs/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 10:29:42 | deprecation |
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 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\ParameterValidator" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\ArrayItems" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Bounds" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Enum" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Length" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\MultipleOf" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Pattern" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
User Deprecated: Since api-platform/core 3.4: The class "ApiPlatform\ParameterValidator\Validator\Required" is deprecated, use "\ApiPlatform\Metadata\Parameter::$constraints" instead. {
"exception": {}
}
|
| INFO 10:29:42 | deprecation |
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 10:29:42 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://dev.gepreco.fr/_profiler/latest?type=request",
"method": "GET"
}
|
Stack Trace
|
Error
|
|---|
Error:
Call to a member function getId() on null
at src/Controller/API/Marketplace/ApiLengowController.php:119
at App\Controller\API\Marketplace\ApiLengowController->App\Controller\API\Marketplace\{closure}()
at array_map()
(src/Controller/API/Marketplace/ApiLengowController.php:109)
at App\Controller\API\Marketplace\ApiLengowController->getMarketplaces()
(vendor/symfony/http-kernel/HttpKernel.php:183)
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:182)
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('/var/www/vhosts/dev.gepreco.fr/httpdocs/vendor/autoload_runtime.php')
(public/index.php:5)
|