Quote from: BobRay at May 24, 2015, 12:00 AMWhat version of MODX are you running?
The error level constants were changed at some point, and should all be written in this form:
Take a look at the line in the moderrorhandler class file mentioned in the error message and see if it begins like this:
$this->modx->log(modX::LOG_LEVEL_ERROR
Hi Bob,
Thank you for your reply.
I am running MODX 2.3.3 and I checked the line in question and yes, it is like you say:
$this->modx->log(modX::LOG_LEVEL_ERROR, $errmsg, '', '', $errfile, $errline);
Every time I click on an element (resource, TV, chunk etc.etc.) it comes up a pop up with a 500 internal error message and in the log I got like 10+ line of this errors: Backend fatal error: PHP Fatal error: Undefined class constant 'LOG_LEVEL_ERROR' in /home/thelangu/public_html/core/model/modx/error/moderrorhandler.class.php on line 111\n.
I tried to changed the permissions, but nothing changed. I tried to re-install MODX, but nothing changed. I have already had problems with mod_security, basically I couldn't install any plugin, but that has been solved.
Any idea ? Anything that I might ask to the web hosting guys to check ?
Thanks!!
Margherita