Jump to content

PS 8.0.0.0 error op openen order in backoffice


Recommended Posts

Als ik een order wil openen in de backoffice van PS 8.0.0.0 op PHP 8, krijg ik de volgende foutmelding:

An exception has been thrown during the rendering of a template ("Warning: Undefined property: Order::$shipping_number").

Exceptions 3

Logs 2

Stack Traces 3

Twig\Error\RuntimeError

in src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig (line 90)

    {% if orderForViewing.linkedOrders.linkedOrders is not empty %}

      {% include '@PrestaShop/Admin/Sell/Order/Order/Blocks/View/linked_orders.html.twig' %}

    {% endif %}

    {{ renderhook('displayAdminOrder', {'id_order': orderForViewing.id}) }}

    {% include '@PrestaShop/Admin/Sell/Order/Order/Blocks/View/Modal/add_order_discount_modal.html.twig' %}

    {% include '@PrestaShop/Admin/Sell/Order/Order/Blocks/View/Modal/update_shipping_modal.html.twig' %}

    {% if orderForViewing.customer is not null and orderForViewing.customer.id != 0 %}

      {% include '@PrestaShop/Admin/Sell/Order/Order/Blocks/View/Modal/update_customer_address_modal.html.twig' %}

in var/cache/dev/twig/0c/0cd10c534b3ce5b6f8a37a4af62b6dec54ea068aee53e0e7d7a8cd8336fb0aed.php -> displayBlock (line 1374)

in vendor/twig/twig/src/Template.php -> doDisplay (line 394)

in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)

in vendor/twig/twig/src/TemplateWrapper.php -> display (line 47)

in var/cache/dev/twig/3e/3ebdfd126816ac427ac7270bbdd729d871514bc9116d14b3351ca09fa2c0564b.php -> display (line 63)

in vendor/twig/twig/src/Template.php -> doDisplay (line 394)

in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)

in var/cache/dev/twig/65/652890cd7d5154e89048a54e7a10f1ddc86e08a7e8aca7783adcd5ec1fa9a623.php -> display (line 62)

in vendor/twig/twig/src/Template.php -> doDisplay (line 394)

in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)

in vendor/twig/twig/src/Template.php -> display (line 379)

in vendor/twig/twig/src/TemplateWrapper.php -> render (line 40)

in vendor/twig/twig/src/Environment.php -> render (line 277)

in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php -> render (line 235)

AbstractController->render('@PrestaShop/Admin/Sell/Order/Order/view.html.twig', array('showContentHeader' => true, 'enableSidebar' => true, 'orderCurrency' => object(Currency), 'meta_title' => 'Bestellingen > Bestellingen MHBKFUDGL van naam achternaam, 'help_link' => '/admin/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop-project.org%252Fnl%252Fdoc%252FAdminOrders%253Fversion%253D8.0.0%2526country%253Dnl/Help?_token=FHaQh1pgmaPfZ4R7_1X395mrkqSJPKhQ-2i5u1Loz3o', 'orderForViewing' => object(OrderForViewing), 'addOrderCartRuleForm' => object(FormView), 'updateOrderStatusForm' => object(FormView), 'updateOrderStatusActionBarForm' => object(FormView), 'addOrderPaymentForm' => object(FormView), 'changeOrderCurrencyForm' => object(FormView), 'privateNoteForm' => object(FormView), 'updateOrderShippingForm' => object(FormView), 'cancelProductForm' => object(FormView), 'invoiceManagementIsEnabled' => true, 'changeOrderAddressForm' => object(FormView), 'orderMessageForm' => object(FormView), 'addProductRowForm' => object(FormView), 'editProductRowForm' => object(FormView), 'backOfficeOrderButtons' => object(ActionsBarButtonsCollection), 'merchandiseReturnEnabled' => false, 'priceSpecification' => array('currencyCode' => 'EUR', 'currencySymbol' => '€', 'numberSymbols' => array(',', '.', ';', '%', '-', '+', 'E', '×', '‰', '∞', 'NaN'), 'positivePattern' => '¤ #,##0.00', 'negativePattern' => '¤ -#,##0.00', 'maxFractionDigits' => 2, 'minFractionDigits' => 2, 'groupingUsed' => true, 'primaryGroupSize' => 3, 'secondaryGroupSize' => 3), 'previousOrderId' => 423, 'nextOrderId' => 0, 'paginationNum' => 8, 'paginationNumOptions' => array(8, 20, 50, 100), 'isAvailableQuantityDisplayed' => true, 'internalNoteForm' => object(FormView)))in src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php (line 575)

in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> viewAction (line 158)

in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> handleRaw (line 80)

in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php -> handle (line 201)

Kernel->handle(object(Request), 1, false)in admin/index.php (line 81)

PrestaShop\PrestaShop\Core\Exception\CoreException

Warning: Undefined property: Order::$shipping_number

in classes/Hook.php (line 420)

                }

            }

        } catch (Exception $e) {

            $environment = ServiceLocator::get('\\PrestaShop\\PrestaShop\\Adapter\\Environment');

            if ($environment->isDebug()) {

                throw new CoreException($e->getMessage(), $e->getCode(), $e);

            }

        }

        return '';

    }

