You may need the full path in the the define for the MODX_CORE_PATH. Remember that it's a file path, not a URL.
e.g., on localhost, c://xampp/htdocs/core/
The error message is telling you that MODX is not being initialized, almost for sure because MODX_CORE_PATH is incorrect.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html