I use security enforcer primarily with admin. I have not used it with any as of yet.
While I have not set mine up with multiple conditions, that may be the issue. Have you tried removing the intStatus from the condition list and running it to see if only having intAccessLevel as the condition will work? (I am just guessing here…)
Also, it might be helpful to know more about the 500 error, could you follow the steps here Debugging Problems and see if any additional information about the error can be generated?
I am having problems as well. When adding Security Enforcer to a page it shows:
" Fatal error : Call to a member function restrict() on null in /usr/home/makkumercourant.nl/htdocs/dmxConnectLib/modules/auth.php on line 64
Fatal error : Uncaught exception ‘ErrorException’ with message ‘Cannot modify header information - headers already sent by (output started at /usr/home/makkumercourant.nl/htdocs/dmxConnectLib/modules/auth.php:64)’ in /usr/home/makkumercourant.nl/htdocs/dmxConnectLib/dmxConnect.php:43 Stack trace: #0 [internal function]: exception_error_handler(2, ‘Cannot modify h…’, ‘/usr/home/makku…’, 43, Array) #1 /usr/home/makkumercourant.nl/htdocs/dmxConnectLib/dmxConnect.php(43): header(‘HTTP/1.1 500 In…’) #2 [internal function]: fatal_handler() #3 {main} thrown in /usr/home/makkumercourant.nl/htdocs/dmxConnectLib/dmxConnect.php on line 43"
I checked with other (running) projects and the code is the same (just other dbase)
This error is caused by some missing step in the server action. The restrict cannot find the security provider step.
Please double check all the steps and make sure everything is properly selected in the UI.
Could it be that in:
Server Actions > Security Provider the name is siteSecurity
but when applying Security Provider Enforcer I can only select sitesecurity (without capital S)?
Totally redid it without capital S. That seems to have done it.
Now I will have to redo-redo-redo the login part as the login page does not redirect.
Never mind, I will keep searching and find the cause of this.
Thanks for the help.