2

I've tried to change the ID name but it did not work.

1 exception(s):
Exception #0 (InvalidArgumentException): Element with id "system_cron_template_use_separate_process" already exists

Exception #0 (InvalidArgumentException): Element with id "system_cron_template_use_separate_process" already exists
#0 /chroot/home/this/my.com/html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(93): Magento\Framework\Data\Form->checkElementId('system_cron_tem...')
#1 /chroot/home/this/my.com/html/vendor/magento/framework/Data/Form/AbstractForm.php(157): Magento\Framework\Data\Form\Element\AbstractElement->addElement(Object(Magento\Framework\Data\Form\Element\Select), false)
#2 /chroot/home/this/my.com/html/vendor/magento/framework/Data/Form/Element/Fieldset.php(212): Magento\Framework\Data\Form\AbstractForm->addField('system_cron_tem...', 'select', Array, false)
#3 /chroot/home/this/my.com/html/vendor/magento/module-config/Block/System/Config/Form.php(392): Magento\Framework\Data\Form\Element\Fieldset->addField('system_cron_tem...', 'select', Array)

I tried changing the ID here: vendor/magento/module-cron/etc/adminhtml/system.xml

It did work.

1 Answer 1

2

first run command grep -ir "system_cron_template_use_separate_process" app/ to find out the duplicate element id

Second, then change it and then run command -

rm -rf var/cache* generated/*

then check again.

11
  • The first command grep -ir "system_cron_template_use_separate_process" app/ didn't return anything. @Shashank
    – getData
    Oct 19, 2018 at 3:13
  • ok so you are getting this error when you go to system > configuration. correct ? Oct 19, 2018 at 3:14
  • also please mention which magento version are you using ? Oct 19, 2018 at 3:17
  • Correct, inside admin when I click on Configuration > Advanced > System
    – getData
    Oct 19, 2018 at 3:17
  • 2.2.5 is the version i'm running.
    – getData
    Oct 19, 2018 at 3:17

Your Answer

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

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