Jump to content

Cannot access orders -


bmcarvalho

Recommended Posts

 

Good morning 

Prestashop stopped working today cannot access some of the orders 

prestasho 1.7.8.8

PHP : 7.4.33

when in debug mode also have a second warning when log in (in the end)

..................................................

 

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,

 

 

........................................................................................................

 

INFO09:57:36requestMatched route "admin_orders_view".

DEBUG09:57:36securityRead existing security token from the session.

DEBUG09:57:36securityUser was reloaded from a user provider.

INFO09:57:36phpUser Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0

INFO09:57:36phpUser Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0

INFO09:57:36phpUser Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0

INFO09:57:36phpUser Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0

INFO09:57:36phpUser Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0

INFO09:57:36phpUser Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.

INFO09:57:36phpUser Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0

INFO09:57:36phpUser Deprecated: PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderInvoiceAddressForViewing is deprecated since version 1.7.7.5 and will be removed in the next major version. Use PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderForViewing::getInvoiceAddressFormatted() instead.

INFO09:57:36phpUser Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0

INFO09:57:36phpUser Deprecated: PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderInvoiceAddressForViewing is deprecated since version 1.7.7.5 and will be removed in the next major version. Use PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderForViewing::getShippingAddressFormatted() instead.

CRITICAL09:57:36phpType 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

INFO09:57:36phpUser Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector".

CRITICAL09:57:36requestUncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "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" at /home/osotaoda/public_html/src/Core/Domain/Order/QueryResult/OrderStatusForViewing.php line 83

 

 

when in debug mode also have a seconde warning when log in

 

 

Notice na linha 300 do ficheiro /home/osotaoda/public_html/classes/module/Module.php
[8] Trying to access array offset on value of type null

Notice na linha 304 do ficheiro /home/osotaoda/public_html/classes/module/Module.php
[8] Trying to access array offset on value of type null

Notice na linha 308 do ficheiro /home/osotaoda/public_html/classes/module/Module.php
[8] Trying to access array offset on value of type null

Notice na linha 312 do ficheiro /home/osotaoda/public_html/classes/module/Module.php
[8] Trying to access array offset on value of type null

 

 

/**
     * Constructor.
     *
     * @param string $name Module unique name
     * @param Context $context
     */
    public function __construct($name = null, Context $context = null)
    {
        if (isset($this->ps_versions_compliancy) && !isset($this->ps_versions_compliancy['min'])) {
            $this->ps_versions_compliancy['min'] = '1.4.0.0';
        }

        if (isset($this->ps_versions_compliancy) && !isset($this->ps_versions_compliancy['max'])) {
            $this->ps_versions_compliancy['max'] = _PS_VERSION_;
        }

        if (strlen($this->ps_versions_compliancy['min']) == 3) {
            $this->ps_versions_compliancy['min'] .= '.0.0';
        }

        if (strlen($this->ps_versions_compliancy['min']) == 5) {
            $this->ps_versions_compliancy['min'] .= '.0';
        }

        if (strlen($this->ps_versions_compliancy['max']) == 5) {
            $this->ps_versions_compliancy['max'] .= '.999';
        }

        if (strlen($this->ps_versions_compliancy['max']) == 3) {
            $this->ps_versions_compliancy['max'] .= '.999.999';
        }

Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...