Using "Change" button on cart checkout takes customer to backlight login

I noticed this a while back but it was intermittent. When a customer adds a product to their cart and then goes to the checkout page, clicking on the “change” button next to the product in the cart takes them to the backlight login page. Any clues as to why this is happening? Backlight 4, Cart version 7.0.3.

Is your version of BL and Cart up to date?

Can you share a link so that @Ben has something to look at?

Thanks Rod, it’s all up to date - I’ve sent Ben a PM with some more detail.

1 Like

@Ben I’ve sent you a PM last week, any idea what’s causing this please?

Hi @kubicixfactor, I’ve just got back after two weeks with only having internet access on my phone.

It looks like this is something to do with URL-rewriting not working on your server for the cart. For some reason, the Cart URL users land on is https://www.adecentexposure.co.uk/backlight/?m=cart instead of https://www.adecentexposure.co.uk/backlight/cart/. This likely causes the URL for editing an item to be broken, causing the user to be redirected to the Backlight admin.

I’ll try to work on a fix for this. In the mean time, can you message me a Backlight admin login, so that I can try to see what’s happening with your URL-rewriting/clean URLs?

Hi Ben, thanks for getting back to me. I’ve set up an admin login for you:

Username=
Password =

credentials deleted by Moderator and sent to @Ben via message

Thanks, @kubicixfactor and @rod_barbee.
I see now that the Cart URL is going to Photographer Shropshire - - A Decent Exposure and that the Change button now works. Did you change any settings? Are you still seeing this issue anywhere?

I have put in a work-around for the issue you were having. This will be in the next Cart update, but by the looks of it isn’t necessary for you right now.

Hi Ben, thanks for looking at this, just checked with a gallery and it’s still defaulting to the BL login page - gallery I checked is https://www.adecentexposure.co.uk/galleries/2022_10_02-chillington-fun-ride/index.php?mod_rewrite=on

I didn’t change anything on my settings apart from one of the galleries where the protected album passcode was changed.

Hi @kubicixfactor, there’s something quite odd going on with your site. When visiting

https://www.adecentexposure.co.uk/galleries/ and clicking on

https://www.adecentexposure.co.uk/galleries/2022_10_02-chillington-fun-ride/

The server is responding to the browser with a “301 (moved permanently)” telling the browser to load

https://www.adecentexposure.co.uk/galleries/2022_10_02-chillington-fun-ride/index.php?mod_rewrite=on

This specific URL should never be seen or sent to the browser. It is instead an internal redirect that Backlight should be able to see, while the browser address bar remains at https://www.adecentexposure.co.uk/galleries/2022_10_02-chillington-fun-ride/

Why this is happening on your server is a mystery. The same .htaccess file works correctly everywhere else. It’s the underlying cause for the Change URL being malformed.

Hi @ben, thanks for taking a look at this. Any advice re what I need to be looking at with my host please? As far back as I remember my browser has always returned the URL with mod_rewrite=on appended when clicking on a gallery.

I don’t know if this fixes anything, but I would try to execute ‘Update Album Files’ and ‘Update Backlight Index Files’ in Backlight > Admin > Special Links.

Hi @kubicixfactor, I don’t have anything to advise at this point. My attempts to find why a web server is responding directly to the browser with a redirect all lead to guides on how to cause a browser to redirect!

I’ll update the cart in the next day or two, so at least this downstream issue (of the Change button) will be solved.

Do you see index.php?mod_rewrite=on on any non-gallery pages on your site?

@Daniel, this is caused by a handling of a rule on the Album .htaccess settings which are set via the Backlight Settings. I have already run that command as part of trying to diagnose the issue.

1 Like

Hi @ben, thanks for looking into this, just checked and I don’t see index.php?mod_rewrite=on on any non-gallery pages (but it’s there on all of the gallery pages). I use Lightroom for publishing but I’ve just tried creating an album via Backlight and it’s showing index.php?mod_rewrite=on for that one as well.