User isn't redirected to correct page after logging in

After struggling to get the payment workflow working correctly, I now ran into a different issue.

Whenever a user is done with the workflow of creating an account and buying a subscription, he is forwarded back from PayPal. What I notice is that the user is not logged in, and instead of being forwarded to the right page, he gets a "content not found" error. (What page is he supposed to be forwarded to?)

I tried logging in and then going back to the PayPal page, and it seems that it is trying to forward the user to the registration page.
(Using a web proxy, I also double checked that the user is being forwarded to Why is it hardcoded to that permalink? The permalink to my registration page is /purchase.

  • DavidM
    • DEV MAN’s Mascot

    Hi MavroInc and welcome to WPMU DEV!

    I couldn't see a reference to that /registration/ slug you mentioned but I'm wondering, have you specified a return URL in PayPal, and if so, what do you have for that?

    I'll ask the developer to have a look here as well since I'm not sure if Membership excepts the return URL at this point.


  • MavroInc
    • WPMU DEV Initiate

    My IPN is setup, and my notification URL is
    (That page seems to return the right message if you pull it up, since there are not POST parameters)

    I checked my IPN history for a recent payment I tried to do. For some reason the HTTP code is a 404, even though the notification URL is correct (same as above). The delivery status is retrying.

    I am not sure that is exactly the issue, as the user did get activated. My main concern is that it's trying to forward to /registration. I don't have any pages with that permalink.

  • controlyours
    • Site Builder, Child of Zeus

    Don't forget about this crucial plugin (login redirect) for membership sites:

    You'll need to add the URL (manually in the plugin's php file) that you want them to be forwarded to automatically after works really well.

    Also, don't forget about its counterpart (logout redirect):

    Which does the same thing but allows you to send your users to a specific page of your choice upon logout. Very cool for marketing after 'they think' they're done on your site :wink:

  • Mason
    • DEV MAN’s Sidekick


    Just checking if it was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?

    If so, no need to reply, that's great news.

    If not, could you let us know by re-opening this topic, and we'll get onto it and helping you out asap!
    Otherwise, happy days, glad you got it sorted :slight_smile:


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.