Invalid Blocktype template

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:



block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"


I also allowed the block in the backend at (System -> Permissions -> Blocks).



But if I call the site, then there is no output from the block.



app/code/local/Atwix/Cmsattr/etc/config.xml



<?xml version="1.0"?>
<config>
<modules>
<Atwix_Cmsattr>
<version>0.1.0</version>
</Atwix_Cmsattr>
</modules>
<global>
<blocks>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Block</class>
</atwix_cmsattr>
</blocks>
<models>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Model</class>
</atwix_cmsattr>
</models>
</global>
</config>


app/code/local/Atwix/Cmsattr/Block/List.php



<?php
class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract

protected $_itemCollection = null;

public function getItems()

$color = $this->getColor();
if (!$color)
return false;
if (is_null($this->itemCollection))
$this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);


return $this->_itemCollection;




app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml



I replaced his template content with "hello world"



What is going on?










share|improve this question





























    up vote
    1
    down vote

    favorite












    I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:



    block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"


    I also allowed the block in the backend at (System -> Permissions -> Blocks).



    But if I call the site, then there is no output from the block.



    app/code/local/Atwix/Cmsattr/etc/config.xml



    <?xml version="1.0"?>
    <config>
    <modules>
    <Atwix_Cmsattr>
    <version>0.1.0</version>
    </Atwix_Cmsattr>
    </modules>
    <global>
    <blocks>
    <atwix_cmsattr>
    <class>Atwix_Cmsattr_Block</class>
    </atwix_cmsattr>
    </blocks>
    <models>
    <atwix_cmsattr>
    <class>Atwix_Cmsattr_Model</class>
    </atwix_cmsattr>
    </models>
    </global>
    </config>


    app/code/local/Atwix/Cmsattr/Block/List.php



    <?php
    class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract

    protected $_itemCollection = null;

    public function getItems()

    $color = $this->getColor();
    if (!$color)
    return false;
    if (is_null($this->itemCollection))
    $this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);


    return $this->_itemCollection;




    app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml



    I replaced his template content with "hello world"



    What is going on?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:



      block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"


      I also allowed the block in the backend at (System -> Permissions -> Blocks).



      But if I call the site, then there is no output from the block.



      app/code/local/Atwix/Cmsattr/etc/config.xml



      <?xml version="1.0"?>
      <config>
      <modules>
      <Atwix_Cmsattr>
      <version>0.1.0</version>
      </Atwix_Cmsattr>
      </modules>
      <global>
      <blocks>
      <atwix_cmsattr>
      <class>Atwix_Cmsattr_Block</class>
      </atwix_cmsattr>
      </blocks>
      <models>
      <atwix_cmsattr>
      <class>Atwix_Cmsattr_Model</class>
      </atwix_cmsattr>
      </models>
      </global>
      </config>


      app/code/local/Atwix/Cmsattr/Block/List.php



      <?php
      class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract

      protected $_itemCollection = null;

      public function getItems()

      $color = $this->getColor();
      if (!$color)
      return false;
      if (is_null($this->itemCollection))
      $this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);


      return $this->_itemCollection;




      app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml



      I replaced his template content with "hello world"



      What is going on?










      share|improve this question















      I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:



      block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"


      I also allowed the block in the backend at (System -> Permissions -> Blocks).



      But if I call the site, then there is no output from the block.



      app/code/local/Atwix/Cmsattr/etc/config.xml



      <?xml version="1.0"?>
      <config>
      <modules>
      <Atwix_Cmsattr>
      <version>0.1.0</version>
      </Atwix_Cmsattr>
      </modules>
      <global>
      <blocks>
      <atwix_cmsattr>
      <class>Atwix_Cmsattr_Block</class>
      </atwix_cmsattr>
      </blocks>
      <models>
      <atwix_cmsattr>
      <class>Atwix_Cmsattr_Model</class>
      </atwix_cmsattr>
      </models>
      </global>
      </config>


      app/code/local/Atwix/Cmsattr/Block/List.php



      <?php
      class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract

      protected $_itemCollection = null;

      public function getItems()

      $color = $this->getColor();
      if (!$color)
      return false;
      if (is_null($this->itemCollection))
      $this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);


      return $this->_itemCollection;




      app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml



      I replaced his template content with "hello world"



      What is going on?







      magento-1.9 blocks extensions cms






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 14 mins ago









      Prince

      6,2902934




      6,2902934










      asked 6 hours ago









      Black

      14416




      14416




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          1. Verify the module is enabled in app/etc/modules and in System/Configuration/Advanced

          2. You did the permissions change

          3. block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"

          That should do the trick.






          share|improve this answer





























            up vote
            0
            down vote













            I solved it. I had to use



            block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"





            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "479"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f242391%2finvalid-blocktype-template%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              4
              down vote



              accepted










              1. Verify the module is enabled in app/etc/modules and in System/Configuration/Advanced

              2. You did the permissions change

              3. block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"

              That should do the trick.






              share|improve this answer


























                up vote
                4
                down vote



                accepted










                1. Verify the module is enabled in app/etc/modules and in System/Configuration/Advanced

                2. You did the permissions change

                3. block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"

                That should do the trick.






                share|improve this answer
























                  up vote
                  4
                  down vote



                  accepted







                  up vote
                  4
                  down vote



                  accepted






                  1. Verify the module is enabled in app/etc/modules and in System/Configuration/Advanced

                  2. You did the permissions change

                  3. block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"

                  That should do the trick.






                  share|improve this answer














                  1. Verify the module is enabled in app/etc/modules and in System/Configuration/Advanced

                  2. You did the permissions change

                  3. block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"

                  That should do the trick.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 27 mins ago









                  Prince

                  6,2902934




                  6,2902934










                  answered 6 hours ago









                  Herve Tribouilloy

                  52927




                  52927






















                      up vote
                      0
                      down vote













                      I solved it. I had to use



                      block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"





                      share|improve this answer
























                        up vote
                        0
                        down vote













                        I solved it. I had to use



                        block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"





                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I solved it. I had to use



                          block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"





                          share|improve this answer












                          I solved it. I had to use



                          block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 6 hours ago









                          Black

                          14416




                          14416



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f242391%2finvalid-blocktype-template%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              Installing NextGIS Connect into QGIS 3?

                              One-line joke