Magento 2 – Modules Not Listing in Admin Panel

extensionsfile-permissionsmagento-2.1magento2module

On my test server, every installed extensions are not listing in admin panel under Stores > Settings > Configuration > Advanced > Advanced.

And if the extension has configuration parameters vendorName/moduleName/etc/adminhtml/system.xml, module configuration tab is not visible under Stores > Settings > Configuration

Doing php bin/magento module:status the modules are listing and they are enabled.

Checking in the database (setup_module table) the modules are listing.

Checking in app/etc/config.xml the modules are listing and set to '1'.

On my local machine, all works fine so it must be a server issue (permissions ???).

I don't understand what is the problem.

Best Answer

Whenever you add a configuration section for a module using a system.xml you need the corresponding ACL.

Example if you have a system.xml that looks like this:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="vendor" translate="label" sortOrder="300">
            <label>Vendor</label>
        </tab>
        <section id="module" translate="label" type="text" sortOrder="140" showInDefault="1" showInWebsite="1" showInStore="1">
            <tab>vendor</tab>
            ...
        </section>
    </system>
</config>

Then you will need an etc/acl.xml file that looks like this:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
        <resources>
<resource id="Magento_Backend::system">
                    <resource id="Vendor_Module::vendor" title="Vendor" sortOrder="100">
                        <resource id="Vendor_Module::module" title="Module" sortOrder="100"/>
                    </resource>
                </resource>
            </resource>
        </resources>
    </acl>
</config>
Related Topic