Magento 1.9 – Fix Custom Module Block Not Showing on CMS Page

blockscmsmagento-1.9modulephtml

I created a module with a simple phtml file.
Then i created a CMS page, and in the design tab a added this code:

<reference name="content">
 <block type="oproduct_export/infoshow" name="block"  template="oproduct_export/export.phtml" />
 </reference>

and also this:

{{block type="oproduct_export/infoshow " name="custom" template="oproduct_export/export.phtml"}} 

export.phtml it's in the right place.
What it's the most courious thing, it's because i have the same thing on my local, and everything works fine, and my phtml appears in the cms page, but when I put all of the code on the server, the phtml doesn't appears.

I also created another modules and for any custom modules with custom phtml that I created, is not working on the server.
If I add an existent magento block in my cms page, this phtml works fine and it appears on the cms page.

Does anyone know where it's my problem?

Best Answer

As Piyush said it's likely you need to whitelist your block type.

Navigate to System > Permissions > (Blocks | Variables) and whitelist your block type.

Clear caches and see if it now works.