The attribute 'cachable' is not allowed. Magento 2Server error 500 after installWhat's your way of debugging xml related exceptions?Invalid XML - Element 'config': Missing child element(s)?Magento Module creation gives errorMagento 2 - Can't access to products with direct urlMagento 2 : Can a single UI Component node have more than one collection?Magento 2.2.0 Error : Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowedadmin grid not workingMagento 2 Create new “Catalog Input Type for Store Owner” AttributeMagento2 + UI component xml file stop working as mode of deployment change

Certain search in list

Zeros of the Hadamard product of holomorphic functions

Overlapping String-Blocks

A IP can traceroute to it, but can not ping

Alternate way of computing the probability of being dealt a 13 card hand with 3 kings given that you have been dealt 2 kings

What is the actual quality of machine translations?

Importance of Building Credit Score?

How to handle self harm scars on the arm in work environment?

Is it legal for a bar bouncer to confiscate a fake ID

Is it expected that a reader will skip parts of what you write?

Is a lack of character descriptions a problem?

Wooden cooking layout

Cascading Switches. Will it affect performance?

Giant Steps - Coltrane and Slonimsky

How to hide rifle during medieval town entrance inspection?

Medieval flying castle propulsion

Pre-1972 sci-fi short story or novel: alien(?) tunnel where people try new moves and get destroyed if they're not the correct ones

Shell script returning "Running: command not found". Not sure why

Why would future John risk sending back a T-800 to save his younger self?

Union with anonymous struct with flexible array member

Need feedback - Can the composition/colors of this design be fixed if something is lacking or is not a better fit?

How to manually rewind film?

How to communicate to my GM that not being allowed to use stealth isn't fun for me?

Does a scale have more than seven chords?



The attribute 'cachable' is not allowed. Magento 2


Server error 500 after installWhat's your way of debugging xml related exceptions?Invalid XML - Element 'config': Missing child element(s)?Magento Module creation gives errorMagento 2 - Can't access to products with direct urlMagento 2 : Can a single UI Component node have more than one collection?Magento 2.2.0 Error : Element 'referenceContainer', attribute 'after': The attribute 'after' is not allowedadmin grid not workingMagento 2 Create new “Catalog Input Type for Store Owner” AttributeMagento2 + UI component xml file stop working as mode of deployment change






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








0















I am facing the error in Magento Localhost which is




Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/Mb/Customizations/etc/frontend/events.xml:
Element 'event', attribute 'cachable': The attribute 'cachable' is not allowed.
Line: 9




In the image you can see the error
enter image description here



So after That I tried to remove cacheable from the core class
magento/app/code/Mb/Customizations/etc/frontend/events.xml



<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<event name="layout_generate_blocks_after">
<observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
</event>

<event name="controller_action_predispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
</event>
<event name="controller_action_postdispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
</event>

</config>


but after removing the casheable from the above xml file it gives me some else error




1 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml:
Element 'config': Missing child element(s). Expected is ( event ).
Line: 2




enter image description here



magento/app/code/TM/Crm/etc/frontend/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<!-- <event name="checkout_onepage_controller_success_action">
<observer name="tm_crm_checkout_onepage_controller_success_action" instance="TMCrmObserverCrm" />
</event> -->

</config>


So how can I remove this error and what is the problem in the above xml file. Thanks










share|improve this question
























  • cachable="false" should only be used for blocks not for events. here is the full docs from magento devdocs.magento.com/guides/v2.2/extension-dev-guide/cache/…

    – Aman Alam
    May 31 at 6:00











  • ok fine but when I remove the cachable then it give me another error 1 exception(s): Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event ). Line: 2

    – Asad Khan
    May 31 at 6:02












  • Cachable? Cashable? Cacheable? Man, that typo variations can kill you :) My bet is you may have some white space in that XML between config and event after cleaning the wrong references

    – Raul Sanchez
    May 31 at 6:02












  • Please post your XML? magento/app/code/TM/Crm/etc/frontend/events.xml

    – Khoa TruongDinh
    May 31 at 6:05











  • @KhoaTruongDinh Sir question updated kindly check it

    – Asad Khan
    May 31 at 6:11

















0















