This forum is archived. Posts are preserved for historical reference. For current help, join us on Discord.

Undefined variable: master_account

In UserSpice 4.3 and Below · Started by MHALL1 on 2018-07-16 7:00 pm · 13154 views · 4 replies

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:
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: [size=x-small]ERR_TOO_MANY_REDIRECTS[/size]

Running 4.3.25.

Thanks,
Matthew
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.
No problem: https://userspice.com/bugs/usersc/issue_detail.php?id=292
Thanks Matt, we'll get working on this ASAP. Appreciate your submission!
This has been fixed in 4.4.0 TBR.