HookCore::callHookOn(object(Mollie), 'displayAdminOrder', array('_ps_version' => '8.0.0', 'request' => object(Request), 'route' => 'admin_orders_view', 'id_order' => 424, 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in classes/Hook.php (line 903)

HookCore::exec('displayAdminOrder', array('_ps_version' => '8.0.0', 'request' => object(Request), 'route' => 'admin_orders_view', 'id_order' => 424, 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), 88, true)in src/Adapter/LegacyHookSubscriber.php (line 127)

LegacyHookSubscriber->__call('call_37_88', array(object(RenderingHookEvent), 'displayAdminOrder', null))in src/Adapter/Hook/HookDispatcher.php (line 135)

HookDispatcher->doDispatch(array(array(object(LegacyHookSubscriber), 'call_37_43'), array(object(LegacyHookSubscriber), 'call_37_88'), array(object(LegacyHookSubscriber), 'call_37_85')), 'displayAdminOrder', object(RenderingHookEvent))in src/Adapter/Hook/HookDispatcher.php (line 88)

HookDispatcher->dispatch('displayAdminOrder', object(RenderingHookEvent))in src/Adapter/Hook/HookDispatcher.php (line 184)

HookDispatcher->renderForParameters('displayAdminOrder', array('id_order' => 424))in src/Core/Hook/HookDispatcher.php (line 77)

HookDispatcher->dispatchRendering(object(Hook))in src/Core/Hook/HookDispatcher.php (line 93)

HookDispatcher->dispatchRenderingWithParameters('displayAdminOrder', array('id_order' => 424))in src/PrestaShopBundle/Twig/HookExtension.php (line 168)

in var/cache/dev/twig/65/652890cd7d5154e89048a54e7a10f1ddc86e08a7e8aca7783adcd5ec1fa9a623.php -> renderHook (line 221)

in vendor/twig/twig/src/Template.php -> block_content (line 171)

in var/cache/dev/twig/0c/0cd10c534b3ce5b6f8a37a4af62b6dec54ea068aee53e0e7d7a8cd8336fb0aed.php -> displayBlock (line 1374)

in vendor/twig/twig/src/Template.php -> doDisplay (line 394)

in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)

in vendor/twig/twig/src/TemplateWrapper.php -> display (line 47)

in var/cache/dev/twig/3e/3ebdfd126816ac427ac7270bbdd729d871514bc9116d14b3351ca09fa2c0564b.php -> display (line 63)

in vendor/twig/twig/src/Template.php -> doDisplay (line 394)

in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)

in var/cache/dev/twig/65/652890cd7d5154e89048a54e7a10f1ddc86e08a7e8aca7783adcd5ec1fa9a623.php -> display (line 62)

in vendor/twig/twig/src/Template.php -> doDisplay (line 394)

in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)

in vendor/twig/twig/src/Template.php -> display (line 379)

in vendor/twig/twig/src/TemplateWrapper.php -> render (line 40)

in vendor/twig/twig/src/Environment.php -> render (line 277)

in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php -> render (line 235)

AbstractController->render('@PrestaShop/Admin/Sell/Order/Order/view.html.twig', array('showContentHeader' => true, 'enableSidebar' => true, 'orderCurrency' => object(Currency), 'meta_title' => 'Bestellingen > Bestellingen MHBKFUDGL van naam achternaam', 'help_link' => '/admin/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop-project.org%252Fnl%252Fdoc%252FAdminOrders%253Fversion%253D8.0.0%2526country%253Dnl/Help?_token=FHaQh1pgmaPfZ4R7_1X395mrkqSJPKhQ-2i5u1Loz3o', 'orderForViewing' => object(OrderForViewing), 'addOrderCartRuleForm' => object(FormView), 'updateOrderStatusForm' => object(FormView), 'updateOrderStatusActionBarForm' => object(FormView), 'addOrderPaymentForm' => object(FormView), 'changeOrderCurrencyForm' => object(FormView), 'privateNoteForm' => object(FormView), 'updateOrderShippingForm' => object(FormView), 'cancelProductForm' => object(FormView), 'invoiceManagementIsEnabled' => true, 'changeOrderAddressForm' => object(FormView), 'orderMessageForm' => object(FormView), 'addProductRowForm' => object(FormView), 'editProductRowForm' => object(FormView), 'backOfficeOrderButtons' => object(ActionsBarButtonsCollection), 'merchandiseReturnEnabled' => false, 'priceSpecification' => array('currencyCode' => 'EUR', 'currencySymbol' => '€', 'numberSymbols' => array(',', '.', ';', '%', '-', '+', 'E', '×', '‰', '∞', 'NaN'), 'positivePattern' => '¤ #,##0.00', 'negativePattern' => '¤ -#,##0.00', 'maxFractionDigits' => 2, 'minFractionDigits' => 2, 'groupingUsed' => true, 'primaryGroupSize' => 3, 'secondaryGroupSize' => 3), 'previousOrderId' => 423, 'nextOrderId' => 0, 'paginationNum' => 8, 'paginationNumOptions' => array(8, 20, 50, 100), 'isAvailableQuantityDisplayed' => true, 'internalNoteForm' => object(FormView)))in src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php (line 575)

in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> viewAction (line 158)

in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> handleRaw (line 80)

in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php -> handle (line 201)

Kernel->handle(object(Request), 1, false)in admin/index.php (line 81)

ErrorException

Warning: Undefined property: Order::$shipping_number

Link to comment
Share on other sites

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...