Magento backend order view broken (PHP syntax error after SUPEE-7405 : unexpected [ )TheWebsiteGuy
Recently I came across an issue after upgrading a client site to Magento CE 220.127.116.11 which includes the recent SUPEE-7405 security patch.
When trying to view the details of an individual order you would get a white page body with no details or data shown. Upon inspecting the source the following error was shown;
PHP Parse error: syntax error, unexpected ‘[‘ in app/code/core/Mage/Adminhtml/Helper/Sales.php on line 124
SUPEE-7405 was coded with PHP 5.4 in mind, older PHP versions are incompatible with the new language constructions used.
Change line 124 in app/code/core/Mage/Adminhtml/Helper/Sales.php from $links = ; to $links = array();