Page 1 of 1

Restricted content redirect error

PostPosted: January 10th, 2012, 10:22 pm
by edwardnh
I found an error on my site in how I redirect visitors who are not logged in that try to access restricted content and hoping someone could find out why this is happening.

When a visitor comes to the site and attempts to access restricted content, they are supposed to be redirected to the member page. But somehow the query string on the end of the member page URI recurses and gets output like this:

/members/members?_s2member_seeking%255Btype%255D=post&_s2member_seeking%255Bpost%255D=39585&_s2member_seeking%255B_uri%255D=LzIwMTIvMDEvZWR3YXJkLWhhcnJpc29ucy10ZW4tc3VycHJpc2VzLWZvci0yMDEyLmh0bWw%253D&_s2member_req%255Btype%255D=level&_s2member_req%255Blevel%255D=3&_s2member_res%255Btype%255D=post&s2member_seeking=post-39585&s2member_level_req=3

That ends up taking the visitor to an error page and isn't helpful in potentially converting the visitor into a member. Has anyone else had this problem? If I can figure out why this happens I will post the answer.

Cheers.

Edward

Re: Restricted content redirect error

PostPosted: January 11th, 2012, 10:22 am
by Eduan
Could you try making a compatibility test?

Just disable each plugin one by one (without including s2Member) until the problem goes away.

Also could you please try changing the theme to the default one (TwentyEleven)? And see if it works after that.

You should try one at a time in order to make sure you find the correct problem.

Another fast way is to deactivate all the plugins (not s2Member) and change back to the default theme (TwentyEleven), and then clear your browser's cache. See if the problem goes away, if it does, then activate each plugin one per one until the problem appears again, then the theme you were using, that should show up the criminal.

If you find the criminal, could you please tell me which plugin/theme was causing the problems? Thanks.

Please tell me how it goes and I hope this helps. :)

Re: Restricted content redirect error

PostPosted: January 11th, 2012, 11:30 am
by edwardnh
Eduan,

I will do that and report back.

Cheers.

Edward

Re: Restricted content redirect error

PostPosted: January 11th, 2012, 12:22 pm
by Eduan
OK, thanks for reporting back. :)