Applying the new SUPEE-7405 patch to Magento 1.7.0.2 (and probably other versions) results in a parse error in the sales order view page (admin/sales_order/view/order_id) if the site is running under PHP5.3. Here’s the error message:
1 2 |
PHP message: PHP Parse error: syntax error, unexpected '[' in /app/code/core/Mage/Adminhtml/Helper/Sales.php on line 124 |
The offending line is:
1 |
$links = []; |
it can be changed to:
1 |
$links = array(); |
PHP 5.3 does not support the “[]” syntax for array initialization. Of course you should not be running PHP 5.3!