How to resolve Exception #0 (Exception): Notice: Array to string conversion Mailchimp ErrorUncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2Not able to add/update magento2 category post upgrade from 1.9 to 2.1.0How to use session and pass some value to phtml file to phtml file?Trying to uninstall moduleadmin grid not workingMagento 2 Admin Menu Fatal Error-session time outMagento2.2.4 : Uninstall a theme throw exceptions?Notice: Array to string conversion errorMagento 2.2.6 exceptionDeleted ShipperHQ module causing error in “All Customers” section of Magento 2

Can you identify this lizard-like creature I observed in the UK?

Integral Notations in Quantum Mechanics

Usage of an old photo with expired copyright

Why is the Sun approximated as a black body at ~ 5800 K?

Echo with obfuscation

What (the heck) is a Super Worm Equinox Moon?

Why Shazam when there is already Superman?

Personal or impersonal in a technical resume

What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?

Would this string work as string?

Can I cause damage to electrical appliances by unplugging them when they are turned on?

Thank You : 谢谢 vs 感谢 vs 跪谢 vs 多谢

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

How were servants to the Kaiser of Imperial Germany treated and where may I find more information on them

How do I prevent inappropriate ads from appearing in my game?

How to test the sharpness of a knife?

Check if object is null and return null

Language involving irrational number is not a CFL

Showing mass murder in a kid's book

How much do grades matter for a future academia position?

Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?

Ways of geometrical multiplication

Can I run 125kHz RF circuit on a breadboard?

When and why was runway 07/25 at Kai Tak removed?



How to resolve Exception #0 (Exception): Notice: Array to string conversion Mailchimp Error


Uncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2Not able to add/update magento2 category post upgrade from 1.9 to 2.1.0How to use session and pass some value to phtml file to phtml file?Trying to uninstall moduleadmin grid not workingMagento 2 Admin Menu Fatal Error-session time outMagento2.2.4 : Uninstall a theme throw exceptions?Notice: Array to string conversion errorMagento 2.2.6 exceptionDeleted ShipperHQ module causing error in “All Customers” section of Magento 2













2
















Exception #0 (Exception): Notice: Array to string conversion in
/public_html/vendor/magento/framework/View/Element/Html/Select.php on
line 244




line 235-244 of the Select.php



public function calcOptionHash($optionValue)

return sprintf('%u', crc32($this->getName() . $this->getId() . $optionValue));



this is when i try to go to mailchimp configuration tab on the admin page.



full exception message here:



Exception #0 (Exception): Notice: Array to string conversion in /public_html/vendor/magento/framework/View/Element/Html/Select.php on line 243
#0 /public_html/vendor/magento/framework/View/Element/Html/Select.php(243): MagentoFrameworkAppErrorHandler->handler(8, 'Array to string...', '/p...', 243, Array)
#1 /public_html/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php(68): MagentoFrameworkViewElementHtmlSelect->calcOptionHash(Array)
#2 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(159): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMap->_prepareArrayRow(Object(MagentoFrameworkDataObject))
#3 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/form/field/array.phtml(117): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->getArrayRows()
#4 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
#5 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor), '/p...', Array)
#6 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
#7 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
#8 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(262): MagentoBackendBlockTemplate->_toHtml()
#9 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(116): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_toHtml()
#10 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(73): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_getElementHtml(Object(MagentoFrameworkDataFormElementText))
#11 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(52): MagentoConfigBlockSystemConfigFormField->_renderValue(Object(MagentoFrameworkDataFormElementText))
#12 /public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoConfigBlockSystemConfigFormField->render(Object(MagentoFrameworkDataFormElementText))
#13 /public_html/vendor/magento/framework/Interception/Interceptor.php(138): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callParent('render', Array)
#14 /public_html/vendor/magento/framework/Interception/Interceptor.php(153): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkDataFormElementText))
#15 /public_html/generated/code/Ebizmarts/MailChimp/Block/Adminhtml/System/Config/Form/Field/CustomerMap/Interceptor.php(26): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callPlugins('render', Array, Array)
#16 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->render(Object(MagentoFrameworkDataFormElementText))
#17 /public_html/vendor/magento/framework/Data/Form/Element/Text.php(43): MagentoFrameworkDataFormElementAbstractElement->getHtml()
#18 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementText->getHtml()
#19 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(86): MagentoFrameworkDataFormElementAbstractElement->toHtml()
#20 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(66): MagentoConfigBlockSystemConfigFormFieldset->_getChildrenElementsHtml(Object(MagentoFrameworkDataFormElementFieldset))
#21 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): MagentoConfigBlockSystemConfigFormFieldset->render(Object(MagentoFrameworkDataFormElementFieldset))
#22 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementAbstractElement->getHtml()
#23 /public_html/vendor/magento/framework/Data/Form.php(325): MagentoFrameworkDataFormElementAbstractElement->toHtml()
#24 /public_html/vendor/magento/framework/Data/Form.php(340): MagentoFrameworkDataForm->toHtml()
#25 /public_html/vendor/magento/module-backend/Block/Widget/Form.php(101): MagentoFrameworkDataForm->getHtml()
#26 /public_html/vendor/magento/module-backend/view/adminhtml/templates/widget/form.phtml(15): MagentoBackendBlockWidgetForm->getFormHtml()
#27 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
#28 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigForm), '/p...', Array)
#29 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
#30 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
#31 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
#32 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
#33 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system\config\f...')
#34 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system\config\f...')
#35 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(507): MagentoFrameworkViewLayout->renderElement('system\config\f...', true)
#36 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/edit.phtml(22): MagentoFrameworkViewElementAbstractBlock->getChildHtml('form')
#37 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
#38 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigEdit), '/p...', Array)
#39 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
#40 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
#41 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
#42 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
#43 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system.config.e...')
#44 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system.config.e...')
#45 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('system.config.e...', false)
#46 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
#47 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('content')
#48 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('content', false)
#49 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('admin.scope.col...', false)
#50 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('admin.scope.col...')
#51 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('admin.scope.col...', false)
#52 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.col', false)
#53 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('main.col')
#54 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('main.col', false)
#55 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.main.conta...', false)
#56 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.main.conta...')
#57 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.main.conta...', false)
#58 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.content', false)
#59 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.content')
#60 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.content', false)
#61 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#62 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#63 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#64 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('backend.page', false)
#65 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('backend.page')
#66 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('backend.page', false)
#67 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
#68 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#69 /public_html/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayout->renderElement('root')
#70 /public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(37): MagentoFrameworkViewLayout->getOutput()
#71 /public_html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
#72 /public_html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#73 /public_html/generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(24): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#74 /public_html/vendor/magento/framework/App/Http.php(139): MagentoBackendModelViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#75 /public_html/vendor/magento/framework/App/Bootstrap.php(257): MagentoFrameworkAppHttp->launch()
#76 /public_html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#77 main


