Sign Up Page Redirect not working

This topic contains 15 replies, has 2 voices, and was last updated by  thebirdiemachine 10 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #15805

    thebirdiemachine
    Expired Member
    Post count: 246

    I have added the code in the instructions to redirect the login page, but it is not working. Maybe I did it wrong (I assume I did it wrong!). Attached is a screenshot of my functions.php file.

    I installed BuddyPress and the register page (and activate page etc) renders the home page which is exactly what was happening with the GD sign up page.

    The error_reporting was to fix and error message (that worked and still works fine)

    Could someone tell me what I need to do this to correct it?

    Thanks
    Stacey

    #15812

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    What I see in that image looks right, but I’d need a link to your website and wp admin credentials to tell you for sure why it is not working.

    Let us know,

    Thx

    #15814

    thebirdiemachine
    Expired Member
    Post count: 246
    This reply has been marked as private.
    #15822

    thebirdiemachine
    Expired Member
    Post count: 246
    This reply has been marked as private.
    #15825

    thebirdiemachine
    Expired Member
    Post count: 246
    This reply has been marked as private.
    #15826

    Paolo
    Site Admin
    Post count: 31211

    Hi Stacey,

    none of the 2 credentials sent seem to work?

    Let us know,

    #15827

    thebirdiemachine
    Expired Member
    Post count: 246
    This reply has been marked as private.
    #15828

    Paolo
    Site Admin
    Post count: 31211

    to test this, we need to remove the Cooming soon page. Otherwise it’s impossible to visit the signup page.

    How did you tested it?

    Let me know,

    #15829

    thebirdiemachine
    Expired Member
    Post count: 246

    I didn’t test per se. I tried to view the registration page and got the home page just like with GD sign up page.

    You can deactivate (or remove the coming soon page) if that is what is required.

    #15831

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    It’s working correctly now.

    The problem was in the function. Wrong formatting was copyied from our doc site.

    
    
    add_action(‘init’ , ‘geodir_redirect_to_default_login’) ;
    function geodir_redirect_to_default_login()
    {
       if(isset( $_REQUEST['geodir_signup']))
       {
      wp_redirect(home_url().’/wp-login.php’);
      exit();
       }
    }

    should be:

    
    
    
    add_action('init' , 'geodir_redirect_to_default_login') ;
    function geodir_redirect_to_default_login()
    {
       if(isset( $_REQUEST['geodir_signup']))
       {
      wp_redirect(home_url().'/wp-login.php');
      exit();
       }
    }
    

    Most of the apostrophes had wrong formatting.

    I’ll see if this can be fixed in our site or if it is the wordpress text editor adding them.

    Thx

    #15832

    thebirdiemachine
    Expired Member
    Post count: 246

    Thank you! Sorry to be a bother. Geeze I can’t even copy something right…shoot me!

    #15835

    Paolo
    Site Admin
    Post count: 31211

    Should be fixed in the doc site too.
    Thx for spotting this.

    #15836

    Paolo
    Site Admin
    Post count: 31211

    No it wasn’t your fault at all…

    #15851

    thebirdiemachine
    Expired Member
    Post count: 246
    This reply has been marked as private.
    #15899

    Paolo
    Site Admin
    Post count: 31211
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount