Magento 2.1.4


The reason is that when a configuration is not saved in DB, backend_model is not called when the config is loaded.
More precisely, the problem is in the class "_Magento\Config\Block\System\Config\Form_" at line 349 :
if (array_key_exists($path, $this->_configData) )
$this->_configData is a collection of configurations in DB.
Thank you for your answer, but i can't use this trick for 2 reasons :
Exception #0 (InvalidArgumentException): Magento\Config\Model\Config\Backend\Serialized\ArraySerialized is not instance of \Magento\Framework\App\Config\Data\ProcessorInterface
I think I'll have to make a setup to insert my config directly in DB until the problem is solved.
Well, alternatively, you could also go deeper into the rabbit hole and try to implement that \Magento\Framework\App\Config\Data\ProcessorInterface but it's hard to say whether something like that is even worth the effort.
I modified my answer and there is another reason why this trick can't work :(
Unfortunately, I think implementing this interface will not solve my problem.
Up ? :/
Up, indeed! I've reported the same issue (which is accepted as bug), but your description is a bit better.
I've made a pull request (#7742) but can't yet get it through all tests, but we'll get there I guess :)
@synolia-bvo, thank you for your report.
We've created internal ticket(s) MAGETWO-82435 to track progress on the issue.
Fixed on 2.3.
We will consider backporting.
Hi @synolia-bvo
This issue should be fixed in latest 2.2 with the commit https://github.com/magento/magento2/commit/86d46ce0bdeca61ade5c1063edcb70367f17b2a5
Closing the issue report for now. Please reopen if issue persists.
Most helpful comment
@synolia-bvo, thank you for your report.
We've created internal ticket(s) MAGETWO-82435 to track progress on the issue.