Could not create an acl object: Invalid XML in fileJs file is not removed from xmlMagento 2 Create custom XML...

creating a ":KeepCursor" command

Angel of Condemnation - Exile creature with second ability

It grows, but water kills it

What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?

Can a college of swords bard use blade flourish on an OA from dissonant whispers?

Why can Carol Danvers change her suit colours in the first place?

How could a planet have erratic days?

Mimic lecturing on blackboard, facing audience

Non-trope happy ending?

How to hide some fields of struct in C?

putting logo on same line but after title, latex

Why did the EU agree to delay the Brexit deadline?

Is aluminum electrical wire used on aircraft?

Yosemite Fire Rings - What to Expect?

Is this toilet slogan correct usage of the English language?

How much character growth crosses the line into breaking the character

What if a revenant (monster) gains fire resistance?

Redundant comparison & "if" before assignment

Does the Linux kernel need a file system to run?

Why Shazam when there is already Superman?

Pre-mixing cryogenic fuels and using only one fuel tank

How to cover method return statement in Apex Class?

What is the highest possible scrabble score for placing a single tile

How do you make your own symbol when Detexify fails?



Could not create an acl object: Invalid XML in file


Js file is not removed from xmlMagento 2 Create custom XML fileWhat's your way of debugging xml related exceptions?Invalid XML in file view.xmlOn log in to Magento 2.1 admin I get (LogicException): Could not create an acl objectElement 'css', attribute 'order': The attribute 'order' is not allowedCould not create an acl object: Role '9' - how to resolve this?Could not create an acl object: Invalid XMLElement 'referenceContainer', attribute 'after': The attribute 'after' is not allowedInvalid template file: 'Magento_Catalog













0















Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error



Error Message I am getting




1 exception(s): Exception #0 (LogicException): Could not create an acl
object: Invalid XML in file
/home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
'config', attribute
'{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
The attribute
'{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
is not allowed. Line: 2



Exception #0 (LogicException): Could not create an acl object: Invalid
XML in file
/home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
'config', attribute
'{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
The attribute
'{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
is not allowed. Line: 2




The Code is as follows



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Adminhtml::admin">
<!--AddMenuAcl-->
<resource id="Pmage_Unit::unit" title="Pmage">
<resource id="Pmage_Matrixprice::manage_matrix" title="Manage Matrix" />
</resource>
</resource>
</resources>
</acl>
</config>









share|improve this question
















