The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
private page cant redirect to login page - 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: private page cant redirect to login page (/showthread.php?tid=128)



private page cant redirect to login page - snifer999 - 05-05-2016

when trying to view private page without login there is a error
Fatal error: Call to undefined function env() in /home/../../users/helpers/us_helpers.php on line 353


private page cant redirect to login page - brian - 05-05-2016

What version are you using?


private page cant redirect to login page - snifer999 - 05-10-2016

UserSpice 4.1 Alpha3

thanks


private page cant redirect to login page - brian - 05-10-2016

Thanks. I'll take a look. There might be a piece of code we missed updating <time passes>

Okay, go into users/us_helpers.php and change line 353 (the one containing the Redirect) to read:

Redirect::to($us_url_root.'users/login.php');

Let me know if that resolves the issue. If it doesn't, then the next Alpha has it fixed since that was already fixed in our working code.


private page cant redirect to login page - snifer999 - 05-21-2016

thanks working ..


private page cant redirect to login page - mudmin - 05-21-2016

Great job