• Resolved Haoxian

    (@lonelicloud)


    Hi,

    Thank you first for this great plugin making me easily setup a restricted registration page.

    But I have a problem when using it. After I enabled subsite registration on a subsite, I tried to register on it. But the registration page,
    /subsite/wp-login.php?action=register
    takes me to a new page in following uri,
    /subsite/local-signup/
    and this page gives a 404 Not Found return as this,
    The requested URL /index.php was not found on this server.

    Could you please help me out on this problem?

    Regards
    Haoxian

    • This topic was modified 7 years, 11 months ago by Haoxian.
    • This topic was modified 7 years, 11 months ago by Haoxian. Reason: Add information
Viewing 15 replies - 16 through 30 (of 31 total)
  • Thread Starter Haoxian

    (@lonelicloud)

    Thank you Justin. I’d love to test the new feature ??

    Plugin Author Justin Fletcher

    (@justinticktock)

    OK its ready to test… can you download and install from github to test on your host with PHP-FPM ?

    github.com/justinticktock/network-subsite-user-registration/

    Thread Starter Haoxian

    (@lonelicloud)

    Hi, you are so quick!

    I’ve tried the new master copy. It works well with PHP-FPM requiring no custom page created. Thank you so much!

    I’ve noticed there are options above the “Next” button saying “Give me a site!” or “Just a username, please.”. Should we have an option to configure this? Or, just make the options comply to the setting in Network Control Panel?

    On my testing site, I made it clear that the option “User accounts may be registered.” is selected. Does that mean that user could not register for a “site”?

    Thread Starter Haoxian

    (@lonelicloud)

    Hi there,

    Sorry that I didn’t notice a problem before with the test edition. When I tried to sign up, the “Next” button take me to a wrong URL as from /local-signup/ to /local-signup/local-signup.

    • This reply was modified 7 years, 11 months ago by Haoxian.
    Plugin Author Justin Fletcher

    (@justinticktock)

    I’ve noticed there are options above the “Next” button saying “Give me a site!” or “Just a username, please.”. Should we have an option to configure this? Or, just make the options comply to the setting in Network Control Panel?

    ok so allowing the public to register sites is setup from your WordPress Network settings, the plugin doesn’t do that. The plugin will pick up if you have “user accounts may be registered” or “Both Sites and user accounts can be registered”. So check that your network settings are as you want.

    On my testing site, I made it clear that the option “User accounts may be registered.” is selected. Does that mean that user could not register for a “site”?

    if you don’t have “user accounts may be registered” selected/ticked in your network settings you won’t be able to user the plugin unless you have “Both Sites and user accounts can be registered” (e.g. your allowing the public to do both register and create a site).

    I’ll have a look at the “/local-signup/local-signup”

    Thread Starter Haoxian

    (@lonelicloud)

    The plugin will pick up if you have “user accounts may be registered” or “Both Sites and user accounts can be registered”. So check that your network settings are as you want.

    I checked and only “User accounts may be registered.” is activated in the “Network” control panel.

    So maybe there is a glitch in the plugin causing the wrong options displayed and selected in the registration page.

    Plugin Author Justin Fletcher

    (@justinticktock)

    ok I’ve updated Github again if you would like to test ??

    Thread Starter Haoxian

    (@lonelicloud)

    Hi,

    I tried the new master, but it seems making no difference than last update.

    On the register page, “Give me a site!” is selected as default. And, after clicking “Next”, the page is still redirected to “local-signup/local-signup/”.

    Plugin Author Justin Fletcher

    (@justinticktock)

    did you update all the plugin files?

    its not just the main plugin file that has changed.

    also check you don’t have a theme sign-up template still overwriting the plugin

    Thread Starter Haoxian

    (@lonelicloud)

    I just tried again.
    1. Download the .zip file and extract it to overwrite all files in the plugin folder;
    2. Upload all files to server;
    3. Deactivate the plugin and re-activate it again;
    4. Try to register on a subsite.

    Really, the symptoms are the same.

    To be clear, I deleted the previously created template file and the custom page with a slug of “local-signup”.

    • This reply was modified 7 years, 11 months ago by Haoxian. Reason: Add deleting custom page and template
    Plugin Author Justin Fletcher

    (@justinticktock)

    the changes in page-signup-wp47.php should have fixed the double “/subsite/local-signup/local-signup/”.. so since you’ve updated that can you try saving your sites Permalink Settings.

    admin>settings>Permalinks select "Post name" and save.

    Thread Starter Haoxian

    (@lonelicloud)

    Nope, flush rewrite rule doesn’t help.

    Plugin Author Justin Fletcher

    (@justinticktock)

    It sounds like the original plugin is still there.
    One thing to note is that downloading from github provides a .zip file that contains a different folder name (network-subsite-user-registration<strong>-master</strong>) which is different the the WordPress plugin repository version which doesn’t have the “-master” postfix. Its got me confused at times.

    it could be that you have the plugin twice on your host in

    network-subsite-user-registration
    and
    network-subsite-user-registration-master

    the first will win and you’d get the same response as previously. Can you confirm this is the case or not.

    I suggest that you remove the plugin installation folders (either manually using ftp or just delete the plugin(s) through the network plugins admin side.).

    I’ve also added some more to the plugin on github to show in the settings page when a custom theme template is overriding the plugin template… should help people see that their custom theme is in use. So you could download again from github if you want. I’m just keen to get you working before I commit to the WordPress Plugin repository.

    Thread Starter Haoxian

    (@lonelicloud)

    Hi,

    Thank you for your consideration. I think I might have driven you crazy for this problem ?? You could even think that I might have not distinguish the “-master” suffix.

    I have several subsites. So I tried this on another subsite which I am not planned to use this on. It works!

    So I checked the subsite I tested on before, it still did not work. … Finally, I found it was because the WP Super Cache plugin I used had cached the page /local-signup/ because there is no “?” character in the url. After deactivating this WPSC, your plugin works very well.

    Thank you!!!

    Plugin Author Justin Fletcher

    (@justinticktock)

    Great and well found! I’ll send the plugin up to the WordPress Repository.

    I create the plugin since I think its something quite a few people will find helpful and its always good to have more eyes on the code, so thanks for helping with making it better. It will help if you can write a quick review on your user of the plugin (e.g. why and how large your multi-site is etc..)

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘404 error on registration’ is closed to new replies.