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
Undefined variable: master_account - 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: Undefined variable: master_account (/showthread.php?tid=1101)



Undefined variable: master_account - MHALL1 - 07-16-2018

Hi, 

I'm seeing a problem similar to the one here: https://userspice.com/forums/showthread.php?tid=706&pid=4779

A user (id2), accessing a page where there is no explicit access however is in the master account variable generates error:

Code:
Undefined variable: master_account in /var/www/dev/users/helpers/us_helpers.php on line 599
[Mon Jul 16 19:53:44.914524 2018] [:error] [pid 9211] [client 192.168.172.175:49248] PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/dev/users/helpers/us_helpers.php on line 599

Page returns: ERR_TOO_MANY_REDIRECTS

Running 4.3.25.

Thanks,
Matthew


RE: Undefined variable: master_account - Brandin - 07-16-2018

Looks like we're missing a global $master_account in the securePage function.

Can you open a ticket at userspice.com/bugs under the UserSpice 4.4 Development using the dropdown at the top?

Thanks,
Brandin.


RE: Undefined variable: master_account - MHALL1 - 07-17-2018

No problem: https://userspice.com/bugs/usersc/issue_detail.php?id=292


RE: Undefined variable: master_account - Brandin - 07-17-2018

Thanks Matt, we'll get working on this ASAP. Appreciate your submission!


RE: Undefined variable: master_account - Brandin - 07-22-2018

This has been fixed in 4.4.0 TBR.