The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Too many redirects - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Too many redirects (/showthread.php?tid=283)

Pages: 1 2


Too many redirects - tarson - 09-25-2016

I can login and use my site just fine under the admin user, however if I add an additional user and try to login under that account I get the error of "ERR_TOO_MANY_REDIRECTS" in chrome and any other browser. What might I be doing wrong here? I am on version 4.1.5


Too many redirects - brian - 09-25-2016

Hmm, how was the additional user added? As a new registration or through the admin panel?


Too many redirects - tarson - 09-25-2016

Via the admin panel manually.


Too many redirects - brian - 09-25-2016

Okay, and this is a regular User you are trying to login as or a new Administrator? If it is an Administrator, you may need to go and add the User permissions to that account.

Can you describe a bit more of what you do that brings this issue?


Too many redirects - tarson - 09-25-2016

So yeah this would be a regular user, not admin level.

In custom_login_script.php I have
Code:
Redirect::to($us_url_root.'index.php');
so when the user is done login in it takes them to the main index. Other than some custom navigation I haven't done too much modification.

In my index file I have at the top:
<pre>
Code:
require_once 'users/init.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
</pre>


The weird thing is the new user can access /users/account.php just not any page outside the /user path it seems where I have specified the above securePage. But again, Admin level has no issues.


Too many redirects - brian - 09-25-2016

Okay, I'm just trying to picture it...so you made a change to the custom_login_script.php...no problem there. The index.php file you're talking about is at the base level of your website? Not in users/ or usersc/ right? Again, just trying to picture it.

When admin logs in, it is fine and they can visit pages and things.

When a newly created user logs in, you get a too many redirects error?

What about when the default "user" account logs in?


Too many redirects - tarson - 09-25-2016

Never mind I'm an idiot! Didn't realize I was needing to add access rights to all the private pages I was creating. That was the issue. Appears admin is added by default to all private pages regardless. Sorry for the hassle.


Too many redirects - brian - 09-25-2016

Yes, the default admin account has access to everything (it is part of the securePage function). Glad it is resolved.


Too many redirects - tudtude - 10-05-2016

Dear Brian,

How I add permit for new admin account? I have same problem but I can't solve.

Thanks


Too many redirects - brian - 10-05-2016

One way is through the Users panel, select the user, then select the Administrator group to add that user to.
The other way is through the Permissions panel, select Administrator, then select the user and click to add them.