Magento: Fatal error: Call to a member function setData() on a non-object
升级Magento 到1.7之后,想在后天添加一个用户System->Permissions -> Users -> Add new user
点击后提示错误
Fatal error: Call to a member function setData() on a non-object in /app/code/core/Mage/Adminhtml/controllers/Permissions/UserController.php on line 93
[code]
if (isset($id)) { $breadcrumb = $this->__(‘Edit User’); } else { $breadcrumb = $this->__(‘New User’); } $this->_initAction() ->_addBreadcrumb($breadcrumb, $breadcrumb);
$this->getLayout()->getBlock(‘adminhtml.permissions.user.edit’) ->setData(‘action’, $this->getUrl(’*/permissions_user/save’));
[/code]
恢复到1.6的代码,即可运行