With Ubercart SSL enabled and switching turned on, the AJAX on my checkout form breaks. If I disable the module or turn off switching, the form functions normally.

Log messages related to AJAX:

  • Invalid form POST data.
  • Notice: Undefined index: form_build_id in ajax_get_form() (line 326 of /home/directory/path/includes/ajax.inc).

Originally posted here before determining it was the Ubercart SSL module.

Comments

satter9’s picture

Yes, I am having the same issue. Once I installed Ubercart SSL the calculation of shipping will cause an ajax error message. Any guidance is is appreciated.

Thanks
Nils

pkchoo’s picture

I am having the same issue. I have to use securepages instead until this gets fixed.

UC SSL was working correctly on my site, but while doing some testing, I disabled it, enabled SecurePages, disabled SecurePages again, and re-enabled UC SSL...

I noticed that the Ubercart_SSL settings was not showing up in the admin menu, though I could access it directly (www.mysite.com/admin/settings/uc_ssl). It did seem to function properly, until I received a call from the client pointing out this ajax error on the checkout page.

Any recommendations for a fix would be greatly appreciated. I would much prefer to use this module over securepages.

Thanks.

laryn’s picture

I don't have a solve, but if you turn switching off for now it seems to work for me (people just get a lot more secure pages than they would otherwise...but I may leave it this way after all).

ecbromley’s picture

Let me preface this with the fact that I'm pretty new to this and what I've done may be completely wrong....

However, I was having the same issue, so I commented out 'Exclude Ajax' => '*ajax*', from the module and now I don't receive the ajax error. Keep in mind I don't know what the reason was for excluding ajax in the first place or the ramifications of not excluding it.

wiherek’s picture

thanks for that solution.

saratt’s picture

Even I am having the same issue, so I commented out 'Exclude Ajax' => '*ajax*', which stopped the ajax error from appearing, but now I am having a different issue, the checkout button on the checkout page doesn't work (clicking on the button takes me to the same page). Login also doesnt work. I am not sure if all these issues are related though.

3cwebdev’s picture

Same issue. Having to switch to Secure Pages for now.

tommyallen789’s picture

Similar issues.. is frustrating as Secure Pages is causing certain problems ("TOO MANY RE-DIRECTS" and frequent cookie problems for ubercart). Whereas the Ubercart SSL module seemed to work great, but with "switching" on, it causes constant AJAX errors on the checkout page, stopping any checkouts from happening. If "switching" is OFF, it seems to work fine, BUT I have a main feature of watching an embedded Vimeo video, which will only work with HTTP (non-secure). So if "switching" is off, then some people will try and access that using HTTPS and the video will fail. So which of the 3 issues is easier to fix... not sure.

john harvey’s picture

I had the same issue but commenting out 'Exclude Ajax' => '*ajax*' appears to do the trick. Other than this, this module does exactly what it says it does. Any chance of an update on this?

crystaldawn’s picture

Status: Active » Closed (fixed)

These options are from the D6 version of the module. It's possible that these quirks have been resolved with D7 so I am going to disable them in the D7 version and see how things go. These were here previously because ajax was not able to communicate over ssl for some reason in D6. So as a quick fix, I added them to the excludes and they got carried over into D7. I've never had issues with it myself, but if people seem to be running with these removed, it may be time to remove them. They are now removed in the new releases.

crystaldawn’s picture

Issue summary: View changes

Adding link to original post in Ubercart issue queue.