• Resolved ricedean

    (@ricedean)


    I just upgraded WP User Manager 1.4.3 -> 2.0.0
    I logged into the admin, updated without a problem, then logged out. When I tried to log in again I got the following message on the front end:
    “Too many redirects occured trying to open “www.dwmconsulting.com/? redirect_to=http%3A%2F%2www.dwmconsulting.com%2F”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.”
    When I tried to open the admin I got a big long list showing the same url redirecting over and over again at least 18 times.
    Does anyone know what just happened.
    Should I use ftp to delete the plugin? Will there be other steps I need to take?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Also just upgraded 1.4.3 to 2.0 – Site was up less than an hour, and produced a Stack Trace error:

    Fatal error: Uncaught FastRoute\BadRouteException:
    Cannot register two routes matching “/([a-zA-Z0-9_.-]+)” for method “GET” in
    $WP_Plugin/wp-user-manager/vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php:79
    Stack trace:
    #0 $WP_Plugin/wp-user-manager/vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php(20): FastRoute\DataGenerator\RegexBasedAbstract->addVariableRoute(‘GET’, Array, ‘route_000000005…’)
    #1 $WP_Plugin/wp-user-manager/vendor/nikic/fast-route/src/RouteCollector.php(33): FastRoute\DataGenerator\RegexBasedAbstract->addRoute(‘GET’, Array, ‘route_000000005…’)
    #2 $WP_Plugin/wp-user-manager/vendor/brain/cortex/src/Cortex/Router/Router.php(147): FastRoute\RouteCollector->addRoute(‘GET’, ‘/{profile:[a-zA…’, ‘route_000000005…’)
    #3 $WP_Plugin/wp-user-manager/vendor/brain/cortex/src/Cortex/Router/Router.php(90): Brain\Cortex\Router\Router->parseRoutes(Object(B in
    $WP_Plugin/wp-user-manager/vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php on line 79

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi gwizweb4,

    Apologies for the issue, the message “Cannot register two routes matching” Indicates that you were using the same page for one of the page settings of WPUM. Each page has to be a different page and cannot be linked to the same page.

    Login, registration, password recovery, account and profile page, must be different pages.

    If you can’t access your admin panel right now, do the following:

    – Open the file permalinks.php into the plugin’s folder wp-content/plugins/wp-user-manager/includes/ and after this line

    if ( ! defined( 'ABSPATH' ) ) exit;

    add this

    return;

    This will stop the routing system temporarily. Login into your admin panel, and make sure each page is different, see here https://docs.wpusermanager.com/category/54-pages

    Once you’ve properly setup the pages, re-open the file, and remove the line just added.

    Let me know.

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hey @ricedean,

    Apologies for the issue, can you please get in touch via email with me through the contact form here https://wpusermanager.com/contacts/ (select “other” as reason)? If possible could you please provide me a temporary ftp account so I can log in and manually disable some stuff of the plugin? The redirect might happen because some of the settings in your existing setup where not properly set or something else is causing the conflict. I’ll have a look and let you know.

    This has now happened on three client sites. This is unacceptable. I have had to roll back by restoring from backup and this has cost us a considerable amount of time and productivity. Please advise when a suitable fix will be made available.

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    @pennink since this is happening on a small amount of site and I can’t replicate the issue on my end, I would need to access one of the sites affected by the issue to identify the cause.

    If you’re willing to help please send me an email at support[at]wpusermanager.com some temporary ftp details and the site url affected, so I can have a look at it.

    I too just installed the latest release and cannot login due to the redirection problem. I too have had to restore from backup, unfortunately it was several days old, so I’m not very happy.

    Since our site is restricted to known accounts that users cannot self create, we are using “Registered Users Only” and “User Activity Log” plugins. Since we are using a vanilla configuration for your product, I’m guessing that the redirect interaction is with the RUO plugin. Minimally, I’d checked the URL before appending another redirect to it in your plugin, and if you already see multiple redirects, I’d let the admin account back in so they can salvage things. I’d also pull your plugin update back until you fix this very SERIOUS bug.

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Version 2.0.1 has just been released and it fixes the too many redirects issue.

    The issue with the redirects happend when the required pages for WPUM had not been setup. Now there are stronger checks in place to make sure that the pages are set up first. Please make sure all the pages are assigned correctly https://docs.wpusermanager.com/category/54-pages

    Thread Starter ricedean

    (@ricedean)

    Thank you so much for your quick response. The reason that all the pages were not set up is because I was using your plugin in conjunction with a ticket support system that lacked a feature which yours had. It worked quite well for a year or more. You fixed it so now I can go back in and determine what is needed with other plugin as well. Again, thank you so much for being so quick with a fix!

    I just tried your latest release, 2.0.3 and the redirect problem is still NOT FIXED. To recover last time, I used your updated database with a pre 2.0 release of your plugin to recover operations. The only thing that did not work properly was the Account page which had every entry filled in with “This field type has no output”. The profile page worked properly so no information was lost. When I installed the 2.0.3 release before logging off, the Account page again displayed the correct information. But after logging off, I could not log back in due to the redirect problem. So, you did NOT add code to detect the addition of too many redirects to the URL and the problem is still NOT fixed. I just recovered again by loading your old plugin code (1.4.3).

    Please note that no redirects have been specified in your setup (i.e., vanilla setup) since all of the defaults are what we needed.

    So the problem is an interaction with basic WordPress, the “Registered User Only” plugin and possibly, though not likely, in “User Activity Log” plugin.

    So this is a SERIOUS, MAJOR bug still. Since you are having problems with older PHP releases, this site is using PHP 7.2.5, but another is using PHP 5.6. WordPress is 4.9.7

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Too many redirects’ is closed to new replies.