I am getting this error when I click on stores->configuration

Notice: Undefined index: id in D:\xampp\htdocs\tork\vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line 63

I tried to disable custom modules which has config section.Still get the same error.

Is there any way to check from which module I am getting this issue?

  • Did you install which module ? Commented Mar 27, 2018 at 10:36

1 Answer 1


I'll recommend you to use the xDebug to easily detect which element has no id:

example of xdebug

In case you are working on the remote server on which you can not install xDebug you can use the var_dump() with condition like:

if (count($elements)) {
    $lastElement = end($elements);
    if (empty($lastElement['id'])) {
    $this->_lastId = $lastElement['id'];

in the magento/module-config/Model/Config/Structure/Element/Iterator.php (inside the setElements() method). Then using indirect signs you be able to detect which element from the config tree causes problems.


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.