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" />

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?

  • block added to whiltelist?
    – Piyush
    Jun 7 '17 at 10:04
  • i am not sure what this means Jun 7 '17 at 10:07
  • refer this answer magento.stackexchange.com/a/88124/20064
    – Piyush
    Jun 7 '17 at 10:14
  • you have a blank space in your block type type="oproduct_export/infoshow ". Make sure that's not the problem.
    – Marius
    Jun 7 '17 at 11:58

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.

  • so i need to add only the block name in both blocks and variable? in my case :oproduct_export/infoshow ? Jun 7 '17 at 10:24
  • Only in blocks. Jun 7 '17 at 10:36
  • Hmm it could be a code issue, I don't know much PHP so I can't help with that sorry.
    – Ben Crook
    Jun 7 '17 at 12:06
  • Try removing the : so your block name reads oproduct_export/infoshow. Also try removing the space in your block type.
    – Ben Crook
    Jun 7 '17 at 12:08
  • @MohitKumarArora How can i add feedback from into all pages including homepage, my contact form : dropbox.com/sh/32zqgejubfllz0h/AACkB_iIh-KJQxtEUikZ8i9Na?dl=0 how can i add to my all pages?
    – Gem
    Oct 4 '18 at 6:19

You need to give the permission of your newly created block :-This has been since the release of patch SUPEE-6788.

System > Permissions >> Blocks

Then add your newly created 'oproduct_export/infoshow' block there.


piyush means goto admin panel . system>permissions>block and add your block there.

also when you encounter things like this you should go to var/log/system.log or var/log/exception.log and see if theres an error message.


I added my block to whitelist but still i have some err : Warning: include(): Failed opening '' for inclusion (include_path='....)

I solve my problem by add core/template in stand of oproduct_export/infoshow for block type


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


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

and then i change all my function from block into helper. To access the functions in the phtml i use this:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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