latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Login Welcome Page problem

Home Forums Community Forum Login Welcome Page problem

This topic contains 21 replies, has 3 voices. Last updated by  Richard Sexton 3 years, 8 months ago.

Topic Author Topic
Posted: Friday May 3rd, 2013 at 12:17 am #49075

I have the following URL in my Special Redirection URL:

http://www.marketletters.com/blog

See screenshot of it below:

http://screencast.com/t/Men4LKnwaAO

It still redirects me to my Home page when I want it to be the Blog page. What is going wrong?

List Of Topic Replies

Viewing 21 replies - 1 through 21 (of 21 total)
Author Replies
Author Replies
Posted: Friday May 3rd, 2013 at 2:48 am #49096

Please see: Video » s2Member (Login Welcome Page Conflicts?).

Please try these, particularly the theme and plugins ones: Knowledge Base » Common Troubleshooting Tips.

Posted: Friday May 3rd, 2013 at 4:15 am #49103

I watched the video and the bug mentioned there is for firefox. I am using Chrome…what else do you suggest?

Posted: Friday May 3rd, 2013 at 6:28 pm #49155
Bruce
Username: Bruce
Staff Member

I watched the video and the bug mentioned there is for firefox. I am using Chrome…what else do you suggest?

In Google Chrome there is a very similar developer toolset built in to the browser. Just press f12.

Posted: Friday May 3rd, 2013 at 8:24 pm #49167

I watched the video and the bug mentioned there is for firefox. I am using Chrome…what else do you suggest?

The [hilite mono]redirect_to[/hilite] variable explained in the Login Welcome Page Conflicts video, is independent of the browser used.

The tool suggested, Firebug, is a Firefox add-on, but I think is also available for Chrome. https://getfirebug.com/releases/lite/chrome/

And there are other tools you can try for this, but even just viewing the source code of the page (possible in any browser) and looking for the login form, you’d see the input fields it has.

Posted: Sunday May 5th, 2013 at 12:33 am #49231

Hi – I’ve downloaded firefox, installed firebug and tried to perform the deletion of the code that is at fault.

Take a look at the following code – there is nothing that is being redirected to it seems.

http://screencast.com/t/4ZXN08dmBBE3

Any suggestions?

You can try logging in to my site by clicking on the grey login button at http://www.marketletters.com/blog – this is where I want people to land after they’ve logged in.

Thanks

Posted: Monday May 6th, 2013 at 7:08 pm #49300
Bruce
Username: Bruce
Staff Member

Thank you for the information.

I took a look at your site, and it appears that the actual link that’s in your theme is what’s causing this. This is the link:

http://marketletters.com/wp-login.php?redirect_to=http://marketletters.com

As you can see, it’s passing the redirect_to variable as your homepage. This will need to be taken out or changed to your Login Welcome Page to work correctly. If you use this link, it works correctly:

http://marketletters.com/wp-login.php
Posted: Monday May 6th, 2013 at 7:23 pm #49306

Sorry to sound a little daft, but how would I go about changing the redirect_to variable?

Posted: Monday May 6th, 2013 at 7:23 pm #49307
Bruce
Username: Bruce
Staff Member

Sorry to sound a little daft, but how would I go about changing the redirect_to variable?

You’ll need to change the URL your theme is linking to.

Posted: Monday May 6th, 2013 at 7:24 pm #49308

and how do i do that?

Posted: Monday May 6th, 2013 at 7:26 pm #49309
Bruce
Username: Bruce
Staff Member

and how do i do that?

That depends on your theme. I’m guessing this is something that’s built-in to your theme, or is a widget. I’d check your Widgets first and see if those buttons are created there. If they are you should be able to change the URL that way. Otherwise you’ll need to edit your theme’s files. I’d guess that those buttons are created in your sidebar.php file.

Posted: Monday May 6th, 2013 at 7:44 pm #49313

Am I in the right place here?:

http://screencast.com/t/ynYgcaidDf

What would I change that line of code to read?

Posted: Monday May 6th, 2013 at 7:50 pm #49314
Bruce
Username: Bruce
Staff Member

you’ll want to change this line:

wp_redirect(site_url('/wp-login.php?redirect_to' . site_url())); ?>

To:

wp_redirect(site_url('/wp-login.php')); ?>

That might not fix your issue, but that’s an incorrect link somewhere. If that doesn’t work you’ll want to check your sidebar.php file.

Posted: Monday May 6th, 2013 at 7:57 pm #49316

That seemed to fix it. For the registration page, same problem – here is the code:

wp_redirect(site_url(‘/wp-login.php?action=register&redirect_to=’ . site_url())); ?>

change that to what?

wp_redirect(site_url('/wp-login.php?action=register')); ?>
Posted: Monday May 6th, 2013 at 8:33 pm #49318

I’ve played around with the code but kept the original code, which is now not working either!

See screenshot

http://screencast.com/t/ZVtb0LT2ta

– you’ll see the error when you go to marketletters.com/register

Please help!

Posted: Monday May 6th, 2013 at 8:35 pm #49319

Thanks for giving code line you suggest but its now giving this error:

http://screencast.com/t/SDl6yGoAy1

Syntax or parse error

Posted: Monday May 6th, 2013 at 10:12 pm #49323
Bruce
Username: Bruce
Staff Member

Thanks for giving code line you suggest but its now giving this error:

http://screencast.com/t/SDl6yGoAy1

Sorry, one of the quotes from my reply got formatted by our system and it made it invalid. I edited the code in my reply.

Posted: Thursday May 9th, 2013 at 7:12 am #49580

Now my registration page doesn’t work at all and I have left the original code as it was.

See the error msg when you click on the Register for free button on the following page http://www.marketletters.com/ blog

Urgent what could have happened?!

Posted: Thursday May 9th, 2013 at 6:13 pm #49613
Bruce
Username: Bruce
Staff Member

This is the error:

Parse error: syntax error, unexpected ‘=’ in /home/tanswu/public_html/marketletters.com/wp-content/themes/striking-child/template-registration.php on line 10

This is a PHP parse error. It says it’s in your template-registration file on line 10, which I believe you probably edited. Can you paste the code that you have on this line?

Posted: Thursday May 9th, 2013 at 6:23 pm #49616

Here is a screenshot of the code:

http://screencast.com/t/OZ1NBcmeidnd

Posted: Thursday May 9th, 2013 at 6:25 pm #49617
Bruce
Username: Bruce
Staff Member

It’s because of the quotes. You need to replace your quotes with single quotes, or just replace it with this:

wp_redirect(site_url('/wp-login.php?action=register')); ?>
Posted: Thursday May 9th, 2013 at 6:26 pm #49618

ok I think that’s fixed it. THANKYOU.

Viewing 21 replies - 1 through 21 (of 21 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.