Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error saving configuration when install the extension for the first time #1510

Closed
gonzaloebiz opened this issue Aug 18, 2022 · 0 comments · Fixed by #1511, #1512, #1513, #1514 or #1515
Closed

Error saving configuration when install the extension for the first time #1510

gonzaloebiz opened this issue Aug 18, 2022 · 0 comments · Fixed by #1511, #1512, #1513, #1514 or #1515

Comments

@gonzaloebiz
Copy link
Collaborator

gonzaloebiz commented Aug 18, 2022

Issue Description

Preconditions

1. Install any version of magento
2. Install mc-magento2 version 10x.x.47

Steps to reproduce

1. Navigate to configuration page of the extension
2. Enable it and configure with any Mailchimp store
3. Click "save"

Actual and Expected result

When try to save the configuration and take a look at the debug.log

main.CRITICAL: ArgumentCountError: Too few arguments to function Ebizmarts\MailChimp\Helper\Data::resetErrors(), 1 passed in vendor/mailchimp/mc-magento2/Model/Config/Backend/MonkeyStore.php on line 135 and exactly 2 expected in vendor/mailchimp/mc-magento2/Helper/Data.php:834
Stack trace:
#0 vendor/mailchimp/mc-magento2/Model/Config/Backend/MonkeyStore.php(135): Ebizmarts\MailChimp\Helper\Data->resetErrors()
#1 generated/code/Ebizmarts/MailChimp/Model/Config/Backend/MonkeyStore/Interceptor.php(23): Ebizmarts\MailChimp\Model\Config\Backend\MonkeyStore->beforeSave()
#2 vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(412): Ebizmarts\MailChimp\Model\Config\Backend\MonkeyStore\Interceptor->beforeSave()
#3 vendor/magento/framework/Model/AbstractModel.php(655): Magento\Framework\Model\ResourceModel\Db\AbstractDb->save()
#4 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Model\AbstractModel->save()
#5 vendor/magento/framework/Interception/Interceptor.php(138): Ebizmarts\MailChimp\Model\Config\Backend\MonkeyStore\Interceptor->___callParent()
#6 vendor/magento/framework/Interception/Interceptor.php(153): Ebizmarts\MailChimp\Model\Config\Backend\MonkeyStore\Interceptor->Magento\Framework\Interception\{closure}()
#7 generated/code/Ebizmarts/MailChimp/Model/Config/Backend/MonkeyStore/Interceptor.php(257): Ebizmarts\MailChimp\Model\Config\Backend\MonkeyStore\Interceptor->___callPlugins()
#8 vendor/magento/framework/DB/Transaction.php(129): Ebizmarts\MailChimp\Model\Config\Backend\MonkeyStore\Interceptor->save()
#9 vendor/magento/module-config/Model/Config.php(216): Magento\Framework\DB\Transaction->save()
#10 vendor/magento/module-config/Controller/Adminhtml/System/Config/Save.php(226): Magento\Config\Model\Config->save()
#11 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Config\Controller\Adminhtml\System\Config\Save->execute()
#12 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->___callParent()
#13 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->Magento\Framework\Interception\{closure}()
#14 generated/code/Magento/Config/Controller/Adminhtml/System/Config/Save/Interceptor.php(23): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->___callPlugins()
#15 vendor/magento/framework/App/Action/Action.php(111): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->execute()
#16 vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch()
#17 vendor/magento/module-config/Controller/Adminhtml/System/AbstractConfig.php(69): Magento\Backend\App\AbstractAction->dispatch()
#18 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Config\Controller\Adminhtml\System\AbstractConfig->dispatch()
#19 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->___callParent()
#20 vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->Magento\Framework\Interception\{closure}()
#21 vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch()
#22 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->Magento\Framework\Interception\{closure}()
#23 generated/code/Magento/Config/Controller/Adminhtml/System/Config/Save/Interceptor.php(32): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->___callPlugins()
#24 vendor/magento/framework/App/FrontController.php(245): Magento\Config\Controller\Adminhtml\System\Config\Save\Interceptor->dispatch()
#25 vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
#26 vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest()
#27 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
#28 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
#29 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
#30 generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
#31 vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
#32 generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch()
#33 vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#34 pub/index.php(29): Magento\Framework\App\Bootstrap->run()
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
@gonzaloebiz gonzaloebiz self-assigned this Aug 18, 2022
@gonzaloebiz gonzaloebiz added this to the 10x.x.48 milestone Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
gonzaloebiz added a commit that referenced this issue Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment