This topic can no longer be replied to because it has been locked.

call to undefined Data::getUrl()
Gravatar
Joined: 2018-10-09
Posts: 3
I have just installed version 1.0.30 of MC on Magento 2.4.
The configuration options are present but no main admin menu.
When trying to directly hit the module URL via the admin the error presented is call to undefined Data::getUrl() from AbstractAction class, I can see no method implemented in Helpers/Data for getUrl().

If you require any further information please let me know
Gravatar
Joined: 2018-08-14
Posts: 249
Hi,

Thanks for contacting us.

1. Do you have the logs enabled for the extension? If you do please share any log file located under your var/log folder with MailChimp in its name. Adding the Magento logs as well will probably add some information.
Magento 2: Mailchimp.log, system.log, debug.log
2. Please add a screenshot of anything relevant to the error.
3. Can you explain more this "the configuration options are present but no main admin menu"?

Please cover all sensitive information like the API key.
Gravatar
Joined: 2018-10-09
Posts: 3
Hi thank you for the reply.

1. Yes logs are enabled - nothing is output relating to MailChimp in system.log or debug.log. In fact nothing of interest is output in these logs at the time of error.
[2018-10-15 13:37:26] MailChimpLogger.INFO: Resource Not Found for Api Call: [https://us19.api.mailchimp.com/3.0/lists/0/interest-categories] using method [GET]
Detail: [The requested resource could not be found.]

[] []

is all thats in the mailchimp log

2. Fatal error: Uncaught Error: Call to undefined method Ebizmarts\MailChimp\Helper\Data::getUrl() in /var/www/html/gf/htdocs/vendor/magento/module-backend/App/AbstractAction.php on line 343 ( ! ) Error: Call to undefined method Ebizmarts\MailChimp\Helper\Data::getUrl() in /var/www/html/gf/htdocs/vendor/magento/module-backend/App/AbstractAction.php on line 343 Call Stack # Time Memory Function Location 1 0.0098 368728 {main}( ) .../index.php:0 2 0.2070 5280376 Magento\Framework\App\Bootstrap->run( ??? ) .../index.php:39 3 0.2092 5364808 Magento\Framework\App\Http\Interceptor->launch( ) .../Bootstrap.php:256 4 0.2116 5747512 Magento\Framework\App\Http\Interceptor->launch( ) .../Interceptor.php:24 5 0.2870 8562120 Magento\Framework\App\FrontController\Interceptor->dispatch( ??? ) .../Http.php:135 6 0.2884 8522432 Magento\Framework\App\FrontController\Interceptor->___callPlugins( ???, ???, ??? ) .../Interceptor.php:26 7 0.2884 8523176 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}( ...variadic(???) ) .../Interceptor.php:153 8 0.3057 9310224 Magento\Framework\App\FrontController\Interceptor->___callParent( ???, ??? ) .../Interceptor.php:138 9 0.3057 9310224 Magento\Framework\App\FrontController\Interceptor->dispatch( ??? ) .../Interceptor.php:58 10 0.6472 16906256 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->dispatch( ??? ) .../FrontController.php:55 11 0.6538 16930568 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->___callPlugins( ???, ???, ??? ) .../Interceptor.php:39 12 0.6538 16931312 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->Magento\Framework\Interception\{closure}( ...variadic(???) ) .../Interceptor.php:153 13 0.8227 18716800 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch( ???, ???, ??? ) .../Interceptor.php:135 14 0.8493 18812880 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->Magento\Framework\Interception\{closure}( ...variadic(???) ) .../Authentication.php:143 15 0.8493 18813296 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->___callParent( ???, ??? ) .../Interceptor.php:138 16 0.8493 18813296 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->dispatch( ??? ) .../Interceptor.php:58 17 0.8493 18813296 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->_processUrlKeys( ) .../AbstractAction.php:208 18 0.8493 18813296 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->_processUrlKeys( ) .../Interceptor.php:50 19 1.0655 20554648 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->_redirect( ???, ??? ) .../AbstractAction.php:276 20 1.0656 20554728 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->getUrl( ???, ??? ) .../AbstractAction.php:314 21 1.0657 20554728 Ebizmarts\MailChimp\Controller\Adminhtml\Stores\Index\Interceptor->getUrl( ???, ??? ) .../Interceptor.php:63

3. Main configuration options are available under Stores -> Configuration -> MailChimp
There is no left hand side bar main menu for Mailchimp options such as setup of stores
Gravatar
Joined: 2018-08-14
Posts: 249
How did you installed the extension?
The extension is not correctly installed, please uninstall it and install it again via composer, run the next two commands from the command line to install the extension via composer, but before be sure that you have uninstalled the previous installation:
composer require mailchimp/mc-magento2
bin/magento setup:upgrade
Gravatar
Joined: 2019-03-08
Posts: 5

Dan Sanderson - 2018-10-09

I have just installed version 1.0.30 of MC on Magento 2.4.
The configuration options are present but no main admin menu.
When trying to directly hit the module URL via the admin the error presented is call to undefined Data::getUrl() from AbstractAction class, I can see no method implemented in Helpers/Data for getUrl().

If you require any further information please let me know



Hello, have you solved your problem?
I have a very similar problem with a M2.2.7 installation where on the left side dark menu I have no MAILCHIMP menu item and I cannot create any MAILCHIMP Store (using last 1.2.33 mailchimp component from github and installed thru magento command line coomands)

Thanks
Gravatar
Joined: 2018-10-09
Posts: 3
Yes we solved our issue.
One of the functions was not enabled by default in the config.php, and we couldn't see it for trying.
'Ebizmarts_MailChimp' => 0,
Gravatar
Joined: 2019-03-08
Posts: 5
Thanks for answering.
Mine is already enabled, but I ferat to have somethign else not working in my case

I think some menu items are missing, documentation is not very clear.

https://prnt.sc/mw9bv1
https://prnt.sc/mw9bs1
Gravatar
Joined: 2018-08-14
Posts: 249

Loris Luise - 2019-03-11

Thanks for answering.
Mine is already enabled, but I ferat to have somethign else not working in my case

I think some menu items are missing, documentation is not very clear.

https://prnt.sc/mw9bv1
https://prnt.sc/mw9bs1



Hi,

Can you tell me your current mailchimp and magento version numbers?
Gravatar
Joined: 2019-03-08
Posts: 5
HEllo,

sure, I'm using

M2.2.7
MailChip1.2.33

from composer.json

"require": {
...

"magento/product-community-edition": "2.2.7",
"ebizmarts/mailchimp-lib": "3.0.*",
"mailchimp/mc-magento2": "1.2.33"
...

Gravatar
Joined: 2018-08-14
Posts: 249

Loris Luise - 2019-03-12

HEllo,

sure, I'm using

M2.2.7
MailChip1.2.33

from composer.json

"require": {
...

"magento/product-community-edition": "2.2.7",
"ebizmarts/mailchimp-lib": "3.0.*",
"mailchimp/mc-magento2": "1.2.33"
...



Hi,

Can you tell me your current mailchimp-lib version numbers? To see this access to yourMagentoRootFolder-> vendor-> ebizmarts-> mailchimp-lib-> composer.json
Can you tell me how did you installed the extension step by step, please?
Have you performed clear Magento cache after install the extension?

NEWSLETTER

Subscribe to our newsletter to receive emails and useful news articles