Magento - order details are not displayed in the a

2020-04-11 18:58发布

问题:

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 are displayed in the order details page of magento admin, though the mail is correctly sent to the client and cc'd to our email id.

Screenshot for admin order details page :-

Screenshot for email containing order details :-

Why is this happening ?? I tried to check the pattern but was unable to. Please help me on this issue as i am not a pro in magento and any help from your side will do the work for me.

回答1:

More than likely you have a local or community module causing some kinds of fault, if the page is not rendering all the way for some orders, I would presume these are orders that are using this local and/or community module.

A few things you can try are:

1) disable all local modules via local.xml

2) disable community modules via app/etc/Company_Modulename.xml and set active to false

after disabling each retry viewing the orders until you find the culprit.

Also, viewing the page source may help lead to where the output is stopping and there also may be errors at the very end of the page source.

hope this helps.



回答2:

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);


回答3:

I solved this problem when I replace the tax.phtml file in

app/design/adminhtml/default/default/template/sales/order/totals

with my original file. Try it.



回答4:

I disabled all plugins. It seemed that the apptha one step checkout plugin was responsible for this in my case.



回答5:

I believe that this issue is due to default Magento, as the files does not point to any third party checkout extensions.



回答6:

If the SUPEE-7405 patch has caused this, please check that your system does not run on PHP 5.3.

The patch breaks PHP 5.3 compatibility, by introducing usage of array literals in app/code/core/Mage/Adminhtml/Helper/Sales.php (line 124), which became available in PHP since version 5.4, so the minimum PHP version required, after applying it, is PHP 5.4:

// patched app/code/core/Mage/Adminhtml/Helper/Sales.php lines 121-124
public function escapeHtmlWithLinks($data, $allowedTags = null)
{
    if (!empty($data) && is_array($allowedTags) && in_array('a', $allowedTags)) {
        $links = [];

To fix this, and restore PHP 5.3 compatibility (allowing orders to show up again in admin screens), simply correct this with old PHP5.3 equivalent:

// patched and fixed app/code/core/Mage/Adminhtml/Helper/Sales.php lines 121-124
public function escapeHtmlWithLinks($data, $allowedTags = null)
{
    if (!empty($data) && is_array($allowedTags) && in_array('a', $allowedTags)) {
        $links = array();


回答7:

Change PHP 5.3 to 5.6 on your Server , logout and in . Resfresh you Cache. It will be run. For the Version 1.9.2.3 magento.



标签: magento