[SOLVED] redirect loop when trying to pay by CC on frontend

8 years 3 months ago - 8 years 2 months ago #276999 by ThePiston
I have a user who is trying to pay for subscription by credit card in frontend. He clicks the Mastercard icon and then the site pauses and finally gives a redirect loop error. This is the text from the error:

The webpage at https://www,,site,,org/cb-login/pluginclass?plugin=cbpaidsubscriptions&cbpgacctno=1&cbppdtback=22449a6d0bdbb51833e8163086e0a724&cbpbasket=1037&cbpshopuser=44fbda32b6855320c7ff8c688fb69a65&result=payform has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.


I cleared cookies for this site with no luck. I turned on maximum error reporting and nothing seen. I also install nightly build for CBsubs and still nothing. This user expired in 2012 and is disabled in CB if that helps.

Thanks

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in to join the conversation.

8 years 3 months ago #277095 by beat
Looks like an Apache-level redirect interfering with htpps redirect.

Try changing https to http for a quick test. If it works, then your https/http settings on your website and htaccess/apache config might have an issue.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

8 years 3 months ago - 8 years 3 months ago #277100 by ThePiston
changing to HTTP doesn't - the page refreshes into HTTPS y itself and then fails again. Sent a ticket. thanks
sorry, you mean to change the setting in the backend to HTTP. I did that and it does work. I didn't go through with sending the CC information but the page does load at least. How can I fix this? thanks

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in to join the conversation.

8 years 3 months ago #277315 by ThePiston
just a heads up that although this method works to fix the loop error, now my users are getting alerts that the transaction isa going through a non-secure page and they are complaining. When can we expect this and the hard-coded non-SSL payment icons to be fixed?

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in to join the conversation.

8 years 3 months ago - 8 years 3 months ago #277351 by ThePiston
This is what I use in htaccess to force www

RewriteCond %{HTTP_HOST} ^site\.org$ [NC]
RewriteRule (.*) www.site.org/$1 [L,R=301]


I commented those out and still get same issue. Anything else you can think of?

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in to join the conversation.

8 years 3 months ago #277356 by beat
Make sure that you have the lastest nightly CBSubs as it contains some fixes in those areas a week ago or so. I guess you are already running latest nightly ?

Enable browser developer tool by right-clicking on page, then clicking inspect, then display the "Network" tab of browser debugger, and reproduce the issue.

It will show you the redirects. You probably have 2 different redirects re-directing each to the other one, indefinitely.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.208 seconds

Facebook Twitter LinkedIn