Comments (13)
Try adding the component to the layout. Partials don't support AJAX since they are rendered late in the page cycle.
from mailchimp-plugin.
Apparently it has to do with the fact that complex components don't work in partials.
http://octobercms.com/docs/cms/partials#life-cycle-limitations
from mailchimp-plugin.
component has been added to footer partial . I get the following error everytime I submit the form
AJAX handler 'mailSignup::onSignup' was not foundIs this broken after RC upgrade or perhaps I have implemented it wrong?
All help welcomeI 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
If you include the component in partial, you also have you include the same component in the layout in which you're including that partial. Worked for me. Hope it helps.
from mailchimp-plugin.
Me too. I also placed the the component in the footer partial and it shows the error 'mailSignup::onSignup'. However, if I put it in the layout page, it works but the success message gets displayed as a popup
from mailchimp-plugin.
So I moved the component directly onto the page instead of my footer partial. Now it will handle the ajax stuff, but it is throwing up an error - Sorry there was an error: Invalid MailChimp API Key. The API key I am using is definately correct, I have placed it both on the component and also in settings in the backend neither works. Does the pluging still work for anyone else or perhaps mailchimp have moved the goalposts and the plugin needs updated??
from mailchimp-plugin.
OK well I have now figured out you need to create an API key to enter in mailchimp settings in the backend as well as your list ID to enter in the component instance. However having successfully done all this and got the ajax stuff to work with both error messages and succes message I am seeing that no emails are actually being added to my list! unless there is a delay for new subscribers using API? Watch this space!.....
from mailchimp-plugin.
Ok Sorry it's been a long day, of course the emails weren't being added because they were double optin and i hadn't confirmed the subscriptions. All is working now ;)
But can I add this component to my partial or is there a way to do that?
from mailchimp-plugin.
I'm also having this problem. It's not an option for me to put it in the layout page instead of a partial. Is there a way to get around this?
from mailchimp-plugin.
I am getting this error even when I set this up on the layout.
from mailchimp-plugin.
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!
from mailchimp-plugin.
@daftspunk I ran into the partial issue as well, maybe it is worth mentioning in the plugin documentation?
from mailchimp-plugin.
Documentation exists already: http://octobercms.com/docs/cms/partials#life-cycle-limitations
Feel free to submit a PR to this repo to mention it in the plugin docs.
from mailchimp-plugin.
I'm also having this problem. It's not an option for me to put it in the layout page instead of a partial. Is there a way to get around this?
I put the component declaration [Signup] at the layout, but the component form at my sidebar.htm partial and it works.
from mailchimp-plugin.
Related Issues (20)
- Translation HOT 2
- AJAX handler mailSignup::onSignup not found HOT 2
- MCAPI.class.php PHP 7 Compatibility HOT 3
- Is this still working? HOT 2
- Double opt-in doesn't seem to work HOT 6
- Requirements not stated anywhere HOT 1
- How about check subscription status? HOT 3
- Two or more forms in same page? HOT 2
- Can't add emails to list HOT 1
- Submitting form with subscribed email returns error HOT 1
- Subscription not working HOT 5
- Not able to link website with mailchimp HOT 9
- Error when submitting HOT 8
- Error Class 'NZTim\Mailchimp\MailchimpServiceProvider' not found HOT 1
- Sorry there was an error: 404 HOT 2
- Add tags to new subscriber email HOT 2
- Unknown error HOT 6
- Mailchimp API response messages language HOT 3
- AJAX Issue HOT 5
- Is this plugin mantained? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailchimp-plugin.