[英]Blank screen when attempting to view an order after magento upgrade 1.9.1
从magento 1.7转到magento 1.9.1之后,出现了此错误。
最初,它是空白页。 我启用了显示错误,我得到了:
致命错误:第119行上的/var/www/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php中的未定义类常量'ACTION_FLAG_PRODUCTS_PERMISSION_DENIED'
public function viewAction()
{
$this->_title($this->__('Sales'))->_title($this->__('Orders'));
$order = $this->_initOrder();
if ($order) {
$isActionsNotPermitted = $order->getActionFlag(
Mage_Sales_Model_Order::ACTION_FLAG_PRODUCTS_PERMISSION_DENIED
);
if ($isActionsNotPermitted) {
$this->_getSession()->addError($this->__('You don\'t have permissions to manage this order because of one or more products are not permitted for your website.'));
}
$this->_initAction();
$this->_title(sprintf("#%s", $order->getRealOrderId()));
$this->renderLayout();
}
}
我正在使用php 5.3。 我更改了文件夹权限,但是按照其他建议,它不起作用。
上线之前:
$this->renderLayout();
您应该使用以下函数调用来加载布局:
$this->loadLayout();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.