rainlab / mailchimp-plugin Goto Github PK
View Code? Open in Web Editor NEWProvides MailChimp integration services
License: MIT License
Provides MailChimp integration services
License: MIT License
Is it possible to have your plugin to work with two forms in the same page?
Entered addresses don't make it into my list. I see the API call is working fine, but the email-addresses don't appear in my list. The list-ID is correctly on the component…Any help? Thanks!
What I did:
Users on list: 0
Where is the problem? :|
thanks!
We use it in almost all of our October projects, and I see that it seems deprecated (in the october marketplace it's only compatible with october 1, even if we are using it withoug problems with 2 and 3 projects). I'd like to subscribe users in mailchimp when they register (if they check a newsletter subscription checkbox), and I'm wondering if I should do a pull request here or if maybe I should develop my own new Mailchimp plugin.
This is the error:
Sorry there was an error: 404: The requested resource could not be found.
It seems that this link no longer exist:
$result = $MailChimp->post("lists/".$this->property('list')."/members", $subscriptionData);
Using plugin to add subscribers to the list. Subscribers get added, but no opt-in confirmation is sent. Neither subscription notifications are being sent. Waiting overnight, still no emails received (opt-in conf nor subscription notification). Domain from which emails appear to be send is verified in MailChimp. Any suggestions on what I may be missing?
Right now, only the email
field is submitted to MC. The API allows for more merge_vars
and it would be nice to pass those in from the form as well.
the plugin is throwing this exception on OC 3.4.14
October\Rain\Exception\SystemException: A widget with class name 'listFilter' has not been bound to the controller in /var/www/html/modules/backend/classes/Controller.php:607
Stack trace:
#0 /var/www/html/modules/backend/classes/Controller.php(452): Backend\Classes\Controller->runAjaxHandler()
#1 /var/www/html/modules/backend/classes/Controller.php(260): Backend\Classes\Controller->execAjaxHandlers()
#2 /var/www/html/modules/backend/classes/BackendController.php(98): Backend\Classes\Controller->run()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Backend\Classes\BackendController->run()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#9 /var/www/html/plugins/vdlp/twofactorauthentication/classes/TwoFactorMiddleware.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Vdlp\TwoFactorAuthentication\Classes\TwoFactorMiddleware->handle()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Session\Middleware\StartSession->handle()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\EncryptCookies->handle()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute()
#26 /var/www/html/vendor/october/rain/src/Router/CoreRouter.php(32): Illuminate\Routing\Router->dispatchToRoute()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): October\Rain\Router\CoreRouter->dispatch()
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
#29 /var/www/html/plugins/zaxbux/securityheaders/classes/SecurityHeaderMiddleware.php(20): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Zaxbux\SecurityHeaders\Classes\SecurityHeaderMiddleware->handle()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#32 /var/www/html/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(23): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#34 /var/www/html/plugins/zaxbux/securityheaders/classes/NonceGeneratorMiddleware.php(22): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Zaxbux\SecurityHeaders\Classes\NonceGeneratorMiddleware->handle()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then()
#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#39 /var/www/html/index.php(70): Illuminate\Foundation\Http\Kernel->handle()
#40 {main}
Hi,
Is it possible to translate this good plugin to Spanish? Could I help?
Many thanks and kind regards,
Alb
Still got this error on one of my client server while its working well on another server.
Any hint on where to look at to solve this please?
TypeError: Symfony\Component\Mailer\Transport\Dsn::__construct(): Argument #2 ($host) must be of type string, null given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php on line 186 and defined in /var/www/html/vendor/symfony/mailer/Transport/Dsn.php:28
Stack trace:
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(186): Symfony\Component\Mailer\Transport\Dsn->__construct()
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(164): Illuminate\Mail\MailManager->createSmtpTransport()
#2 /var/www/html/vendor/october/rain/src/Mail/MailManager.php(37): Illuminate\Mail\MailManager->createSymfonyTransport()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(97): October\Rain\Mail\MailManager->resolve()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(75): Illuminate\Mail\MailManager->get()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(554): Illuminate\Mail\MailManager->mailer()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Mail\MailManager->__call()
#7 /var/www/html/plugins/abwebdevelopers/forms/components/CustomForm.php(624): Illuminate\Support\Facades\Facade::__callStatic()
#8 /var/www/html/plugins/abwebdevelopers/forms/components/CustomForm.php(341): ABWebDevelopers\Forms\Components\CustomForm->sendNotification()
#9 /var/www/html/modules/system/traits/DependencyMaker.php(29): ABWebDevelopers\Forms\Components\CustomForm->onFormSubmit()
#10 /var/www/html/modules/cms/classes/ComponentBase.php(231): Cms\Classes\ComponentBase->makeCallMethod()
#11 /var/www/html/modules/cms/classes/controller/HasAjaxRequests.php(350): Cms\Classes\ComponentBase->runAjaxHandler()
#12 /var/www/html/modules/cms/classes/controller/HasAjaxRequests.php(129): Cms\Classes\Controller->runAjaxHandler()
#13 /var/www/html/modules/cms/classes/Controller.php(386): Cms\Classes\Controller->execAjaxHandlers()
#14 /var/www/html/modules/cms/classes/Controller.php(226): Cms\Classes\Controller->runPage()
#15 /var/www/html/modules/cms/classes/CmsController.php(71): Cms\Classes\Controller->run()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Cms\Classes\CmsController->run()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#22 /var/www/html/plugins/vdlp/twofactorauthentication/classes/TwoFactorMiddleware.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Vdlp\TwoFactorAuthentication\Classes\TwoFactorMiddleware->handle()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Session\Middleware\StartSession->handle()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\EncryptCookies->handle()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then()
#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack()
#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute()
#39 /var/www/html/vendor/october/rain/src/Router/CoreRouter.php(32): Illuminate\Routing\Router->dispatchToRoute()
#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): October\Rain\Router\CoreRouter->dispatch()
#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
#42 /var/www/html/plugins/zaxbux/securityheaders/classes/SecurityHeaderMiddleware.php(20): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Zaxbux\SecurityHeaders\Classes\SecurityHeaderMiddleware->handle()
#44 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#45 /var/www/html/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(23): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#47 /var/www/html/plugins/vdlp/redirect/classes/RedirectMiddleware.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Vdlp\Redirect\Classes\RedirectMiddleware->handle()
#49 /var/www/html/plugins/zaxbux/securityheaders/classes/NonceGeneratorMiddleware.php(22): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Zaxbux\SecurityHeaders\Classes\NonceGeneratorMiddleware->handle()
#51 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then()
#53 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#54 /var/www/html/index.php(70): Illuminate\Foundation\Http\Kernel->handle()
It doesn't return an error, but when debugging the code I find that the call to the API returns this:
HTTP/1.0 302 Moved Temporarily\r\n
Server: AkamaiGHost\r\n
Content-Length: 0\r\n
Location: https://us19.api.mailchimp.com/1.3/?output=php&method=listSubscribe\r\n
Date: Wed, 08 Aug 2018 15:00:04 GMT\r\n
Connection: close\r\n
\r\n
any idea what's happening?
I have a clean install of October and installed the Mailchimp plugin. I have added the component from the components list and inserted the code. Tried to test with my own email and the alert above was shown.
I can't seem to get this working. I've got the component added and configured with API key and List ID, but anytime I try to enter an email on the front end, the AJAX framework comes back with an error that onSignup is not found, however when I go into the source code for the plugin, I can see that there is a function called onSignup.
It looks like a pretty straight forward plugin, so I'm not sure what I could be missing.
Thank you,
Josh
i want get subscription status a user.
Hi, I am trying to integrate mailchimp plugin. I have entered the mailchimp list id and entered the mail chimp API key.
When i enter an email address and press subscribe button. It does nothing and place the email address in the address bar of the chrome.
Kindly help.
Tell me what step am i missing here.
component has been added to footer partial . I get the following error everytime I submit the form
AJAX handler 'mailSignup::onSignup' was not found
Is this broken after RC upgrade or perhaps I have implemented it wrong?
All help welcome
I should add I am using override for the partials (in case upgrades overwrite my design changes)
But I have tried with default partials from plugin/component/ folder too and same result
Hi,
when I install plugin in my own theme (plain html), it doesn't seem to work. Are there any requirements I should include ? Like jQuery, or similar ? No requirement are stated on description page or docs.
Thanks for the help.
Hello,
I'am trying this plugin, but without success.
I have filled in the Mailchimp API key.
I have added component with {% component 'mailSignup' %} + List id to page: http://october.droneshoponline.nl/nieuws
When i fill in email address + subscribe nothing happens, what am i doing wrong?
Or how can i debug?
Hopefully someone can help me with this.
Anyone know if is possible translate error messages from English (default) to another language?
I need to traslate errors in Italian.
thx
I'm getting the same 'mailSignup::onSignup' was not found' message. Has there been a solution that works? I've tried to add the component to the layout - same issue. Thanks!
I'm trying to add tags, but no success. Don't know if this is the correct way of adding tags, but I'm getting error of "Undefined offset: 1
on drewm/mailchimp-api/src/MailChimp.php
Do tags work in this version or I'm doing it wrong?
$subscriber_hash = $MailChimp->subscriberHash(post('email'));
//$result = $MailChimp->put("lists/".$this->property('list')."/members/". $subscriber_hash, $subscriptionData);
$result = $MailChimp->put("lists/".$this->property('list')."/members/$subscriber_hash/tags", [
'tags' => [
[
'name' => 'team',
'status' => 'inactive',
],
]
]);
PHP 4 style constructors Deprecated in PHP 7.0.x
so update
function MCAPI($apikey, $secure=false) {
$this->secure = $secure;
$this->apiUrl = parse_url("http://api.mailchimp.com/" . $this->version . "/?output=php");
$this->api_key = $apikey;
}
TO:
function __construct($apikey, $secure=false) {
$this->secure = $secure;
$this->apiUrl = parse_url("http://api.mailchimp.com/" . $this->version . "/?output=php");
$this->api_key = $apikey;
}
Hello! i'm receiving this error from signup form: Sorry there was an error: Unknown error, call getLastRespomse() to find out what happened
do you have any idea how to fix it?
It's not the smartest idea to store the Mailchimp API key in the Component settings area. This file might be compromised.
The API key should be stored in the database or at least in an encrypted format.
Hello,
I have tried displaying different messages on the frontend depending on the result of executing the onSignup() function, however this function does not return the result directly. I've created a pull request to fix this so that it's easy to grab the status field (or any other) on the front side and do whatever you need with it.
The pull request is here.
after submitting the email Ii received this error message:
Sorry there was an error: 404: The requested resource could not be found.
Using the proposed form snippet from the docs I get an error message:
"Sorry there was an error: You must specify a id value for the listSubscribe method"
Any ideas about that?
Hello,
I don't understand why on the frontend of my site after installing the mailchimp plugin I have this exception!
"Class 'NZTim\Mailchimp\MailchimpServiceProvider' not found"
and if I uninstall it, after I clean the cache every now and then the same error occurs again!
Somebody help me, please?
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.