WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_register errors (5 posts)

  1. FrancescoRizzi
    Member
    Posted 3 years ago #

    Hello.
    I'm running WP 3.01 MU (.tld and .tld/dev)

    Working on the /dev instance at the moment:
    got my custom theme going and at one point I call
    wp_register('', '', true);

    When not logged in, this gets me a 'Register' link leading to
    .tld/dev/wp-login.php?action=register

    Which redirects me to .tld/dev/wp-signup.php
    and that turns out to give an error (in Chrome)

    In Firefox .tld/dev/wp-signup.php seems to redirect me further up to .tld/wp-signup.php so I don't get an error but I get the wrong signup page.

    So, I did read from The Codex "On WordPress µ, there is no /wp-register.php file, and /wp-login.php?action=register is not a valid registration form. Thus, wp_register function does not show a registration link."

    Well: i am getting the 'register' link out of wp_register just fine, but it seems I'm missing something else to make it go where it needs to.

    I am also using the Register Plus Redux plugin - but that doesn't seem to kick in yet (plus, locally, on a non-MU instance of WP the whole thing runs fine).

    Found many threads on similar scenarios on the forums, but most seemed to be issues with redirecting plugins - suggestions?

    Thanks in advance

  2. So, I did read from The Codex "On WordPress µ, there is no /wp-register.php file, and /wp-login.php?action=register is not a valid registration form. Thus, wp_register function does not show a registration link."

    That's slightly incorrect. Yes the registration link WILL show.

    It will also redirect the user to the main site in the install to the signup page there.

    And it is no longer mu. You're running multisite or a network (network will be way more prominent in 3.1). If you say MU most people assume pre-2.9.2.

    So... just link to the signup page.

  3. FrancescoRizzi
    Member
    Posted 3 years ago #

    And it is no longer mu. You're running multisite or a network (network will be way more prominent in 3.1). If you say MU most people assume pre-2.9.2.
    So... just link to the signup page.

    Hey Andrea, thanks for the reply - and the clarification (been struggling with the MU vs multisite terminology since 3.0).

    Anyway, so... the recommended approach is to add a link to the signup page on my own instead of using wp_register?
    I'll try that and see if Register Plus Redux still kicks in that way.
    See, part of the problem is that we need to have a few extra fields on sign-up, like mailing address, membership level, etc. Register Plus Redux allowed all that easily - but if in multisite there's a preferred alternative, I can change direction quickly.

    Thanks again - I appreciate the help

  4. Register Plus Redux might not work properly in multisite, as the registration process is completely different. Different page, different signup... have a look at the wp-signup.php file, cuz there *is* hooks in there. :)

  5. FrancescoRizzi
    Member
    Posted 3 years ago #

    Sweet! Will look - thanks for the tip!

Topic Closed

This topic has been closed to new replies.

About this Topic