loren138 / lk_cc

Constant Contact Plugin for ExpressionEngine
2 stars 2 forks source link

Getting an error submitting from simple email only form #4

Closed brianrivet closed 10 years ago

brianrivet commented 10 years ago

Hi,

I'm getting the following error whenever I try to submit a simple form with just the email address:

The action you have requested is invalid.

I did leave off the confirm hidden field because I only want to collect the email address and drop it into my list. I only have one list users should be able to sign up for so I don't really need a confirmation. I'm really not sure why it isn't working. Can you provide any assistance? If you need more information to diagnose, let me know what you need and I'll help any way I can.

Thanks,

Brian

loren138 commented 10 years ago

What are you submitting the form to? You have to submit it to a page with the exp:lk_cc:subscribe code. Is all you are getting on the page that the action is invalid?

I'm currently not actively developing anything. I'm happy to provide support as best I can, but my time is limited. I would consider contract work to fix it, but at that point, you would probably be better off licensing http://www.devdemon.com/campaigns/ I haven't looked at it too much, so you might want to double check exactly how it works to make sure it would meet your needs.

For now, let's see if we can find a simple fix. I'll let you know if I'm not going to have time to help.

brianrivet commented 10 years ago

Thanks for getting back to me so quickly. I am submitting it to a template in my site that only has the exp:lk_cc:subscribe tag in it. At first I took the example code from the documentation for the subscribe tag and then changed it because I was going to submit the form via ajax, but when it didn’t work, I took out my ajax handling and changed the subscribe tag back to exactly what it was in the documentation, so my subscribe tag is just like the example in the docs. The only thing I have that is different is that I don’t have the confirm hidden field in my form.

As for the error itself, it isn’t a php error or anything like that. It is an error being displayed as a system error (I’m using the custom system messages plugin to show my error pages in a template I designed and that is what I am seeing. If you want to try it to see what is happening go to this url:

http://aloysius-church.tiltbuilt.com

Near the bottom of the page there is an area labeled Newsletter Sign Up. Out in an email address and click the submit button and you should see the error.

I took a look at the Devdemon module. I’ll keep it in mind if we can’t get a simple fix.

Thanks!

Brian Rivet brian@odysseydesignstudio.com Phone: 225-505-9243 Fax: 225-300-8517 www.odysseydesignstudio.com

On Nov 5, 2013, at 1:16 PM, wiseloren notifications@github.com wrote:

What are you submitting the form to? You have to submit it to a page with the exp:lk_cc:subscribe code. Is all you are getting on the page that the action is invalid?

I'm currently not actively developing anything. I'm happy to provide support as best I can, but my time is limited. I would consider contract work to fix it, but at that point, you would probably be better off licensing http://www.devdemon.com/campaigns/ I haven't looked at it too much, so you might want to double check exactly how it works to make sure it would meet your needs.

For now, let's see if we can find a simple fix. I'll let you know if I'm not going to have time to help.

— Reply to this email directly or view it on GitHub.

loren138 commented 10 years ago

Just did a quick google search http://www.google.com/search?q=expression+engine+the+action+you+have+requested+is+invalid&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

That found me this http://ellislab.com/forums/viewthread/237658/

Looks like EE 2.7 requires an XID for all form submissions.

I keep that disabled for my sites because I find it to usually be more annoying than useful, but adding <input type="hidden" name="XID" value="{XID_HASH}" /> to your form should fix it.

brianrivet commented 10 years ago

ok thanks, I’ll take a look.

Brian Rivet brian@odysseydesignstudio.com Phone: 225-505-9243 Fax: 225-300-8517 www.odysseydesignstudio.com

On Nov 5, 2013, at 4:01 PM, wiseloren notifications@github.com wrote:

Just did a quick google search http://www.google.com/search?q=expression+engine+the+action+you+have+requested+is+invalid&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

That found me this http://ellislab.com/forums/viewthread/237658/

Looks like EE 2.7 requires an XID for all form submissions.

I keep that disabled for my sites because I find it to usually be more annoying than useful, but adding

to your form should fix it.

— Reply to this email directly or view it on GitHub.

brianrivet commented 10 years ago

It looks like that was the issue. Thanks very much for your help. I appreciate the quick response!

Brian Rivet brian@odysseydesignstudio.com Phone: 225-505-9243 Fax: 225-300-8517 www.odysseydesignstudio.com

On Nov 5, 2013, at 4:01 PM, wiseloren notifications@github.com wrote:

Just did a quick google search http://www.google.com/search?q=expression+engine+the+action+you+have+requested+is+invalid&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

That found me this http://ellislab.com/forums/viewthread/237658/

Looks like EE 2.7 requires an XID for all form submissions.

I keep that disabled for my sites because I find it to usually be more annoying than useful, but adding

to your form should fix it.

— Reply to this email directly or view it on GitHub.

loren138 commented 10 years ago

You're welcome. I updated the readme for the project as well so it contains that line now in the sample code.