I am facing the error in Magento Localhost which is




Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/Mb/Customizations/etc/frontend/events.xml:
Element 'event', attribute 'cachable': The attribute 'cachable' is not allowed.
Line: 9




In the image you can see the error
enter image description here



So after That I tried to remove cacheable from the core class
magento/app/code/Mb/Customizations/etc/frontend/events.xml



<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<event name="layout_generate_blocks_after">
<observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
</event>

<event name="controller_action_predispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
</event>
<event name="controller_action_postdispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
</event>

</config>


but after removing the casheable from the above xml file it gives me some else error




1 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml:
Element 'config': Missing child element(s). Expected is ( event ).
Line: 2




enter image description here



magento/app/code/TM/Crm/etc/frontend/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<!-- <event name="checkout_onepage_controller_success_action">
<observer name="tm_crm_checkout_onepage_controller_success_action" instance="TMCrmObserverCrm" />
</event> -->

</config>


So how can I remove this error and what is the problem in the above xml file. Thanks










share|improve this question
























  • cachable="false" should only be used for blocks not for events. here is the full docs from magento devdocs.magento.com/guides/v2.2/extension-dev-guide/cache/…

    – Aman Alam
    May 31 at 6:00











  • ok fine but when I remove the cachable then it give me another error 1 exception(s): Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event ). Line: 2

    – Asad Khan
    May 31 at 6:02












  • Cachable? Cashable? Cacheable? Man, that typo variations can kill you :) My bet is you may have some white space in that XML between config and event after cleaning the wrong references

    – Raul Sanchez
    May 31 at 6:02












  • Please post your XML? magento/app/code/TM/Crm/etc/frontend/events.xml

    – Khoa TruongDinh
    May 31 at 6:05











  • @KhoaTruongDinh Sir question updated kindly check it

    – Asad Khan
    May 31 at 6:11













0












0








0








I am facing the error in Magento Localhost which is




Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/Mb/Customizations/etc/frontend/events.xml:
Element 'event', attribute 'cachable': The attribute 'cachable' is not allowed.
Line: 9




In the image you can see the error
enter image description here



So after That I tried to remove cacheable from the core class
magento/app/code/Mb/Customizations/etc/frontend/events.xml



<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<event name="layout_generate_blocks_after">
<observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
</event>

<event name="controller_action_predispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
</event>
<event name="controller_action_postdispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
</event>

</config>


but after removing the casheable from the above xml file it gives me some else error




1 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml:
Element 'config': Missing child element(s). Expected is ( event ).
Line: 2




enter image description here



magento/app/code/TM/Crm/etc/frontend/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<!-- <event name="checkout_onepage_controller_success_action">
<observer name="tm_crm_checkout_onepage_controller_success_action" instance="TMCrmObserverCrm" />
</event> -->

</config>


So how can I remove this error and what is the problem in the above xml file. Thanks










share|improve this question
















I am facing the error in Magento Localhost which is




Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/Mb/Customizations/etc/frontend/events.xml:
Element 'event', attribute 'cachable': The attribute 'cachable' is not allowed.
Line: 9




In the image you can see the error
enter image description here



So after That I tried to remove cacheable from the core class
magento/app/code/Mb/Customizations/etc/frontend/events.xml



<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<event name="layout_generate_blocks_after">
<observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
</event>

<event name="controller_action_predispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
</event>
<event name="controller_action_postdispatch_checkout_index_index" cachable="false">
<observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
</event>

</config>


but after removing the casheable from the above xml file it gives me some else error




1 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml:
Element 'config': Missing child element(s). Expected is ( event ).
Line: 2




enter image description here



magento/app/code/TM/Crm/etc/frontend/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

<!-- <event name="checkout_onepage_controller_success_action">
<observer name="tm_crm_checkout_onepage_controller_success_action" instance="TMCrmObserverCrm" />
</event> -->

</config>


So how can I remove this error and what is the problem in the above xml file. Thanks







magento2 installation localhost






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 31 at 6:10







Asad Khan

















asked May 31 at 5:51









Asad KhanAsad Khan

50814




