0

I was working on some errors on my site. Now I changed in developer mode and when I try to do setup:upgrade, it gives me this error.

No new modules added, working fine till today. Any ideas?

Running schema recurring...Invalid XML in file /home/r2gutenb/public_html/app/code/Rokanthemes/SlideBanner/etc/acl.xml: Element 'config': Missing child element(s). Expected is ( acl ). Line: 2

This is the content of the acl.xml file

enter image description here

UPDATE1

After deleted the acl.xml files now my homepage gives me this error:

enter image description here

7
  • 1
    Well, show us that file so we can pinpoint the mentionned error Commented Apr 3, 2018 at 13:33
  • post edited (i can't enter the code in the post, so screenshot)
    – goplastic
    Commented Apr 3, 2018 at 13:38
  • Your ACL file is doing nothing. So its better to delete it and try again. Commented Apr 3, 2018 at 13:44
  • Ok, now it can upgrade, but now there is an error in homepage... post edited
    – goplastic
    Commented Apr 3, 2018 at 13:50
  • It's not correct to have xml file with empty content. You can rename that file to something else and avoid reading from Magento system. Then you will be able to upgrade your database setup Commented Apr 3, 2018 at 14:00

1 Answer 1

0

Hi You have to add child tag

<acl>
    <resources>
        <resource id="Magento_Backend::admin">
            <resource id="Magento_Backend::stores">
                <resource id="Magento_Backend::stores_settings">
                    <resource id="Magento_Config::config">
                        <resource id="Rokanthemes_SlideBanner::config_slidebanner" title="SlideBanner" sortOrder="80" />
                    </resource>
                </resource>
            </resource>
        </resource>
    </resources>
</acl>

Please add this and check.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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