• Resolved FrancescoRizzi

    (@francescorizzi)


    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 CodexOn 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter FrancescoRizzi

    (@francescorizzi)

    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

    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. ??

    Thread Starter FrancescoRizzi

    (@francescorizzi)

    Sweet! Will look – thanks for the tip!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_register errors’ is closed to new replies.