Problem loading page once security enabled

I have a page that is working fine, but as soon as I enable site security (by clicking on App, Security Provider Enforcer) I get the following error -:

Removing the php code that is added at the top of the page when the security provider is enabled solves the issue and the page loads again.

I have other pages where the security is working fine and I can’t find any missing dependencies, but I guess something is missing somewhere…

I currently include jquery-3.3.1.slim.min.js - I tried changing this to the “non-slim” version thinking that something might be missing in this version, but that didn’t help.

Any thoughts on resolving this would be much appreciated.

Community Page
Last updated: