Am working on a custom module for managing admin users in a custom role. Just finished the grid section. I need to edit the listed users, also a add form.

I just tried by overriding the


but getting the following error.

Fatal error: Call to a member function setData() on boolean in C:\xampp56\htdocs\magento\app\code\core\Mage\Adminhtml\controllers\Permissions\UserController.php on line 94

Any help will be appreciated. Thanks in advance.

  • The error says that the object on which you call setData does not exist (most likely there is a function returning that variable and the return value is false). Whithout sharing the complete controller code it will be difficult to help you :-)
    – HelgeB
    Apr 9, 2019 at 9:29

1 Answer 1


I faced similar issue when I upgraded from Magento to Magento

I had override admin.xml (app\design\adminhtml\default\default\layout\admin.xml) file.

In the override file after adding following code the issue was fixed.

<!-- admin acl users edit page -->
    <reference name="left">
        <block type="adminhtml/permissions_user_edit_tabs" name="adminhtml.permissions.user.edit.tabs"/>
    <reference name="content">
        <block type="adminhtml/permissions_user_edit" name="adminhtml.permissions.user.edit"/>
    <reference name="js">
        <block type="adminhtml/template" name="adminhtml.permissions.user.roles.grid.js" template="permissions/user_roles_grid_js.phtml"/>
<!-- admin permissions block edit page -->
    <reference name="content">
        <block type="adminhtml/permissions_block_edit" name="adminhtml.permissions.block.edit"/>
<!-- admin permissions variable edit page -->
    <reference name="content">
        <block type="adminhtml/permissions_variable_edit" name="adminhtml.permissions.variable.edit"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.