It could be that PageLocker is throwing an E_NOTICE error. There's a lot of that going on lately with PHP upgrades. I think that will crash a plugin (and MODX).
In a snippet, you get an error message, but in plugins, it's sayonara.
Looking at the code, I see a couple of cases where this line:
$userPW = filter_var($_POST['password'], FILTER_SANITIZE_STRING);
will throw an E_NOTICE bug when the page is first shown.
I think it should be:
$userPW = isset($_POST['password'])? filter_var($_POST['password'], FILTER_SANITIZE_STRING) : '';
I don't see anything else, so fixing those two lines may solve it.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
[ed. note: BobRay last edited this post 11 years, 9 months ago.]