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
Echo with obfuscation
Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?
Does the Crossbow Expert feat's extra crossbow attack work with the reaction attack from a Hunter ranger's Giant Killer feature?
How much do grades matter for a future academia position?
Mimic lecturing on blackboard, facing audience
When and why was runway 07/25 at Kai Tak removed?
Has the laser at Magurele, Romania reached a tenth of the Sun's power?
Language involving irrational number is not a CFL
I'm just a whisper. Who am I?
Should I assume I have passed probation?
Can I cause damage to electrical appliances by unplugging them when they are turned on?
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
Anime with legendary swords made from talismans and a man who could change them with a shattered body
Is there a RAID 0 Equivalent for RAM?
Thank You : 谢谢 vs 感谢 vs 跪谢 vs 多谢
Given this phrasing in the lease, when should I pay my rent?
Visualizing the difference curve in a 2D plot?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
How to test the sharpness of a knife?
Unable to disable Microsoft Store in domain environment
Why does a 97 / 92 key piano exist by Bösendorfer?
If the only attacker is removed from combat, is a creature still counted as having attacked this turn?
Can I say "fingers" when referring to toes?
How to preserve electronics (computers, iPads and phones) for hundreds of years
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
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
add a comment |
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
add a comment |
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
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
magento2 exception array mailchimp conversion
edited 7 mins ago
Kris Wen
asked 8 hours ago
Kris WenKris Wen
958
958
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
Hi, i tried that,but still getting the same error message. can you help? thanks.
– Kris Wen
43 mins ago
you did like thisreturn print_r('%u', crc32($this->getName() . $this->getId() . $optionValue));
?
– magefms
42 mins ago
yes, that's what i did.
– Kris Wen
20 mins ago
add a comment |
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
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
46 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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Hi, i tried that,but still getting the same error message. can you help? thanks.
– Kris Wen
43 mins ago
you did like thisreturn print_r('%u', crc32($this->getName() . $this->getId() . $optionValue));
?
– magefms
42 mins ago
yes, that's what i did.
– Kris Wen
20 mins ago
add a comment |
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.
Hi, i tried that,but still getting the same error message. can you help? thanks.
– Kris Wen
43 mins ago
you did like thisreturn print_r('%u', crc32($this->getName() . $this->getId() . $optionValue));
?
– magefms
42 mins ago
yes, that's what i did.
– Kris Wen
20 mins ago
add a comment |
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.
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.
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 thisreturn print_r('%u', crc32($this->getName() . $this->getId() . $optionValue));
?
– magefms
42 mins ago
yes, that's what i did.
– Kris Wen
20 mins ago
add a comment |
Hi, i tried that,but still getting the same error message. can you help? thanks.
– Kris Wen
43 mins ago
you did like thisreturn 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
add a comment |
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
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
46 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
add a comment |
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
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
46 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
add a comment |
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
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
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
46 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
add a comment |
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
46 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
46 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
46 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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