Git Product home page Git Product logo

Comments (13)

daftspunk avatar daftspunk commented on August 22, 2024 2

Try adding the component to the layout. Partials don't support AJAX since they are rendered late in the page cycle.

from mailchimp-plugin.

jasonlfunk avatar jasonlfunk commented on August 22, 2024 1

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.

pujak17 avatar pujak17 commented on August 22, 2024 1

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

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.

myxsys avatar myxsys commented on August 22, 2024

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.

daveharrisonnet avatar daveharrisonnet commented on August 22, 2024

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.

daveharrisonnet avatar daveharrisonnet commented on August 22, 2024

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.

daveharrisonnet avatar daveharrisonnet commented on August 22, 2024

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.

jasonlfunk avatar jasonlfunk commented on August 22, 2024

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.

abishekrsrikaanth avatar abishekrsrikaanth commented on August 22, 2024

I am getting this error even when I set this up on the layout.

from mailchimp-plugin.

preinmann avatar preinmann commented on August 22, 2024

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.

frthjf avatar frthjf commented on August 22, 2024

@daftspunk I ran into the partial issue as well, maybe it is worth mentioning in the plugin documentation?

from mailchimp-plugin.

daftspunk avatar daftspunk commented on August 22, 2024

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.

GregorioLopez avatar GregorioLopez commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.