Magento - order details are not displayed in the admin panel

后端 未结 7 1242

We have an ecommerce magento store. Right now, we are experiencing a weird problem, which i am unable to understand and debug.

For some of the orders, no details ar

7条回答
  •  清酒与你
    2021-01-20 02:21

    Try also this, it worked for me (from https://magentary.com/kb/php-syntax-error-after-supee-7405-unexpected/):

    Problem description

    After SUPEE-7405 patch Sales Order Management screen in Magento Backend is blank or the following error is reported in PHP error log:

    PHP Parse error: syntax error, unexpected '[' in app/code/core/Mage/Adminhtml/Helper/Sales.php on line 124

    Cause

    SUPEE-7405 is prepared with PHP 5.4 in mind, older PHP versions are incompatible with new language constructions used.

    Solution

    Change line 124 in app/code/core/Mage/Adminhtml/Helper/Sales.php from $links = []; to $links = array();:

    --- app/code/core/Mage/Adminhtml/Helper/Sales.php
    +++ app/code/core/Mage/Adminhtml/Helper/Sales.php
    
    @@ -121,7 +121,7 @@
         public function escapeHtmlWithLinks($data, $allowedTags = null)
         {
             if (!empty($data) && is_array($allowedTags) && in_array('a', $allowedTags)) {
    -            $links = [];
    +            $links = array();
                 $i = 1;
                 $data = str_replace('%', '%%', $data);
    

提交回复
热议问题