Magento – Warning: Illegal string offset ‘value’ customer configuration

customererrorfatal errormagento-1.9

When i open 'customer configuration' from the system configuration, I got the fatal error:

Warning: Illegal string offset 'value' in
httpdocs/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php
on line 111

This fatal error only appears when i select a website value different than 'default config'.

Best Answer

This appears to be an issue with PHP 5.4+

You should NEVER rewrite core files unless absolutely necessary.

  1. Create a new file:

    app/code/local/Mage/Adminhtml/Block/System/Config/Form/Field.php

  2. Copy contents from

    app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php to app/code/local/Mage/Adminhtml/Block/System/Config/Form/Field.php

  3. Replace line 111 with the following: } elseif ((isset($v['value'])) && ($v['value']==$defText)) {

This should correct your error.