bumped to the homepage by Community 5 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error



    Error Message I am getting




    1 exception(s): Exception #0 (LogicException): Could not create an acl
    object: Invalid XML in file
    /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
    'config', attribute
    '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
    The attribute
    '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
    is not allowed. Line: 2



    Exception #0 (LogicException): Could not create an acl object: Invalid
    XML in file
    /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
    'config', attribute
    '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
    The attribute
    '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
    is not allowed. Line: 2




    The Code is as follows



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
    <resources>
    <resource id="Magento_Adminhtml::admin">
    <!--AddMenuAcl-->
    <resource id="Pmage_Unit::unit" title="Pmage">
    <resource id="Pmage_Matrixprice::manage_matrix" title="Manage Matrix" />
    </resource>
    </resource>
    </resources>
    </acl>
    </config>









    share|improve this question
















    bumped to the homepage by Community 5 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error



      Error Message I am getting




      1 exception(s): Exception #0 (LogicException): Could not create an acl
      object: Invalid XML in file
      /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
      'config', attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
      The attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
      is not allowed. Line: 2



      Exception #0 (LogicException): Could not create an acl object: Invalid
      XML in file
      /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
      'config', attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
      The attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
      is not allowed. Line: 2




      The Code is as follows



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
      <acl>
      <resources>
      <resource id="Magento_Adminhtml::admin">
      <!--AddMenuAcl-->
      <resource id="Pmage_Unit::unit" title="Pmage">
      <resource id="Pmage_Matrixprice::manage_matrix" title="Manage Matrix" />
      </resource>
      </resource>
      </resources>
      </acl>
      </config>









      share|improve this question
















      Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error



      Error Message I am getting




      1 exception(s): Exception #0 (LogicException): Could not create an acl
      object: Invalid XML in file
      /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
      'config', attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
      The attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
      is not allowed. Line: 2



      Exception #0 (LogicException): Could not create an acl object: Invalid
      XML in file
      /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element
      'config', attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation':
      The attribute
      '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation'
      is not allowed. Line: 2




      The Code is as follows



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
      <acl>
      <resources>
      <resource id="Magento_Adminhtml::admin">
      <!--AddMenuAcl-->
      <resource id="Pmage_Unit::unit" title="Pmage">
      <resource id="Pmage_Matrixprice::manage_matrix" title="Manage Matrix" />
      </resource>
      </resource>
      </resources>
      </acl>
      </config>






      magento2.2 xml acl






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 5 '18 at 9:05









      sv3n

      9,87562455




      9,87562455










      asked Oct 20 '17 at 12:29









      Sohaib KhanSohaib Khan

      307319




      307319





      bumped to the homepage by Community 5 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 5 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Replace http://www.w3.org/2001/XMLSchemainstance with http://www.w3.org/2001/XMLSchema-instance.



          Notice the extra dash (-) between Schema and instance.






          share|improve this answer
























          • That didnt do it. I think

            – Sohaib Khan
            Oct 20 '17 at 12:55











          • 1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Unit/etc/acl.xml: Element 'config', attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

            – Sohaib Khan
            Oct 20 '17 at 12:55













          • clear the cache. As I can see, nothing changed.

            – Marius
            Oct 20 '17 at 13:01











          • Did that too,, nothing changed same thing.

            – Sohaib Khan
            Oct 20 '17 at 13:05



















          0














          This is incorrect: <resource id="Magento_Adminhtml::admin">



          Should be: <resource id="Magento_Backend::admin">






          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%2f197966%2fcould-not-create-an-acl-object-invalid-xml-in-file%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









            0














            Replace http://www.w3.org/2001/XMLSchemainstance with http://www.w3.org/2001/XMLSchema-instance.



            Notice the extra dash (-) between Schema and instance.






            share|improve this answer
























            • That didnt do it. I think

              – Sohaib Khan
              Oct 20 '17 at 12:55











            • 1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Unit/etc/acl.xml: Element 'config', attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

              – Sohaib Khan
              Oct 20 '17 at 12:55













            • clear the cache. As I can see, nothing changed.

              – Marius
              Oct 20 '17 at 13:01











            • Did that too,, nothing changed same thing.

              – Sohaib Khan
              Oct 20 '17 at 13:05
















            0














            Replace http://www.w3.org/2001/XMLSchemainstance with http://www.w3.org/2001/XMLSchema-instance.



            Notice the extra dash (-) between Schema and instance.






            share|improve this answer
























            • That didnt do it. I think

              – Sohaib Khan
              Oct 20 '17 at 12:55











            • 1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Unit/etc/acl.xml: Element 'config', attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

              – Sohaib Khan
              Oct 20 '17 at 12:55













            • clear the cache. As I can see, nothing changed.

              – Marius
              Oct 20 '17 at 13:01











            • Did that too,, nothing changed same thing.

              – Sohaib Khan
              Oct 20 '17 at 13:05














            0












            0








            0







            Replace http://www.w3.org/2001/XMLSchemainstance with http://www.w3.org/2001/XMLSchema-instance.



            Notice the extra dash (-) between Schema and instance.






            share|improve this answer













            Replace http://www.w3.org/2001/XMLSchemainstance with http://www.w3.org/2001/XMLSchema-instance.



            Notice the extra dash (-) between Schema and instance.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 20 '17 at 12:33









            MariusMarius

            167k28319685




            167k28319685













            • That didnt do it. I think

              – Sohaib Khan
              Oct 20 '17 at 12:55











            • 1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Unit/etc/acl.xml: Element 'config', attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

              – Sohaib Khan
              Oct 20 '17 at 12:55













            • clear the cache. As I can see, nothing changed.

              – Marius
              Oct 20 '17 at 13:01











            • Did that too,, nothing changed same thing.

              – Sohaib Khan
              Oct 20 '17 at 13:05



















            • That didnt do it. I think

              – Sohaib Khan
              Oct 20 '17 at 12:55











            • 1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Unit/etc/acl.xml: Element 'config', attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

              – Sohaib Khan
              Oct 20 '17 at 12:55













            • clear the cache. As I can see, nothing changed.

              – Marius
              Oct 20 '17 at 13:01











            • Did that too,, nothing changed same thing.

              – Sohaib Khan
              Oct 20 '17 at 13:05

















            That didnt do it. I think

            – Sohaib Khan
            Oct 20 '17 at 12:55





            That didnt do it. I think

            – Sohaib Khan
            Oct 20 '17 at 12:55













            1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Unit/etc/acl.xml: Element 'config', attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

            – Sohaib Khan
            Oct 20 '17 at 12:55







            1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Unit/etc/acl.xml: Element 'config', attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

            – Sohaib Khan
            Oct 20 '17 at 12:55















            clear the cache. As I can see, nothing changed.

            – Marius
            Oct 20 '17 at 13:01





            clear the cache. As I can see, nothing changed.

            – Marius
            Oct 20 '17 at 13:01













            Did that too,, nothing changed same thing.

            – Sohaib Khan
            Oct 20 '17 at 13:05





            Did that too,, nothing changed same thing.

            – Sohaib Khan
            Oct 20 '17 at 13:05













            0














            This is incorrect: <resource id="Magento_Adminhtml::admin">



            Should be: <resource id="Magento_Backend::admin">






            share|improve this answer




























              0














              This is incorrect: <resource id="Magento_Adminhtml::admin">



              Should be: <resource id="Magento_Backend::admin">






              share|improve this answer


























                0












                0








                0







                This is incorrect: <resource id="Magento_Adminhtml::admin">



                Should be: <resource id="Magento_Backend::admin">






                share|improve this answer













                This is incorrect: <resource id="Magento_Adminhtml::admin">



                Should be: <resource id="Magento_Backend::admin">







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 22 '18 at 17:20









                dmooredmoore

                111




                111






























                    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%2f197966%2fcould-not-create-an-acl-object-invalid-xml-in-file%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

                    迭戈·戈丁...

                    A phrase ”follow into" in a context The 2019 Stack Overflow Developer Survey Results Are...

                    1960s short story making fun of James Bond-style spy fiction The 2019 Stack Overflow Developer...