Jump to content

Edit History

Alien(PL)

Alien(PL)

When store is in Debug Mode ON i get an error when try to access Order history form user panel.

1971668851_Zrzutekranu2020-12-15o20_32_53.thumb.png.58ffc3fdfb610c84692c1faef79995a8.png

 

Code in the Oder.php is:

        foreach ($res as $key => $val) {
            $res[$key]['order_state'] = $indexedOrderStates[$val['id_order_state']]['name'];
            $res[$key]['invoice'] = $indexedOrderStates[$val['id_order_state']]['invoice'];
            $res[$key]['order_state_color'] = $indexedOrderStates[$val['id_order_state']]['color'];
        }

When i turn off the debug mode i can list orders but when i click "Order details" i get the page with no data about the order and no errors.

 

HistoryController.php line 72

        $customer_orders = Order::getCustomerOrders($this->context->customer->id);

HistoryController.php line 55

$orders = $this->getTemplateVarOrders();

in Controller.php line 292

			if ($this->viewAccess()) {
292:            $this->initContent();
            } else {
                $this->errors[] = $this->trans('Access denied.', array(), 'Admin.Notifications.Error');
            }

in Dispatcher.php line 515

	if (isset($params_hook_action_dispatcher)) {
                Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
            }

 

Alien(PL)

Alien(PL)

When store is in Debug Mode ON i get an error when try to access Order history form user panel.

1971668851_Zrzutekranu2020-12-15o20_32_53.thumb.png.58ffc3fdfb610c84692c1faef79995a8.png

 

Code in the Oder.php is:

        foreach ($res as $key => $val) {
            $res[$key]['order_state'] = $indexedOrderStates[$val['id_order_state']]['name'];
            $res[$key]['invoice'] = $indexedOrderStates[$val['id_order_state']]['invoice'];
            $res[$key]['order_state_color'] = $indexedOrderStates[$val['id_order_state']]['color'];
        }

When i turn off the debug mode i can list orders but when i click "Order details" i get the page with no data about the order and no errors.

 

×
×
  • Create New...