50814












  • cachable="false" should only be used for blocks not for events. here is the full docs from magento devdocs.magento.com/guides/v2.2/extension-dev-guide/cache/…

    – Aman Alam
    May 31 at 6:00











  • ok fine but when I remove the cachable then it give me another error 1 exception(s): Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event ). Line: 2

    – Asad Khan
    May 31 at 6:02












  • Cachable? Cashable? Cacheable? Man, that typo variations can kill you :) My bet is you may have some white space in that XML between config and event after cleaning the wrong references

    – Raul Sanchez
    May 31 at 6:02












  • Please post your XML? magento/app/code/TM/Crm/etc/frontend/events.xml

    – Khoa TruongDinh
    May 31 at 6:05











  • @KhoaTruongDinh Sir question updated kindly check it

    – Asad Khan
    May 31 at 6:11

















  • cachable="false" should only be used for blocks not for events. here is the full docs from magento devdocs.magento.com/guides/v2.2/extension-dev-guide/cache/…

    – Aman Alam
    May 31 at 6:00











  • ok fine but when I remove the cachable then it give me another error 1 exception(s): Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event ). Line: 2

    – Asad Khan
    May 31 at 6:02












  • Cachable? Cashable? Cacheable? Man, that typo variations can kill you :) My bet is you may have some white space in that XML between config and event after cleaning the wrong references

    – Raul Sanchez
    May 31 at 6:02












  • Please post your XML? magento/app/code/TM/Crm/etc/frontend/events.xml

    – Khoa TruongDinh
    May 31 at 6:05











  • @KhoaTruongDinh Sir question updated kindly check it

    – Asad Khan
    May 31 at 6:11
















cachable="false" should only be used for blocks not for events. here is the full docs from magento devdocs.magento.com/guides/v2.2/extension-dev-guide/cache/…

– Aman Alam
May 31 at 6:00





cachable="false" should only be used for blocks not for events. here is the full docs from magento devdocs.magento.com/guides/v2.2/extension-dev-guide/cache/…

– Aman Alam
May 31 at 6:00













ok fine but when I remove the cachable then it give me another error 1 exception(s): Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event ). Line: 2

– Asad Khan
May 31 at 6:02






ok fine but when I remove the cachable then it give me another error 1 exception(s): Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event ). Line: 2

– Asad Khan
May 31 at 6:02














Cachable? Cashable? Cacheable? Man, that typo variations can kill you :) My bet is you may have some white space in that XML between config and event after cleaning the wrong references

– Raul Sanchez
May 31 at 6:02






Cachable? Cashable? Cacheable? Man, that typo variations can kill you :) My bet is you may have some white space in that XML between config and event after cleaning the wrong references

– Raul Sanchez
May 31 at 6:02














Please post your XML? magento/app/code/TM/Crm/etc/frontend/events.xml

– Khoa TruongDinh
May 31 at 6:05





Please post your XML? magento/app/code/TM/Crm/etc/frontend/events.xml

– Khoa TruongDinh
May 31 at 6:05













@KhoaTruongDinh Sir question updated kindly check it

– Asad Khan
May 31 at 6:11





@KhoaTruongDinh Sir question updated kindly check it

– Asad Khan
May 31 at 6:11










2 Answers
2






active

oldest

votes


















1














Just make the xml look like this:





<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="layout_generate_blocks_after">
<observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
</event>
<event name="controller_action_predispatch_checkout_index_index">
<observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
</event>
<event name="controller_action_postdispatch_checkout_index_index">
<observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
</event>
</config>


If you don't have any event tags in your file, remove the file completely. You cannot have an empty file.






share|improve this answer























  • Sir I tried this but it gives me an error Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event )

    – Asad Khan
    May 31 at 6:18











  • Please clear cache after changes suggested by Marius .

    – padhiyar gaurang
    May 31 at 6:24


















0














<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="layout_generate_blocks_after">
<observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
</event>
</config>


