CHanged PHP verision to ALT_7.3.33 and the second issue is now gone
but regarding some of the orders still no improvement
CHanged PHP verision to ALT_7.3.33 and the second issue is now gone
but regarding some of the orders still no improvement
CHanged PHP verision to ALT_7.3.33 and the second issue is now gone
but regarding some of the orders still no improvement
CHanged PHP verision to ALT_7.3.33 and the second issue is now gone
but regarding some of the ordders still no improvment
Type error: Argument 3 passed to PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderStatusForViewing::__construct() must be of the type string, null given, called in /home/osotaoda/public_html/src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php on line 367
Exception
Logs 2
Stack Trace
Symfony\Component\Debug\Exception\FatalThrowableError
in src/Core/Domain/Order/QueryResult/OrderStatusForViewing.php (line 83)
* @param DateTimeImmutable $createdAt
* @param bool $withEmail
* @param string|null $employeeFirstName
* @param string|null $employeeLastName
*/
public function __construct(
int $orderHistoryId,
int $orderStatusId,
string $name,
string $color,
DateTimeImmutable $createdAt,
OrderStatusForViewing->__construct(11602, 40, null, null, object(DateTimeImmutable), false, null, null)in src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php (line 367)
$item['ostate_name'],
$item['color'],
new DateTimeImmutable($item['date_add']),
(bool) $item['send_email'],
$item['employee_firstname'],
$item['employee_lastname']
);
}
return new OrderHistoryForViewing(
$order->current_state,
GetOrderForViewingHandler->getOrderHistory(object(Order))in src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php (line 213)
new DateTimeImmutable($order->date_add),
$this->getOrderCustomer($order, $orderInvoiceAddress),
$this->getOrderShippingAddress($order),
$orderInvoiceAddress,
$this->getOrderProducts($query->getOrderId(), $query->getProductsSorting()->getValue()),
$this->getOrderHistory($order),
$this->getOrderDocuments($order),
$this->getOrderShipping($order),
$this->getOrderReturns($order),
$this->getOrderPayments($order),
$this->getOrderMessages($order),
GetOrderForViewingHandler->handle(object(GetOrderForViewing))in vendor/league/tactician/src/Handler/CommandHandlerMiddleware.php (line 71)
$command,
"Method '{$methodName}' does not exist on handler"
);
}
return $handler->{$methodName}($command);
}
}
CommandHandlerMiddleware->execute(object(GetOrderForViewing), object(Closure))in vendor/league/tactician/src/CommandBus.php (line 62)
if (! $middleware instanceof Middleware) {
throw InvalidMiddlewareException::forMiddleware($middleware);
}
$lastCallable = function ($command) use ($middleware, $lastCallable) {
return $middleware->execute($command, $lastCallable);
};
}
return $lastCallable;
}
CommandBus->League\Tactician\{closure}(object(GetOrderForViewing))in src/Core/CommandBus/Middleware/CommandRegisterMiddleware.php (line 79)
$commandName = $this->commandNameExtractor->extract($command);
$handler = $this->handlerLocator->getHandlerForCommand($commandName);
$this->executedCommandRegistry->register($command, $handler);
return $next($command);
}
}
CommandRegisterMiddleware->execute(object(GetOrderForViewing), object(Closure))in vendor/league/tactician/src/CommandBus.php (line 62)
if (! $middleware instanceof Middleware) {
throw InvalidMiddlewareException::forMiddleware($middleware);
}
$lastCallable = function ($command) use ($middleware, $lastCallable) {
return $middleware->execute($command, $lastCallable);
};
}
return $lastCallable;
}
CommandBus->League\Tactician\{closure}(object(GetOrderForViewing))in vendor/league/tactician/src/CommandBus.php (line 42)
if (!is_object($command)) {
throw InvalidCommandException::forUnknownValue($command);
}
$middlewareChain = $this->middlewareChain;
return $middlewareChain($command);
}
/**
* @param Middleware[] $middlewareList
*
CommandBus->handle(object(GetOrderForViewing))in src/Core/CommandBus/TacticianCommandBusAdapter.php (line 54)
/**
* {@inheritdoc}
*/
public function handle($command)
{
return $this->bus->handle($command);
}
}
TacticianCommandBusAdapter->handle(object(GetOrderForViewing))in src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php (line 421)
*/
public function viewAction(int $orderId, Request $request): Response
{
try {
/** @var OrderForViewing $orderForViewing */
$orderForViewing = $this->getQueryBus()->handle(new GetOrderForViewing($orderId, QuerySorting::DESC));
} catch (OrderException $e) {
$this->addFlash('error', $this->getErrorMessageForException($e, $this->getErrorMessages($e)));
return $this->redirectToRoute('admin_orders_index');
}
OrderController->viewAction(2842, object(Request))in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
HttpKernel->handleRaw(object(Request), 1)in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
HttpKernel->handle(object(Request), 1, false)in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Kernel->handle(object(Request), 1, false)in adminfolder/index.php (line 82)
$request = Request::createFromGlobals();
Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_ALL);
try {
require_once __DIR__.'/../autoload.php';
$response = $kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, false);
$response->send();
$kernel->terminate($request, $response);
} catch (NotFoundHttpException $exception) {
define('ADMIN_LEGACY_CONTEXT', true);
// correct Apache charset (except if it's too late)