Title: Redirect Loop Pt. 2
Last modified: August 21, 2016

---

# Redirect Loop Pt. 2

 *  Resolved [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/)
 * Opening new issue because I resolved [the other one](http://wordpress.org/support/topic/redirect-loop-45)
   too quickly.
 * Here’s what I did:
    Deactivated all plugins. Activated twenty fourteen theme 
   Installed/Activated Cas Maestro Settings: CAS Version 2.0 Server hostname: auth.
   uthsc.edu (Getting response) Server path: /cas/
 * When I go to `newsdevl.uthsc.edu/wp-admin` I’m taken to our CAS login page with
   the url `https://auth.uthsc.edu/cas/login?service=http%3A%2F%2Fnewsdevl.uthsc.
   edu%2Fwp-login.php%3Fredirect_to%3Dhttp%253A%252F%252Fnewsdevl.uthsc.edu%252Fwp-
   admin%252F`
 * If I log in here I’m authenticated (Which I can confirm by checking another service
   and seeing that I’m logged in) but I end up with a redirect loop.
 * When I go directly to `newsdevl.uthsc.edu/wp-login.php` I’m taken to `https://
   auth.uthsc.edu/cas/login?service=http%3A%2F%2Fnewsdevl.uthsc.edu%2Fwp-login.php`
 * If I log in here, again – I’m authenticated and sent in to a redirect loop.
 * It shouldn’t matter but I’ve tried this in Firefox and Chrome on multiple computers
   and I’ve also tried in Private browsing.
 * Any suggestions about what might be causing this?
 * [https://wordpress.org/plugins/cas-maestro/](https://wordpress.org/plugins/cas-maestro/)
 * _[Moderator Note: [No bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping).
   If it’s that urgent after waiting just 1 hour, please consider [hiring someone](http://jobs.wordpress.net/)
   instead.]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Henrique Mouta](https://wordpress.org/support/users/vaurdan/)
 * (@vaurdan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5107984)
 * Hello.
    Sorry for hearing that you are running into troubles. Can you activate
   the CAS debug doing the following steps?
    1. Edit your wp-config.php and add the following line:
        `define('CAS_MAESTRO_DEBUG_ON',
       true);`
    2. This will generate a log in yoursite.com/wp-content/plugins/cas-maestro/debug.
       log when you try to login using CAS.
    3. Please try to reproduce the bug and send me the log (link or a saved version)
       to [henrique@mowta.pt](https://wordpress.org/support/topic/redirect-loop-pt-2/henrique@mowta.pt?output_format=md)
 * PS: If you wanna contribute, please issue Pull Requests at our Github at [https://github.com/vaurdan/cas-maestro](https://github.com/vaurdan/cas-maestro)
   🙂 Every help is really appreciated!
 * Thanks.
    Henrique
 *  Thread Starter [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108032)
 * Thanks for the quick response. Sorry for the lack of detail. I’ve gotten sidetracked
   this week but I’m going to get back on this tomorrow or next week. I think this
   issue is most likely a result of another plugin or server config. I’ll post as
   soon as I know more.
 *  Thread Starter [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108043)
 * Sent my log file via email.
 *  Thread Starter [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108045)
 * Just an FYI, I deactivated all plugins and activated the 2014 theme. Same results.
 *  Thread Starter [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108049)
 * This appears to be a server config or plugin conflict issue so I’m going to resolve
   it for the time being so it’s not just sitting here open.
 * I’m not really sure what the root cause might be so if you have any ideas based
   on that log, I’d love to hear. I’m pretty sure it’s related to a plugin – possibly
   a caching plugin but I can’t be sure until I kick things around some more. It
   could also be an htaccess rule or something – which are often modified by caching
   plugins.
 * I’m going to try to isolate this redirect problem and I’ll post if I discover
   why it’s happening.
 *  [treydock](https://wordpress.org/support/users/treydock/)
 * (@treydock)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108089)
 * I just ran into this too.
 * Here’s some of the debug logs
 * `
    A4BC .START phpCAS-1.3.2 ****************** [CAS.php:450] 1CE7 .START phpCAS-
   1.3.2 ****************** [CAS.php:450] 1CE7 .=> phpCAS::forceAuthentication()[
   cas-maestro.php:229] 1CE7 .| => CAS_Client::forceAuthentication() [CAS.php:1101]
   1CE7 .| | => CAS_Client::isAuthenticated() [Client.php:1083] 1CE7 .| | | => CAS_Client::
   _wasPreviouslyAuthenticated() [Client.php:1189] 1CE7 .| | | | user =</p></p>
 *     ```
       treydock' [Client.php:1365]
       1CE7 .|    |    |    <= true
       1CE7 .|    |    |    user was already authenticated, no need to look for tickets [Client.php:1206]
       1CE7 .|    |    <= true
       1CE7 .|    |    no need to authenticate [Client.php:1085]
       1CE7 .|    <= true
       1CE7 .<= ''
       1CE7 .=> phpCAS::isAuthenticated() [cas-maestro.php:232]
       1CE7 .|    => CAS_Client::isAuthenticated() [CAS.php:1151]
       1CE7 .|    |    => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1189]
       1CE7 .|    |    |    user =
       treydock' [Client.php:1365]
       1CE7 .|    |    <= true
       1CE7 .|    |    user was already authenticated, no need to look for tickets [Client.php:1206]
       1CE7 .|    <= true
       1CE7 .<= true
   
   
       That repeats over and over when I try to login.  I'm successfully logged in as other sites that use CAS grant me access.
       ```
   
 *  Thread Starter [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108090)
 * Treydock, If I recall correctly, my issue was due to a plugin conflict with WP
   User Frontend. You may want to try deactivating your plugins and see if you can
   get it to work on its own.
 * I think the root cause has to do with cookies not being able to keep session 
   data.
 *  [treydock](https://wordpress.org/support/users/treydock/)
 * (@treydock)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108091)
 * gpspake, Thanks for the suggestion. The only plugin enabled is “WordPress MU 
   Domain Mapping”. This is a fresh install of WordPress 4.0 with multsite enabled.
   If I disable “WordPress MU Domain Mapping” I still have the redirect problems.
 * You mention cookies, so I tried in Safari (only browser I hadn’t used yet) and
   I logged in just fine. I had the person I created this particular site for log
   in without issue.
 * Thanks,
    – Trey
 *  Thread Starter [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108092)
 * Well, CAS is a tricky beast.
 *  [jlee42](https://wordpress.org/support/users/jlee42/)
 * (@jlee42)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108093)
 * I had a similar issue here. The issue turned out to be the permissions on the
   sessions folder for PHP.
 * By looking at the `session.save_path` value in the output of `php_info()`, I 
   figured out where that folder was and corrected the permissions. This was caused
   by me changing the group apache runs as from “apache” to “www”.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Redirect Loop Pt. 2’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cas-maestro_009fe3.svg)
 * [CAS Maestro](https://wordpress.org/plugins/cas-maestro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cas-maestro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cas-maestro/)
 * [Active Topics](https://wordpress.org/support/plugin/cas-maestro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cas-maestro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cas-maestro/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [jlee42](https://wordpress.org/support/users/jlee42/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-pt-2/#post-5108093)
 * Status: resolved