CustomerMap.php code as below



<?php
/**
* mc-magento2 Magento Component
*
* @category Ebizmarts
* @package mc-magento2
* @author Ebizmarts Team <info@ebizmarts.com>
* @copyright Ebizmarts (http://ebizmarts.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @date: 10/27/17 12:01 PM
* @file: CustomerMap.php
*/

namespace EbizmartsMailChimpBlockAdminhtmlSystemConfigFormField;

class CustomerMap extends MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray

/**
* @var VarsMap
*/
protected $_varsRenderer=null;
protected $_mailchimpRenderer=null;

protected function _getVarsRenderer()

if (!$this->_varsRenderer)
$this->_varsRenderer = $this->getLayout()->createBlock(
'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldVarsMap',
'',
['data' => ['is_render_to_js_template' => true]]
);
$this->_varsRenderer->setClass('customer_field_select');

return $this->_varsRenderer;

protected function _getMailchimpRenderer()

if (!$this->_mailchimpRenderer)
$this->_mailchimpRenderer = $this->getLayout()->createBlock(
'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldMailchimpMap',
'',
['data' => ['is_render_to_js_template' => true]]
);
$this->_mailchimpRenderer->setClass('mailchimp_field_select');

return $this->_mailchimpRenderer;


protected function _prepareToRender()

// $this->addColumn('mailchimp', ['label' => __('Mailchimp')]);
$this->addColumn(
'mailchimp_field_id',
['label' => __('Mailchimp'), 'renderer' => $this->_getMailchimpRenderer()]
);
$this->addColumn(
'customer_field_id',
['label' => __('Magento'), 'renderer' => $this->_getVarsRenderer()]
);
$this->_addAfter = false;
$this->_addButtonLabel = __('Add');

protected function _prepareArrayRow(MagentoFrameworkDataObject $row)

$optionExtraAttr = [];
$optionExtraAttr['option_' . $this->_getVarsRenderer()->calcOptionHash($row->getData('customer_field_id'))] =
'selected="selected"';
//$optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
// 'selected="selected"';
$row->setData(
'option_extra_attrs',
$optionExtraAttr
);