Make sure your XML is UTF-8 formatted, Then do cache flush and try it.






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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    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%2f276808%2fthe-attribute-cachable-is-not-allowed-magento-2%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Just make the xml look like this:





    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="layout_generate_blocks_after">
    <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
    </event>
    <event name="controller_action_predispatch_checkout_index_index">
    <observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
    </event>
    <event name="controller_action_postdispatch_checkout_index_index">
    <observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
    </event>
    </config>


    If you don't have any event tags in your file, remove the file completely. You cannot have an empty file.






    share|improve this answer























    • Sir I tried this but it gives me an error Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event )

      – Asad Khan
      May 31 at 6:18











    • Please clear cache after changes suggested by Marius .

      – padhiyar gaurang
      May 31 at 6:24















    1














    Just make the xml look like this:





    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="layout_generate_blocks_after">
    <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
    </event>
    <event name="controller_action_predispatch_checkout_index_index">
    <observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
    </event>
    <event name="controller_action_postdispatch_checkout_index_index">
    <observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
    </event>
    </config>


    If you don't have any event tags in your file, remove the file completely. You cannot have an empty file.






    share|improve this answer























    • Sir I tried this but it gives me an error Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event )

      – Asad Khan
      May 31 at 6:18











    • Please clear cache after changes suggested by Marius .

      – padhiyar gaurang
      May 31 at 6:24













    1












    1








    1







    Just make the xml look like this:





    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="layout_generate_blocks_after">
    <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
    </event>
    <event name="controller_action_predispatch_checkout_index_index">
    <observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
    </event>
    <event name="controller_action_postdispatch_checkout_index_index">
    <observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
    </event>
    </config>


    If you don't have any event tags in your file, remove the file completely. You cannot have an empty file.






    share|improve this answer













    Just make the xml look like this:





    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="layout_generate_blocks_after">
    <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
    </event>
    <event name="controller_action_predispatch_checkout_index_index">
    <observer name="checkcout_page_pre" instance="MbCustomizationsObserverPreloadtab" />
    </event>
    <event name="controller_action_postdispatch_checkout_index_index">
    <observer name="checkcout_page_post" instance="MbCustomizationsObserverLoadtab" />
    </event>
    </config>


    If you don't have any event tags in your file, remove the file completely. You cannot have an empty file.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 31 at 6:13









    MariusMarius

    169k28329702




    169k28329702












    • Sir I tried this but it gives me an error Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event )

      – Asad Khan
      May 31 at 6:18











    • Please clear cache after changes suggested by Marius .

      – padhiyar gaurang
      May 31 at 6:24

















    • Sir I tried this but it gives me an error Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event )

      – Asad Khan
      May 31 at 6:18











    • Please clear cache after changes suggested by Marius .

      – padhiyar gaurang
      May 31 at 6:24
















    Sir I tried this but it gives me an error Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event )

    – Asad Khan
    May 31 at 6:18





    Sir I tried this but it gives me an error Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid XML in file /var/www/html/magento/app/code/TM/Crm/etc/frontend/events.xml: Element 'config': Missing child element(s). Expected is ( event )

    – Asad Khan
    May 31 at 6:18













    Please clear cache after changes suggested by Marius .

    – padhiyar gaurang
    May 31 at 6:24





    Please clear cache after changes suggested by Marius .

    – padhiyar gaurang
    May 31 at 6:24













    0














    <?xml version="1.0" encoding="UTF-8"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="layout_generate_blocks_after">
    <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
    </event>
    </config>


    Make sure your XML is UTF-8 formatted, Then do cache flush and try it.






    share|improve this answer



























      0














      <?xml version="1.0" encoding="UTF-8"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
      <event name="layout_generate_blocks_after">
      <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
      </event>
      </config>


      Make sure your XML is UTF-8 formatted, Then do cache flush and try it.






      share|improve this answer

























        0












        0








        0







        <?xml version="1.0" encoding="UTF-8"?>
        <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
        <event name="layout_generate_blocks_after">
        <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
        </event>
        </config>


        Make sure your XML is UTF-8 formatted, Then do cache flush and try it.






        share|improve this answer













        <?xml version="1.0" encoding="UTF-8"?>
        <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
        <event name="layout_generate_blocks_after">
        <observer name="cust_productCanonical" instance="MbCustomizationsObserverProductCanonical"/>
        </event>
        </config>


        Make sure your XML is UTF-8 formatted, Then do cache flush and try it.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 31 at 6:23









        Sunil PatelSunil Patel

        1,5231612




        1,5231612



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f276808%2fthe-attribute-cachable-is-not-allowed-magento-2%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form