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
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Undefined variable: master_account
#1
Hi, 

I'm seeing a problem similar to the one here: https://userspice.com/forums/showthread....6&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
  Reply
#2
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.
  Reply
#3
No problem: https://userspice.com/bugs/usersc/issue_...php?id=292
  Reply
#4
Thanks Matt, we'll get working on this ASAP. Appreciate your submission!
  Reply
#5
This has been fixed in 4.4.0 TBR.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)