share|improve this question




























    2
















    Exception #0 (Exception): Notice: Array to string conversion in
    /public_html/vendor/magento/framework/View/Element/Html/Select.php on
    line 244




    line 235-244 of the Select.php



    public function calcOptionHash($optionValue)

    return sprintf('%u', crc32($this->getName() . $this->getId() . $optionValue));



    this is when i try to go to mailchimp configuration tab on the admin page.



    full exception message here:



    Exception #0 (Exception): Notice: Array to string conversion in /public_html/vendor/magento/framework/View/Element/Html/Select.php on line 243
    #0 /public_html/vendor/magento/framework/View/Element/Html/Select.php(243): MagentoFrameworkAppErrorHandler->handler(8, 'Array to string...', '/p...', 243, Array)
    #1 /public_html/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php(68): MagentoFrameworkViewElementHtmlSelect->calcOptionHash(Array)
    #2 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(159): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMap->_prepareArrayRow(Object(MagentoFrameworkDataObject))
    #3 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/form/field/array.phtml(117): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->getArrayRows()
    #4 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
    #5 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor), '/p...', Array)
    #6 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
    #7 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
    #8 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(262): MagentoBackendBlockTemplate->_toHtml()
    #9 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(116): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_toHtml()
    #10 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(73): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_getElementHtml(Object(MagentoFrameworkDataFormElementText))
    #11 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(52): MagentoConfigBlockSystemConfigFormField->_renderValue(Object(MagentoFrameworkDataFormElementText))
    #12 /public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoConfigBlockSystemConfigFormField->render(Object(MagentoFrameworkDataFormElementText))
    #13 /public_html/vendor/magento/framework/Interception/Interceptor.php(138): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callParent('render', Array)
    #14 /public_html/vendor/magento/framework/Interception/Interceptor.php(153): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkDataFormElementText))
    #15 /public_html/generated/code/Ebizmarts/MailChimp/Block/Adminhtml/System/Config/Form/Field/CustomerMap/Interceptor.php(26): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callPlugins('render', Array, Array)
    #16 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->render(Object(MagentoFrameworkDataFormElementText))
    #17 /public_html/vendor/magento/framework/Data/Form/Element/Text.php(43): MagentoFrameworkDataFormElementAbstractElement->getHtml()
    #18 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementText->getHtml()
    #19 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(86): MagentoFrameworkDataFormElementAbstractElement->toHtml()
    #20 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(66): MagentoConfigBlockSystemConfigFormFieldset->_getChildrenElementsHtml(Object(MagentoFrameworkDataFormElementFieldset))
    #21 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): MagentoConfigBlockSystemConfigFormFieldset->render(Object(MagentoFrameworkDataFormElementFieldset))
    #22 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementAbstractElement->getHtml()
    #23 /public_html/vendor/magento/framework/Data/Form.php(325): MagentoFrameworkDataFormElementAbstractElement->toHtml()
    #24 /public_html/vendor/magento/framework/Data/Form.php(340): MagentoFrameworkDataForm->toHtml()
    #25 /public_html/vendor/magento/module-backend/Block/Widget/Form.php(101): MagentoFrameworkDataForm->getHtml()
    #26 /public_html/vendor/magento/module-backend/view/adminhtml/templates/widget/form.phtml(15): MagentoBackendBlockWidgetForm->getFormHtml()
    #27 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
    #28 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigForm), '/p...', Array)
    #29 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
    #30 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
    #31 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
    #32 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
    #33 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system\config\f...')
    #34 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system\config\f...')
    #35 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(507): MagentoFrameworkViewLayout->renderElement('system\config\f...', true)
    #36 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/edit.phtml(22): MagentoFrameworkViewElementAbstractBlock->getChildHtml('form')
    #37 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
    #38 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigEdit), '/p...', Array)
    #39 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
    #40 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
    #41 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
    #42 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
    #43 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system.config.e...')
    #44 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system.config.e...')
    #45 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('system.config.e...', false)
    #46 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
    #47 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('content')
    #48 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('content', false)
    #49 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('admin.scope.col...', false)
    #50 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('admin.scope.col...')
    #51 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('admin.scope.col...', false)
    #52 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.col', false)
    #53 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('main.col')
    #54 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('main.col', false)
    #55 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.main.conta...', false)
    #56 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.main.conta...')
    #57 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.main.conta...', false)
    #58 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.content', false)
    #59 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.content')
    #60 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.content', false)
    #61 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
    #62 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
    #63 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
    #64 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('backend.page', false)
    #65 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('backend.page')
    #66 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('backend.page', false)
    #67 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
    #68 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('root')
    #69 /public_html/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayout->renderElement('root')
    #70 /public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(37): MagentoFrameworkViewLayout->getOutput()
    #71 /public_html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
    #72 /public_html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
    #73 /public_html/generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(24): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
    #74 /public_html/vendor/magento/framework/App/Http.php(139): MagentoBackendModelViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
    #75 /public_html/vendor/magento/framework/App/Bootstrap.php(257): MagentoFrameworkAppHttp->launch()
    #76 /public_html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
    #77 main


    CustomerMap.php code as below



    <?php
    /**
    * mc-magento2 Magento Component
    *
    * @category Ebizmarts
    * @package mc-magento2
    * @author Ebizmarts Team <info@ebizmarts.com>
    * @copyright Ebizmarts (http://ebizmarts.com)
    * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
    * @date: 10/27/17 12:01 PM
    * @file: CustomerMap.php
    */

    namespace EbizmartsMailChimpBlockAdminhtmlSystemConfigFormField;

    class CustomerMap extends MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray

    /**
    * @var VarsMap
    */
    protected $_varsRenderer=null;
    protected $_mailchimpRenderer=null;

    protected function _getVarsRenderer()

    if (!$this->_varsRenderer)
    $this->_varsRenderer = $this->getLayout()->createBlock(
    'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldVarsMap',
    '',
    ['data' => ['is_render_to_js_template' => true]]
    );
    $this->_varsRenderer->setClass('customer_field_select');

    return $this->_varsRenderer;

    protected function _getMailchimpRenderer()

    if (!$this->_mailchimpRenderer)
    $this->_mailchimpRenderer = $this->getLayout()->createBlock(
    'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldMailchimpMap',
    '',
    ['data' => ['is_render_to_js_template' => true]]
    );
    $this->_mailchimpRenderer->setClass('mailchimp_field_select');

    return $this->_mailchimpRenderer;


    protected function _prepareToRender()

    // $this->addColumn('mailchimp', ['label' => __('Mailchimp')]);
    $this->addColumn(
    'mailchimp_field_id',
    ['label' => __('Mailchimp'), 'renderer' => $this->_getMailchimpRenderer()]
    );
    $this->addColumn(
    'customer_field_id',
    ['label' => __('Magento'), 'renderer' => $this->_getVarsRenderer()]
    );
    $this->_addAfter = false;
    $this->_addButtonLabel = __('Add');

    protected function _prepareArrayRow(MagentoFrameworkDataObject $row)

    $optionExtraAttr = [];
    $optionExtraAttr['option_' . $this->_getVarsRenderer()->calcOptionHash($row->getData('customer_field_id'))] =
    'selected="selected"';
    //$optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
    // 'selected="selected"';
    $row->setData(
    'option_extra_attrs',
    $optionExtraAttr
    );











    share|improve this question


























      2












      2








      2









      Exception #0 (Exception): Notice: Array to string conversion in
      /public_html/vendor/magento/framework/View/Element/Html/Select.php on
      line 244




      line 235-244 of the Select.php



      public function calcOptionHash($optionValue)

      return sprintf('%u', crc32($this->getName() . $this->getId() . $optionValue));



      this is when i try to go to mailchimp configuration tab on the admin page.



      full exception message here:



      Exception #0 (Exception): Notice: Array to string conversion in /public_html/vendor/magento/framework/View/Element/Html/Select.php on line 243
      #0 /public_html/vendor/magento/framework/View/Element/Html/Select.php(243): MagentoFrameworkAppErrorHandler->handler(8, 'Array to string...', '/p...', 243, Array)
      #1 /public_html/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php(68): MagentoFrameworkViewElementHtmlSelect->calcOptionHash(Array)
      #2 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(159): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMap->_prepareArrayRow(Object(MagentoFrameworkDataObject))
      #3 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/form/field/array.phtml(117): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->getArrayRows()
      #4 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
      #5 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor), '/p...', Array)
      #6 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
      #7 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
      #8 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(262): MagentoBackendBlockTemplate->_toHtml()
      #9 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(116): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_toHtml()
      #10 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(73): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_getElementHtml(Object(MagentoFrameworkDataFormElementText))
      #11 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(52): MagentoConfigBlockSystemConfigFormField->_renderValue(Object(MagentoFrameworkDataFormElementText))
      #12 /public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoConfigBlockSystemConfigFormField->render(Object(MagentoFrameworkDataFormElementText))
      #13 /public_html/vendor/magento/framework/Interception/Interceptor.php(138): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callParent('render', Array)
      #14 /public_html/vendor/magento/framework/Interception/Interceptor.php(153): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkDataFormElementText))
      #15 /public_html/generated/code/Ebizmarts/MailChimp/Block/Adminhtml/System/Config/Form/Field/CustomerMap/Interceptor.php(26): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callPlugins('render', Array, Array)
      #16 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->render(Object(MagentoFrameworkDataFormElementText))
      #17 /public_html/vendor/magento/framework/Data/Form/Element/Text.php(43): MagentoFrameworkDataFormElementAbstractElement->getHtml()
      #18 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementText->getHtml()
      #19 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(86): MagentoFrameworkDataFormElementAbstractElement->toHtml()
      #20 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(66): MagentoConfigBlockSystemConfigFormFieldset->_getChildrenElementsHtml(Object(MagentoFrameworkDataFormElementFieldset))
      #21 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): MagentoConfigBlockSystemConfigFormFieldset->render(Object(MagentoFrameworkDataFormElementFieldset))
      #22 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementAbstractElement->getHtml()
      #23 /public_html/vendor/magento/framework/Data/Form.php(325): MagentoFrameworkDataFormElementAbstractElement->toHtml()
      #24 /public_html/vendor/magento/framework/Data/Form.php(340): MagentoFrameworkDataForm->toHtml()
      #25 /public_html/vendor/magento/module-backend/Block/Widget/Form.php(101): MagentoFrameworkDataForm->getHtml()
      #26 /public_html/vendor/magento/module-backend/view/adminhtml/templates/widget/form.phtml(15): MagentoBackendBlockWidgetForm->getFormHtml()
      #27 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
      #28 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigForm), '/p...', Array)
      #29 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
      #30 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
      #31 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
      #32 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
      #33 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system\config\f...')
      #34 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system\config\f...')
      #35 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(507): MagentoFrameworkViewLayout->renderElement('system\config\f...', true)
      #36 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/edit.phtml(22): MagentoFrameworkViewElementAbstractBlock->getChildHtml('form')
      #37 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
      #38 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigEdit), '/p...', Array)
      #39 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
      #40 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
      #41 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
      #42 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
      #43 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system.config.e...')
      #44 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system.config.e...')
      #45 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('system.config.e...', false)
      #46 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
      #47 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('content')
      #48 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('content', false)
      #49 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('admin.scope.col...', false)
      #50 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('admin.scope.col...')
      #51 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('admin.scope.col...', false)
      #52 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.col', false)
      #53 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('main.col')
      #54 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('main.col', false)
      #55 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.main.conta...', false)
      #56 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.main.conta...')
      #57 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.main.conta...', false)
      #58 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.content', false)
      #59 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.content')
      #60 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.content', false)
      #61 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
      #62 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
      #63 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
      #64 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('backend.page', false)
      #65 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('backend.page')
      #66 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('backend.page', false)
      #67 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
      #68 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('root')
      #69 /public_html/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayout->renderElement('root')
      #70 /public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(37): MagentoFrameworkViewLayout->getOutput()
      #71 /public_html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
      #72 /public_html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
      #73 /public_html/generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(24): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
      #74 /public_html/vendor/magento/framework/App/Http.php(139): MagentoBackendModelViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
      #75 /public_html/vendor/magento/framework/App/Bootstrap.php(257): MagentoFrameworkAppHttp->launch()
      #76 /public_html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
      #77 main


      CustomerMap.php code as below



      <?php
      /**
      * mc-magento2 Magento Component
      *
      * @category Ebizmarts
      * @package mc-magento2
      * @author Ebizmarts Team <info@ebizmarts.com>
      * @copyright Ebizmarts (http://ebizmarts.com)
      * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
      * @date: 10/27/17 12:01 PM
      * @file: CustomerMap.php
      */

      namespace EbizmartsMailChimpBlockAdminhtmlSystemConfigFormField;

      class CustomerMap extends MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray

      /**
      * @var VarsMap
      */
      protected $_varsRenderer=null;
      protected $_mailchimpRenderer=null;

      protected function _getVarsRenderer()

      if (!$this->_varsRenderer)
      $this->_varsRenderer = $this->getLayout()->createBlock(
      'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldVarsMap',
      '',
      ['data' => ['is_render_to_js_template' => true]]
      );
      $this->_varsRenderer->setClass('customer_field_select');

      return $this->_varsRenderer;

      protected function _getMailchimpRenderer()

      if (!$this->_mailchimpRenderer)
      $this->_mailchimpRenderer = $this->getLayout()->createBlock(
      'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldMailchimpMap',
      '',
      ['data' => ['is_render_to_js_template' => true]]
      );
      $this->_mailchimpRenderer->setClass('mailchimp_field_select');

      return $this->_mailchimpRenderer;


      protected function _prepareToRender()

      // $this->addColumn('mailchimp', ['label' => __('Mailchimp')]);
      $this->addColumn(
      'mailchimp_field_id',
      ['label' => __('Mailchimp'), 'renderer' => $this->_getMailchimpRenderer()]
      );
      $this->addColumn(
      'customer_field_id',
      ['label' => __('Magento'), 'renderer' => $this->_getVarsRenderer()]
      );
      $this->_addAfter = false;
      $this->_addButtonLabel = __('Add');

      protected function _prepareArrayRow(MagentoFrameworkDataObject $row)

      $optionExtraAttr = [];
      $optionExtraAttr['option_' . $this->_getVarsRenderer()->calcOptionHash($row->getData('customer_field_id'))] =
      'selected="selected"';
      //$optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
      // 'selected="selected"';
      $row->setData(
      'option_extra_attrs',
      $optionExtraAttr
      );











      share|improve this question

















      Exception #0 (Exception): Notice: Array to string conversion in
      /public_html/vendor/magento/framework/View/Element/Html/Select.php on
      line 244




      line 235-244 of the Select.php



      public function calcOptionHash($optionValue)

      return sprintf('%u', crc32($this->getName() . $this->getId() . $optionValue));



      this is when i try to go to mailchimp configuration tab on the admin page.



      full exception message here:



      Exception #0 (Exception): Notice: Array to string conversion in /public_html/vendor/magento/framework/View/Element/Html/Select.php on line 243
      #0 /public_html/vendor/magento/framework/View/Element/Html/Select.php(243): MagentoFrameworkAppErrorHandler->handler(8, 'Array to string...', '/p...', 243, Array)
      #1 /public_html/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php(68): MagentoFrameworkViewElementHtmlSelect->calcOptionHash(Array)
      #2 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(159): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMap->_prepareArrayRow(Object(MagentoFrameworkDataObject))
      #3 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/form/field/array.phtml(117): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->getArrayRows()
      #4 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
      #5 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor), '/p...', Array)
      #6 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
      #7 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
      #8 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(262): MagentoBackendBlockTemplate->_toHtml()
      #9 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php(116): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_toHtml()
      #10 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(73): MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray->_getElementHtml(Object(MagentoFrameworkDataFormElementText))
      #11 /public_html/vendor/magento/module-config/Block/System/Config/Form/Field.php(52): MagentoConfigBlockSystemConfigFormField->_renderValue(Object(MagentoFrameworkDataFormElementText))
      #12 /public_html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoConfigBlockSystemConfigFormField->render(Object(MagentoFrameworkDataFormElementText))
      #13 /public_html/vendor/magento/framework/Interception/Interceptor.php(138): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callParent('render', Array)
      #14 /public_html/vendor/magento/framework/Interception/Interceptor.php(153): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->MagentoFrameworkInterceptionclosure(Object(MagentoFrameworkDataFormElementText))
      #15 /public_html/generated/code/Ebizmarts/MailChimp/Block/Adminhtml/System/Config/Form/Field/CustomerMap/Interceptor.php(26): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->___callPlugins('render', Array, Array)
      #16 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldCustomerMapInterceptor->render(Object(MagentoFrameworkDataFormElementText))
      #17 /public_html/vendor/magento/framework/Data/Form/Element/Text.php(43): MagentoFrameworkDataFormElementAbstractElement->getHtml()
      #18 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementText->getHtml()
      #19 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(86): MagentoFrameworkDataFormElementAbstractElement->toHtml()
      #20 /public_html/vendor/magento/module-config/Block/System/Config/Form/Fieldset.php(66): MagentoConfigBlockSystemConfigFormFieldset->_getChildrenElementsHtml(Object(MagentoFrameworkDataFormElementFieldset))
      #21 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(459): MagentoConfigBlockSystemConfigFormFieldset->render(Object(MagentoFrameworkDataFormElementFieldset))
      #22 /public_html/vendor/magento/framework/Data/Form/Element/AbstractElement.php(473): MagentoFrameworkDataFormElementAbstractElement->getHtml()
      #23 /public_html/vendor/magento/framework/Data/Form.php(325): MagentoFrameworkDataFormElementAbstractElement->toHtml()
      #24 /public_html/vendor/magento/framework/Data/Form.php(340): MagentoFrameworkDataForm->toHtml()
      #25 /public_html/vendor/magento/module-backend/Block/Widget/Form.php(101): MagentoFrameworkDataForm->getHtml()
      #26 /public_html/vendor/magento/module-backend/view/adminhtml/templates/widget/form.phtml(15): MagentoBackendBlockWidgetForm->getFormHtml()
      #27 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
      #28 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigForm), '/p...', Array)
      #29 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
      #30 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
      #31 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
      #32 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
      #33 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system\config\f...')
      #34 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system\config\f...')
      #35 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(507): MagentoFrameworkViewLayout->renderElement('system\config\f...', true)
      #36 /public_html/vendor/magento/module-config/view/adminhtml/templates/system/config/edit.phtml(22): MagentoFrameworkViewElementAbstractBlock->getChildHtml('form')
      #37 /public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/p...')
      #38 /public_html/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoConfigBlockSystemConfigEdit), '/p...', Array)
      #39 /public_html/vendor/magento/framework/View/Element/Template.php(300): MagentoFrameworkViewElementTemplate->fetchView('/p...')
      #40 /public_html/vendor/magento/module-backend/Block/Template.php(126): MagentoFrameworkViewElementTemplate->_toHtml()
      #41 /public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): MagentoBackendBlockTemplate->_toHtml()
      #42 /public_html/vendor/magento/framework/View/Layout.php(557): MagentoFrameworkViewElementAbstractBlock->toHtml()
      #43 /public_html/vendor/magento/framework/View/Layout.php(533): MagentoFrameworkViewLayout->_renderBlock('system.config.e...')
      #44 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('system.config.e...')
      #45 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('system.config.e...', false)
      #46 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('content', false)
      #47 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('content')
      #48 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('content', false)
      #49 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('admin.scope.col...', false)
      #50 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('admin.scope.col...')
      #51 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('admin.scope.col...', false)
      #52 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('main.col', false)
      #53 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('main.col')
      #54 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('main.col', false)
      #55 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.main.conta...', false)
      #56 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.main.conta...')
      #57 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.main.conta...', false)
      #58 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.content', false)
      #59 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.content')
      #60 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.content', false)
      #61 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
      #62 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
      #63 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
      #64 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('backend.page', false)
      #65 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('backend.page')
      #66 /public_html/vendor/magento/framework/View/Layout.php(585): MagentoFrameworkViewLayout->renderElement('backend.page', false)
      #67 /public_html/vendor/magento/framework/View/Layout.php(535): MagentoFrameworkViewLayout->_renderContainer('root', false)
      #68 /public_html/vendor/magento/framework/View/Layout.php(488): MagentoFrameworkViewLayout->renderNonCachedElement('root')
      #69 /public_html/vendor/magento/framework/View/Layout.php(954): MagentoFrameworkViewLayout->renderElement('root')
      #70 /public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(37): MagentoFrameworkViewLayout->getOutput()
      #71 /public_html/vendor/magento/framework/View/Result/Page.php(257): MagentoFrameworkViewLayoutInterceptor->getOutput()
      #72 /public_html/vendor/magento/framework/View/Result/Layout.php(170): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
      #73 /public_html/generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(24): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
      #74 /public_html/vendor/magento/framework/App/Http.php(139): MagentoBackendModelViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
      #75 /public_html/vendor/magento/framework/App/Bootstrap.php(257): MagentoFrameworkAppHttp->launch()
      #76 /public_html/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
      #77 main


      CustomerMap.php code as below



      <?php
      /**
      * mc-magento2 Magento Component
      *
      * @category Ebizmarts
      * @package mc-magento2
      * @author Ebizmarts Team <info@ebizmarts.com>
      * @copyright Ebizmarts (http://ebizmarts.com)
      * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
      * @date: 10/27/17 12:01 PM
      * @file: CustomerMap.php
      */

      namespace EbizmartsMailChimpBlockAdminhtmlSystemConfigFormField;

      class CustomerMap extends MagentoConfigBlockSystemConfigFormFieldFieldArrayAbstractFieldArray

      /**
      * @var VarsMap
      */
      protected $_varsRenderer=null;
      protected $_mailchimpRenderer=null;

      protected function _getVarsRenderer()

      if (!$this->_varsRenderer)
      $this->_varsRenderer = $this->getLayout()->createBlock(
      'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldVarsMap',
      '',
      ['data' => ['is_render_to_js_template' => true]]
      );
      $this->_varsRenderer->setClass('customer_field_select');

      return $this->_varsRenderer;

      protected function _getMailchimpRenderer()

      if (!$this->_mailchimpRenderer)
      $this->_mailchimpRenderer = $this->getLayout()->createBlock(
      'EbizmartsMailChimpBlockAdminhtmlSystemConfigFormFieldMailchimpMap',
      '',
      ['data' => ['is_render_to_js_template' => true]]
      );
      $this->_mailchimpRenderer->setClass('mailchimp_field_select');

      return $this->_mailchimpRenderer;


      protected function _prepareToRender()

      // $this->addColumn('mailchimp', ['label' => __('Mailchimp')]);
      $this->addColumn(
      'mailchimp_field_id',
      ['label' => __('Mailchimp'), 'renderer' => $this->_getMailchimpRenderer()]
      );
      $this->addColumn(
      'customer_field_id',
      ['label' => __('Magento'), 'renderer' => $this->_getVarsRenderer()]
      );
      $this->_addAfter = false;
      $this->_addButtonLabel = __('Add');

      protected function _prepareArrayRow(MagentoFrameworkDataObject $row)

      $optionExtraAttr = [];
      $optionExtraAttr['option_' . $this->_getVarsRenderer()->calcOptionHash($row->getData('customer_field_id'))] =
      'selected="selected"';
      //$optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
      // 'selected="selected"';
      $row->setData(
      'option_extra_attrs',
      $optionExtraAttr
      );








      magento2 exception array mailchimp conversion






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 mins ago







      Kris Wen

















      asked 8 hours ago









      Kris WenKris Wen

      958




      958




















          2 Answers
          2






          active

          oldest

          votes


















          0














          The error says that the return data type in select is Array but it has been printed as a string. To resolve this, you have to change the way return type is printed using print_r function.






          share|improve this answer

























          • Hi, i tried that,but still getting the same error message. can you help? thanks.

            – Kris Wen
            43 mins ago











          • you did like this return print_r('%u', crc32($this->getName() . $this->getId() . $optionValue)); ?

            – magefms
            42 mins ago











          • yes, that's what i did.

            – Kris Wen
            20 mins ago


















          0














          It is an error of Mailchimp module just go to the below location




          Magento_root/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php




          On the line number 68 comment the below code



          $optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
          'selected="selected"';


          Since initially your Magento store is not connected with the Mailchimp so it is not able to fetch the Mailchimp field values & that's why it is giving error.



          Please refer this






          share|improve this answer























          • Hi, I tried comment out the line 68 & 69. but when i tried to save at the configuration page. i still get the error page HTTP Error 500. any solution to that? thanks

            – Kris Wen
            47 mins ago











          • 500 error means there is some problem with the syntax or the code can you please update your code here?

            – ABHISHEK TRIPATHI
            35 mins ago











          • i add the CustomerMap.php code in the question, thank you.

            – Kris Wen
            18 mins ago










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266759%2fhow-to-resolve-exception-0-exception-notice-array-to-string-conversion-mail%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          The error says that the return data type in select is Array but it has been printed as a string. To resolve this, you have to change the way return type is printed using print_r function.






          share|improve this answer

























          • Hi, i tried that,but still getting the same error message. can you help? thanks.

            – Kris Wen
            43 mins ago











          • you did like this return print_r('%u', crc32($this->getName() . $this->getId() . $optionValue)); ?

            – magefms
            42 mins ago











          • yes, that's what i did.

            – Kris Wen
            20 mins ago















          0














          The error says that the return data type in select is Array but it has been printed as a string. To resolve this, you have to change the way return type is printed using print_r function.






          share|improve this answer

























          • Hi, i tried that,but still getting the same error message. can you help? thanks.

            – Kris Wen
            43 mins ago











          • you did like this return print_r('%u', crc32($this->getName() . $this->getId() . $optionValue)); ?

            – magefms
            42 mins ago











          • yes, that's what i did.

            – Kris Wen
            20 mins ago













          0












          0








          0







          The error says that the return data type in select is Array but it has been printed as a string. To resolve this, you have to change the way return type is printed using print_r function.






          share|improve this answer















          The error says that the return data type in select is Array but it has been printed as a string. To resolve this, you have to change the way return type is printed using print_r function.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 5 hours ago

























          answered 5 hours ago









          magefmsmagefms

          1,9171425




          1,9171425












          • Hi, i tried that,but still getting the same error message. can you help? thanks.

            – Kris Wen
            43 mins ago











          • you did like this return print_r('%u', crc32($this->getName() . $this->getId() . $optionValue)); ?

            – magefms
            42 mins ago











          • yes, that's what i did.

            – Kris Wen
            20 mins ago

















          • Hi, i tried that,but still getting the same error message. can you help? thanks.

            – Kris Wen
            43 mins ago











          • you did like this return print_r('%u', crc32($this->getName() . $this->getId() . $optionValue)); ?

            – magefms
            42 mins ago











          • yes, that's what i did.

            – Kris Wen
            20 mins ago
















          Hi, i tried that,but still getting the same error message. can you help? thanks.

          – Kris Wen
          43 mins ago





          Hi, i tried that,but still getting the same error message. can you help? thanks.

          – Kris Wen
          43 mins ago













          you did like this return print_r('%u', crc32($this->getName() . $this->getId() . $optionValue)); ?

          – magefms
          42 mins ago





          you did like this return print_r('%u', crc32($this->getName() . $this->getId() . $optionValue)); ?

          – magefms
          42 mins ago













          yes, that's what i did.

          – Kris Wen
          20 mins ago





          yes, that's what i did.

          – Kris Wen
          20 mins ago













          0














          It is an error of Mailchimp module just go to the below location




          Magento_root/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php




          On the line number 68 comment the below code



          $optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
          'selected="selected"';


          Since initially your Magento store is not connected with the Mailchimp so it is not able to fetch the Mailchimp field values & that's why it is giving error.



          Please refer this






          share|improve this answer























          • Hi, I tried comment out the line 68 & 69. but when i tried to save at the configuration page. i still get the error page HTTP Error 500. any solution to that? thanks

            – Kris Wen
            47 mins ago











          • 500 error means there is some problem with the syntax or the code can you please update your code here?

            – ABHISHEK TRIPATHI
            35 mins ago











          • i add the CustomerMap.php code in the question, thank you.

            – Kris Wen
            18 mins ago















          0














          It is an error of Mailchimp module just go to the below location




          Magento_root/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php




          On the line number 68 comment the below code



          $optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
          'selected="selected"';


          Since initially your Magento store is not connected with the Mailchimp so it is not able to fetch the Mailchimp field values & that's why it is giving error.



          Please refer this






          share|improve this answer























          • Hi, I tried comment out the line 68 & 69. but when i tried to save at the configuration page. i still get the error page HTTP Error 500. any solution to that? thanks

            – Kris Wen
            47 mins ago











          • 500 error means there is some problem with the syntax or the code can you please update your code here?

            – ABHISHEK TRIPATHI
            35 mins ago











          • i add the CustomerMap.php code in the question, thank you.

            – Kris Wen
            18 mins ago













          0












          0








          0







          It is an error of Mailchimp module just go to the below location




          Magento_root/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php




          On the line number 68 comment the below code



          $optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
          'selected="selected"';


          Since initially your Magento store is not connected with the Mailchimp so it is not able to fetch the Mailchimp field values & that's why it is giving error.



          Please refer this






          share|improve this answer













          It is an error of Mailchimp module just go to the below location




          Magento_root/vendor/mailchimp/mc-magento2/Block/Adminhtml/System/Config/Form/Field/CustomerMap.php




          On the line number 68 comment the below code



          $optionExtraAttr['option_' . $this->_getMailchimpRenderer()->calcOptionHash($row->getData('mailchimp_field_id'))] =
          'selected="selected"';


          Since initially your Magento store is not connected with the Mailchimp so it is not able to fetch the Mailchimp field values & that's why it is giving error.



          Please refer this







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          ABHISHEK TRIPATHIABHISHEK TRIPATHI

          1,9451726




          1,9451726












          • Hi, I tried comment out the line 68 & 69. but when i tried to save at the configuration page. i still get the error page HTTP Error 500. any solution to that? thanks

            – Kris Wen
            47 mins ago











          • 500 error means there is some problem with the syntax or the code can you please update your code here?

            – ABHISHEK TRIPATHI
            35 mins ago











          • i add the CustomerMap.php code in the question, thank you.

            – Kris Wen
            18 mins ago

















          • Hi, I tried comment out the line 68 & 69. but when i tried to save at the configuration page. i still get the error page HTTP Error 500. any solution to that? thanks

            – Kris Wen
            47 mins ago











          • 500 error means there is some problem with the syntax or the code can you please update your code here?

            – ABHISHEK TRIPATHI
            35 mins ago











          • i add the CustomerMap.php code in the question, thank you.

            – Kris Wen
            18 mins ago
















          Hi, I tried comment out the line 68 & 69. but when i tried to save at the configuration page. i still get the error page HTTP Error 500. any solution to that? thanks

          – Kris Wen
          47 mins ago





          Hi, I tried comment out the line 68 & 69. but when i tried to save at the configuration page. i still get the error page HTTP Error 500. any solution to that? thanks

          – Kris Wen
          47 mins ago













          500 error means there is some problem with the syntax or the code can you please update your code here?

          – ABHISHEK TRIPATHI
          35 mins ago





          500 error means there is some problem with the syntax or the code can you please update your code here?

          – ABHISHEK TRIPATHI
          35 mins ago













          i add the CustomerMap.php code in the question, thank you.

          – Kris Wen
          18 mins ago





          i add the CustomerMap.php code in the question, thank you.

          – Kris Wen
          18 mins ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266759%2fhow-to-resolve-exception-0-exception-notice-array-to-string-conversion-mail%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

          Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

          Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko