<![CDATA[ PageLocker package creates HTTP 500 error - My Forums]]> https://forums.modx.com/thread/?thread=104818 <![CDATA[PageLocker package creates HTTP 500 error]]> https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563650 HTTP 500 error when I call the web resource.

Any experience on that ? Where can I find an error message on the server (nothing's in the modx log)

php 7 and MODX Revolution 2.7.0-pl


thanks in advance

Thomas]]>
hochmohr Jan 18, 2019, 07:29 PM https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563650
<![CDATA[Re: PageLocker package creates HTTP 500 error (Best Answer)]]> https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563676 Quote from: lkfranklin at Jan 20, 2019, 06:57 AM
500 is a server error so check the server logs for the error. ensure your page locker template has a base href too and the system settings for the resource Id of the page locker is set correctly.

Thank you for your reply. The server log is not accessible to me.
But I found the (my) error - finally. I had a second plugin attached to the same event. This one worked properly but produced an error at its very end of execution - which was never found and had no impact on the website. But so the second plugin (PageLocker) didn't fire correctly.
]]>
hochmohr Jan 20, 2019, 08:55 AM https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563676
<![CDATA[Re: PageLocker package creates HTTP 500 error]]> https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563675 lkfranklin Jan 20, 2019, 06:57 AM https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563675 <![CDATA[Re: PageLocker package creates HTTP 500 error]]> https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563652
if (!function_exists("toForm")) {
/* Show Login form */
function toForm($resourceId) {
global $modx;
unset($_SESSION['password']); // make sure password is not still set
if ($modx->resource->get('id') != $resourceId) { // prevent infinite loop
$modx->sendForward($resourceId);
}
}
}


Dort scheint es die Zeile
$modx->sendForward($resourceId);
zu sein, die nicht funktioniert.]]>
hochmohr Jan 18, 2019, 07:51 PM https://forums.modx.com/thread/104818/pagelocker-package-creates-http-500-error#dis-post-563652