I am trying to add my own module to the admin in version 1.x but I'm getting the blank page when I try to open the module

This is what I have managed to achieve so far;

  1. My module appears as a menu item within the admin
  2. When I click the link the controller/action fires but when I try to add the content and create the block I get a blank page.

My controller is as follows:


public function editAction() {  

    echo "We got here...";




I have the following block setup:


class Foobar_Storelocator_Block_Adminhtml_Store_Edit extends Mage_Adminhtml_Block_Widget_Form_Container 

   public function __construct() {

        echo "____________";exit;




My config.xml:



                        <storelocator before="Mage_Adminhtml">Foobar_Storelocator_Adminhtml</storelocator>



It seems that the construct of the block isn't reached. I've spent a day checking my class names and folder structure over and over and the server logs have not revealed anything.

Any suggestions or help would be greatly appreciated.

  • 1
    can you add the config.xml of your module also to the question?
    – Marius
    Commented Aug 9, 2017 at 10:42
  • @Marius as requested I've updated the question with my admin config.xml nodes
    – Alan A
    Commented Aug 9, 2017 at 11:07
  • 1
    how does the <blocks> tag look in your config.xml ?
    – Marius
    Commented Aug 9, 2017 at 11:13
  • I was missing my block declation so of course my blocks were lost! I added them to the config.xml and I now at least do not see the blank page!
    – Alan A
    Commented Aug 9, 2017 at 11:25
  • I thinks you can you use this website to create own extension in magento. inchoo.net/magento/…
    – Jinesh
    Commented Aug 9, 2017 at 13:01

1 Answer 1


So the reason I was experiencing the issue was I was missing a <blocks> declaration in my config.xml. This is pretty obvious when you think about it but as a newbie who didn't set up a block in my previous module, I was missing some knowledge. Thanks to Marius who pointed me in the right direction.

Hopefully, this might save someone else suffering in pain with this issue!

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.