Page 1 of 1

Stand alone profile page redirects to page_id=0 after saving

PostPosted: February 13th, 2011, 8:55 pm
by tugboss
I have the stand alone profile modification page embedded into a page using iframe. When users save changes to their profile..it saves successfully but then redirects to http://mysite.com/?page_id=0

How can I change where users are directed to after saving changes to their profile?

Thanks
Tim

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 12th, 2011, 2:00 pm
by daveha
I have the same issue, how do you change where the profile page is directed after update?

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 12th, 2011, 10:58 pm
by Bruce C
The form automatically links to the Login Welcome Page.
If there is no page specified, it defaults to page_id=0.
I believe that's why you're getting that error.


Set the page your iframe is on for the Login Welcome Page, that should fix it.

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 14th, 2011, 8:29 pm
by daveha
I use a Special Redirection URL for the welcome page like the one below:

http://www.mydomain.com/membership%%current_user_level%%/

I dont wany the Stand alone profile page to redirect to page_id=0

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 14th, 2011, 9:21 pm
by Bruce C
Oh. Okay I see now. Yes, that appears to be a glitch of some sort. It appears to be a problem with the code in that particular page. I'll try to contact a Mod about it.

In the meantime, try using one of the other options.

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 14th, 2011, 9:38 pm
by daveha
I really need a fix for this, is there a work around?

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 15th, 2011, 4:33 pm
by Cristián Lávaque
If the Special Redirection URL is used, then it shouldn't default to Page 0, I'll let Jason know about this.

In the meantime, what you could do is use a normal page for the Login Welcome Page instead of a URL with the replacement code, then have alternative content depending on the user's level using conditionals. WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals -> Example #3

Code: Select all
[s2If current_user_is(s2member_level2)]
    Some premium content for Level 2 Members.
[/s2If]

[s2If current_user_is(s2member_level1)]
    Some premium content for Level 1 Members.
[/s2If]

[s2If current_user_is(s2member_level0)]
    Some content for Free Subscribers.
[/s2If]


I hope that helps.

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 15th, 2011, 5:53 pm
by daveha
Thank you for the reply: not ideal as it will create allot of work for me to implement as temp measure. I would rather the software function correctly inline with the way it is currently configured using the Redirection URL.

How long until you release the next version with the fix?

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 15th, 2011, 8:14 pm
by Jason Caldwell
Thanks for bringing this thread to my attention.
I've just had this corrected, and the new release with this fix should go out in the next day or so.

Re: Stand alone profile page redirects to page_id=0 after sa

PostPosted: August 16th, 2011, 10:13 am
by daveha
that's great thank you