I have my store admin protected under https and notice that when I try to start typing in the 'Applicable products' autocomplete field, I get an http error and am not allowed to continue, nor is any product found. Since autocomplete is working everywhere else on my site (active tags for example) I immediately suspected it was the https URL.

The simple test (work around fix) was to deactivate https for the coupon admin pages and sure enough autocomplete worked as expected. This fix is not ideal so I am wondering if there is some other way to have this work under https.

Comments

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

Cannot reproduce this. The autocomplete fields work fine for me under https.

Ross-Hunter’s picture

I am experiencing the same as post #1. Using the SSL Ubercart Module.

longwave’s picture

Perhaps related to #969764: Typo on exclude paths uc_ssl.module in the uc_ssl module? It seems that uc_ssl excludes autocomplete paths by default, so if autocomplete fields are used on a secure page, they won't work...

danny englander’s picture

Ok I will take a look at that (Typo on exclude paths uc_ssl.module). I didn't mention in #1 that I was using Ubercart SSL but now it looks like it could be related to that module.

longwave’s picture

I have moved the autocomplete paths so they are now under /admin/store/coupons, which means they should fall under the same rules as the coupon edit pages; if you are still having issues please retest with -dev. Otherwise, I suspect this to be an exclude issue with uc_ssl; securepages module works fine for me.

longwave’s picture

Status: Postponed (maintainer needs more info) » Fixed

Also discovered that devel sometimes interferes with the autocomplete field, so if you have that enabled, try disabling it.

Anonymous’s picture

You don't happen to have a patch, do you? I would like to fix this on a live site without running a dev.
Thanks.

akay’s picture

I can confirm this issue exists with version 6.x-1.3 using the secure pages module to provide SSL.

A work around is to add this URL to the secure pages "ignore pages" list:
admin/store/customers/coupon/*
and combine it with a mod_rewrite rule to trigger a https->http redirect.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Sborsody’s picture

Status: Closed (fixed) » Active

I am having this problem on a site using uc_ssl. The problem seems to stem from a mismatch between http and https requests.

As you know, uc_ssl excludes '*autocomplete*' by default. The coupon admin pages are all behind ssl though. So Drupal makes an https request for the autocomplete url. uc_ssl redirects to http and voila, error. I had to add '/admin/store/customers/coupon*' to be excluded. I think what is needed is to move the autocomplete urls to behind /admin/store/customers/coupon so that they are always secured with ssl and get uc_ssl to not exclude *autocomplete* so that both the coupon admin pages and the autocomplete urls are sent encrypted and no redirects interfere with the AJAX response.

You can see the same thing occurring with the autocomplete on /admin/store/settings/store/initials.

phoglite’s picture

I was having the same issue. A quick fix for my site was to change the "Ubercart Non-SSL Switch:" setting to Disabled in the uc_ssl module settings. The disadvantage is that users aren't switched out of secure mode once they've entered.