I'm new to Magento. Have developed a custom module which enables to comment on products on product view page. Now I need to create a grid on the backend and display those comments there. I used this article for the grid part, except that my database table has more fields.

I created files according to the article for the grid

Here is the layout file .....\app\design\adminhtml\default\default\layout\adminproductcomments.xml

<?xml version="1.0"?>
<layout version="0.1.0">
        <reference name="content">
            <block type="cpstest_productcomments/adminhtml_productcomments" name="cpstest_productcomments_productcomments" />

1 Answer 1


Please put your adminhtml xml file in proper folder and check it again.

Here is the layout file .....\app\design\adminhtml\default\default\layout\cptest\productcomments\adminproductcomments.xml

seems like your adminhtml file is not being called.

You are new in magento so I suggest you to create module using module creator with same NameSpace and Module Name and then compare it with one you created. That's how you learn from your mistakes as well.

See below link to create module.


Thanks. Hope it helps.

  • Thanks so much for your reply, but I made that change and the error is still there. I will try to fix it by comparing with a working version like you suggested. Commented Mar 15, 2017 at 20:07

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.