Modx 0.9.6.3 and PHP 5.3

By Paulus, 6 August, 2009

PHP 5.3 has introduced a new error level that reports deprecated functions. On line 13 of the config file use this line instead:

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED)

In the file: manager/includes/document.parser.class.php You will need to modify line 2502 from:

if (error_reporting() == 0 || $nr == 0 || ($nr == 8 && $this->stopOnNotice == false)) {

to

if (error_reporting() == 0 || $nr == 0 || (error_reporting() & $nr) != $nr || ($nr == 8 && $this->stopOnNotice == false)) {

See php.net for a listing of all deprecated function.

Source: modxcms.com