Exceptions
Exception
TypeError
in
src/Entity/Reclamation.php
(line 264)
public function getQuotation(): ?string {return $this->quotation;}public function setQuotation(string $quotation): static {$this->quotation = $quotation;return $this;}
dump('[envoyerFichiers] écriture quotation', 'legacy_files/'.$filepath.$datas['quotation']['filename']);$fs->write('legacy_files/'.$filepath.$datas['quotation']['filename'], $b64Content);$datas['quotation'] = $filepath.$datas['quotation']['filename'];}dump('[envoyerFichiers] quotation finale', $datas['quotation']);$reclamation->setQuotation($datas['quotation']);}if (!empty($datas['invoice'])) {if (is_array($datas['invoice']) && !empty($datas['invoice']['base64'])) {$b64Content = base64_decode($datas['invoice']['base64']);dump('[envoyerFichiers] écriture invoice', 'legacy_files/'.$filepath.$datas['invoice']['filename']);
if (isset($formData['client_comment'])) {$reclamation->setClientComment($formData['client_comment']);}// Upload et set des fichiers joints$this->envoyerFichiers($reclamation, $formData);}$reclamation->setModdate(new \DateTime());if ($statutPrecedent) {if ($reclamation->getStatus() != $statutPrecedent) {
ReclamationService->enregistrer()
in
legacy/application/modules/idev_sav/controllers/idev_reclamation.php
(line 918)
'chassis_photos' => array_map(fn($p) => is_array($p) ? array_merge($p, ['base64' => substr($p['base64'] ?? '', 0, 30).'...']) : $p, (array)$datas['chassis_photos']),'mileage_photos' => array_map(fn($p) => is_array($p) ? array_merge($p, ['base64' => substr($p['base64'] ?? '', 0, 30).'...']) : $p, (array)$datas['mileage_photos']),'quotation' => is_array($datas['quotation']) ? array_merge($datas['quotation'], ['base64' => substr($datas['quotation']['base64'] ?? '', 0, 30).'...']) : $datas['quotation'],'delivery_form' => is_array($datas['delivery_form']) ? array_merge($datas['delivery_form'], ['base64' => substr($datas['delivery_form']['base64'] ?? '', 0, 30).'...']) : $datas['delivery_form'],]));$retour = $reclamationService->enregistrer($datas);dump('[ws_create_reclamation] retour enregistrer', $retour);if ($datas['status'] === RECLAMATION_STATUS_RECEIVED) {$reclamation = $reclamationService->detail($retour['uid']);$reclamationService->envoyerAuCommercial($reclamation);}
$method = 'unallowed_action';}}}call_user_func_array(array($this, $method), $params);}}public function set_default_assets() {$default_assets = array(
* ------------------------------------------------------*/// Is there a "remap" function? If so, we call it insteadif (method_exists($CI, '_remap')){$CI->_remap($method, array_slice($URI->rsegments, 2));}else{// is_callable() returns TRUE on some versions of PHP 5 for private and protected// methods, so we'll use this workaround for consistent behavior
* --------------------------------------------------------------------** And away we go...**/require_once BASEPATH.'core/CodeIgniter.php';/* End of file index.php *//* Location: ./index.php */
'mail_port' => $_ENV['mail_port'] ?? getenv('mail_port'),];$legacyIndex = __DIR__.'/../../legacy/index.php';chdir(dirname($legacyIndex));require $legacyIndex;$htmlCi = ob_get_clean();preg_match('@<h1 class="main-section-title">(?s:.+)<\/h1>@', $htmlCi, $titre);if (!empty($titre)) {$titre = trim(strip_tags($titre[0]));
in
vendor/symfony/http-kernel/HttpKernel.php
->
legacy_controller
(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 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return fn(array $context) => new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 17:34:53 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://crm.home-arnrso.com/_profiler/latest?ip=216.73.216.191&type=request",
"method": "GET"
}
|
Stack Trace
|
TypeError
|
|---|
TypeError:
App\Entity\Reclamation::setQuotation(): Argument #1 ($quotation) must be of type string, array given, called in /app/src/Service/ReclamationService.php on line 389
at src/Entity/Reclamation.php:264
at App\Entity\Reclamation->setQuotation()
(src/Service/ReclamationService.php:389)
at App\Service\ReclamationService->envoyerFichiers()
(src/Service/ReclamationService.php:307)
at App\Service\ReclamationService->enregistrer()
(legacy/application/modules/idev_sav/controllers/idev_reclamation.php:918)
at idev_reclamation->ws_create_reclamation()
(legacy/application/core/MY_Controller.php:198)
at MY_Controller->_remap()
(legacy/system/core/CodeIgniter.php:336)
at require_once('/app/legacy/system/core/CodeIgniter.php')
(legacy/index.php:232)
at require('/app/legacy/index.php')
(src/Controller/LegacyBridgeController.php:53)
at App\Controller\LegacyBridgeController->legacy_controller()
(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:32)
at require_once('/app/vendor/autoload_runtime.php')
(public/index.php:5)
|