Magento – magento order view information is blank page
magento-1.7
when I click order view in admin panel, the information is blank page.Anyone can help me out?? Thanks a lot.
Best Answer
I had the same issue, after checking the error log I noticed a PHP Parse error: syntax error, unexpected '['..... so check /app/code/core/Mage/Adminhtml/Helper/Sales.php line 121. Near:
public function escapeHtmlWithLinks($data, $allowedTags = null)
{
if (!empty($data) && is_array($allowedTags) && in_array('a', $allowedTags)) {
$links = [];
Go to template/sales/order/view/info.phtml and add:
<?php echo $this->getChildHtml('modulename');?>
in the place where you want your block to be displayed. The point here is that only blocks of type core/text_list (or derivates) will list all their child blocks html. The other blocks need to ouput them using getChildHtml
Best Answer
I had the same issue, after checking the error log I noticed a PHP Parse error: syntax error, unexpected '['..... so check /app/code/core/Mage/Adminhtml/Helper/Sales.php line 121. Near:
Change $links = []; to $links = array();
That did it for me, Cheers