cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to add module

SOLVED

Problem to add module

Hi,

 

I have problem with install new module in stores/configuration

I have this message : 

"0":"Notice: Undefined index: id in \/vendor\/magento\/module-config\/Model\/Config\/Structure\/Element\/Iterator.php on line 63","1":"#0

My system.xml:

 

<system>

        <tab id="subra" translate="label" sortOrder="200">
            <label>Subra</label>
        </tab>
        <section id="subra_collect"  showInDefault="1">
            <tab>Subra</tab>
            <label>Collect</label>
            <resource>Magento_Config::config</resource>
            <group id="generalmaps"  showInDefault="1">
                <label>Default Maps Settings</label>
                <field id="maps_api_key" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Google Maps API Key</label>
                </field>
                <field id="default_latitude" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Default Latitude</label>
                </field>
                <field id="default_longitude" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Default Longitude</label>
                </field>
                <field id="default_zoom" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Default Zoom</label>
                </field>
            </group>
        </section>
</system>

My version of magento is : 2.2.1

 

What to do to fix this problem

 

Thinks.

 

Franck

2 REPLIES

Re: Problem to add module

@francksub

 

I thin problem is with

<tab>Subra</tab>

Change it to 

<tab>subra</tab

 Because you tab id is in small subra



<tab id="subra" translate="label" sortOrder="200">

 

Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
Qaisar Satti

Re: Problem to add module

Yes 

 

It's good.

 

Thinks

 

Francksub