MEMBERSHIP PLUGIN CAUSING REDIRECT LOOP

WP 3.3.2 multisite on
BP 1.5.5

Site got a redirect error on page=17 which is the Protected Content page , which i am assuming came from the membership plugin.

I then disabled Membership and the problem goes away.

Please Advise

Thank you

-ry

  • yoshimotor
    • Flash Drive

    Seems to be working at the moment.
    Seems intermittently slow at times, compared to when I toggle the plugin off.
    Sometimes it seizes and results in a redirect loop error

    The Error was

    This webpage has a redirect loop
    The webpage at http://covolv.net/?page_id=17 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    Steps I Have Taken:

    1. I have replaced .htaccess with a new version ( same information )
    2. I have checked and repaired my database (although it checked out fine) with phpMyAdmin through my webhosting account.
    3. I have toggled on and off the membership premium plugin as well as the "network activate/deactivate" ( since the plugin seemed not to show up in the site admin panel unless i toggled it on and off a few times from the Network Admin Panel when i loaded it, but this is a general problem i am having with many plugins)
    4. I installed the Pro Sites Plugin. Toggled it on and off in similar ways

    Now things seem to be working better for now:slight_smile:

    -ry

  • aecnu
    • WP Unicorn

    Greetings yoshimotor and Rob,

    @yoshimotor this is a very interesting fix indeed, thank you for letting us know.

    @Rob yes I have received your email and a big thank you of course but have not had time to play with it, but the coding certainly looks great. We have been smashed on Dev with fewer techs then normal combined with a flood of more tickets then normal .... lol .... a deadly combination for those of us tech not on vacation!

    Thank you both for being WPMU Dev Members!

    Cheers, Joe

  • Hakan
    • The Incredible Smush

    Hi yoshimotor,

    You may have a "canonical url" issue. Is it possible that you using www and non-www versions of your url at the same time?

    As far as I see you prefer the non-www version, but what about the WordPress Address (URL) and Site Address (URL) settings in Wordpress General Settings page? Are they non-www too?

    Cheers,
    Hakan

  • Hakan
    • The Incredible Smush

    I assumed that it is a solo website. In a multi site the settings are In Network Admin->Sites. Please check the domains there.

    If they are correct (non-www), please try to change your permalinks from default to another structure.

    Cheers,
    Hakan

  • Shawn
    • The Crimson Coder

    My first instinct would be that it was a canonical issue, too, but the redirect loop is directing itself TO itself, so that's not the case:

    GET http://covolv.net/?page_id=17 --> 302 Found
    GET http://covolv.net/?page_id=17 --> 302 Found
    GET http://covolv.net/?page_id=17 --> 302 Found
    GET http://covolv.net/?page_id=17 --> 302 Found
    GET http://covolv.net/?page_id=17 --> 302 Found
    GET http://covolv.net/?page_id=17 --> 302 Found
    GET http://covolv.net/?page_id=17 --> 302 Found
    GET http://covolv.net/?page_id=17 --> 302 Found

    It does attempt to set a session cookie - but even when that session is accepted it still loop indefinitely.

    Since the entire site requires a subscription, it's impossible to get anywhere on the site without hitting this loop. A "bad bot" could pretty much take down your entire server if it gets stuck in a few loops there.

    This is what makes me curious, though:
    "...the plugin seemed not to show up in the site admin panel unless i toggled it on and off a few times from the Network Admin Panel when i loaded it, but this is a general problem i am having with many plugins..."

    This behavior typically indicates that database access is sporadic - likely not able to fulfill the number of requests. If it's a shared host and you have limited db connections, check your control panel to see if you can enable database connection keepalives or reuse. This will help minimize the problem (though not prevent it). This can also be caused by complex queries that consume the number of connections or db resources until other requests are not allowed. This is common when you use "pages" instead of "posts" for content, and have more than 40 pages while also using any automatic menu system.

    If it's a dedicated host or VPS and you have "plenty of resources", then there's probably a plugin conflict. Are ALL installed plugins compatible with the versions of WP and BP you have installed?

    Do you have access to your server error logs for Apache and MySQL?

  • yoshimotor
    • Flash Drive

    ok so with just Membership and Buddypress "network active" in the Network Admin - Plugins List

    my site works from the browser where i am logged into but when i switch to Firefox where i am not logged into my site then it errors out still

    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

  • yoshimotor
    • Flash Drive

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>

    # END WordPress

  • Caroline
    • New Recruit

    Hello

    I've the exact same issue with the Members plugin.

    ISSUE = La page intranet.stjosephboondael.be ne fonctionne pas
    intranet.stjosephboondael.be vous a redirigé à de trop nombreuses reprises.
    Essayez de supprimer les cookies..
    ERR_TOO_MANY_REDIRECTS

    Could anyone help?

    thanks!
    Caroline

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.