How to fix the «Illegal string offset in lib/internal/Magento/Framework/App/Config/Scope/Converter.php» bug

It is a bug in the Magento 2 core.
It is reproduced when a backend configuration option has been replaced by a options group with the same name.
There are 2 methods to fix the issue.

Method 1

Delete from the Magento 2 database all the values of the removed options.

Method 2

Locate the code:

Add the following code above:

$currentPointer = is_array($currentPointer) ? $currentPointer : [];