You are not logged in.
Warning: Invalid argument supplied for foreach() in bigtree/core/inc/bigtree/admin.php on line 6156
Warning: Cannot modify header information - headers already sent by (output started at bigtree/core/inc/bigtree/admin.php:6156) in bigtree/core/inc/bigtree/utils.php on line 1938
It seems to be redirecting / iterating over the different sites a couple times.
Offline
It looks like it was a change in 4.2.17 - I'm still trying to determine what changed.
Offline
It looks like it may be trying to log you in to multiple sites. Are you running a multi-site version of BigTree? If not, make sure your $bigtree["config"]["sites"] value in /custom/environment.php is set to an empty array.
Offline
We are using a mult-site version. There are 5 listed in the array.
Offline
Does the login work with debug turned off? It's odd that you'd get the "can't modify header information" error as output buffering should be on by default in BigTree.
Offline
Hi,
Thanks for helping. Unfortunately, it has a too many redirects error once debug is turned off.
Offline
That's very odd -- I believe one of the recent releases actually fixed the too many redirects issue by no longer doing a redirect loop through every site, instead forcing you to go to the domain you want to access to get the BigTree bar (e.g. secondary.bigtree.com/admin/ to get that site to have the bar).
Are you able to do a print_r on the $cache_data["remaining_sites"] to see what it contains that is causing the "too many redirects" error?
Offline
Redirect in Utils to URLhttps://www-dev.setonhill.edu/admin/login/?domain=www-dev.setonhill.edu
Redirect in Utils to URLhttps://www-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a7470bdd2.45446769
Array\n(\n [alumni] => https://alumni-dev.setonhill.edu/\n [ortho] => https://ortho-dev.setonhill.edu/\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://alumni-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a7470bdd2.45446769
Array\n(\n [ortho] => https://ortho-dev.setonhill.edu/\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://ortho-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a7470bdd2.45446769
Array\n(\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://news-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a7470bdd2.45446769
Array\n(\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://cdc-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a7470bdd2.45446769
Array\n(\n)\n
Redirect in Utils to URLhttps://www-dev.setonhill.edu/admin
Redirect in Utils to URLhttps://www-dev.setonhill.edu/admin/login/?domain=www-dev.setonhill.edu
Redirect in Utils to URLhttps://www-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a74d8e5d5.08599478
Array\n(\n [alumni] => https://alumni-dev.setonhill.edu/\n [ortho] => https://ortho-dev.setonhill.edu/\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://alumni-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a74d8e5d5.08599478
Array\n(\n [ortho] => https://ortho-dev.setonhill.edu/\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://ortho-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a74d8e5d5.08599478
Array\n(\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://news-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a74d8e5d5.08599478
Array\n(\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://cdc-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a74d8e5d5.08599478
Array\n(\n)\n
Redirect in Utils to URLhttps://www-dev.setonhill.edu/admin
Redirect in Utils to URLhttps://www-dev.setonhill.edu/admin/login/?domain=www-dev.setonhill.edu
Redirect in Utils to URLhttps://www-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a75352a78.22143190
Array\n(\n [alumni] => https://alumni-dev.setonhill.edu/\n [ortho] => https://ortho-dev.setonhill.edu/\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://alumni-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a75352a78.22143190
Array\n(\n [ortho] => https://ortho-dev.setonhill.edu/\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://ortho-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a75352a78.22143190
Array\n(\n [news] => https://news-dev.setonhill.edu/\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://news-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a75352a78.22143190
Array\n(\n [cdc] => https://cdc-dev.setonhill.edu/\n)\n
Redirect in Utils to URLhttps://cdc-dev.setonhill.edu/?bigtree_login_redirect_session_key=5b4c8a75352a78.22143190
Offline
Commit 527a1c02 is where it stops working. The previous commit everything works fine. I've gone to the latest commit and it still doesn't work.
Offline
That is super strange that it's starting the login redirect loop again.
I'm looking into changing how this redirection loop works (seeing if we can set all the cookies via CORS AJAX requests instead of literal redirects). Hopefully when I get that solution in it will also fix your problems here.
Offline
I've just pushed a new update to the 4.2-devel branch that should now use CORS AJAX requests to login to multi-site domains rather than using redirects. Can you give the latest commit a try and see if it fixes your issue?
Offline
After logging in it goes to the main page www-dev.setonhill.edu with the ?bigtree_login_redirect_session_key=5b4f4f816d1b19.46339092, but does not take me to the admin part. It just keeps directing to the home page.
Offline
That is very strange. I'm not sure how to debug it as it kind of sounds like your sessions are never being set which is causing the redirect loop. Any chance you could provide access to the server it's occurring on for me to SFTP in and debug directly?
Offline
How would you like to send the credentials? Do you just need access to the directory and log files?
Offline
You can email me at tim@fastspot.com -- access to the web root would be enough I think.
Offline