dotolee Posted August 19, 2011 Share Posted August 19, 2011 Hi. I can't figure out why I'm getting a bunch of notices about using undefined constants when i try to load my login page. Here's one of the error messages: ( ! ) Notice: Use of undefined constant LOG_ERRORS - assumed 'LOG_ERRORS' in C:\wamp\www\pr\ssys\Errors.php on line 90 Line 90 in errors.php looks like: if (LOG_ERRORS) { $error_log = 'Date :'.date('Y-m-d H:i:s'); In my login page, the includes look like this: include_once (BASE_PATH.'includes/definitions.php'); As a test, I've included an echo statement at the end of my include to see if it prints. It does, but only after a few "notices" about undefined constants. can someone point me in the right direction? this is a web site that is working in production as is... i'm just tyring to set it up in my local environment to work on some additional code. Link to comment https://forums.phpfreaks.com/topic/245165-why-are-my-includes-not-working/ Share on other sites More sharing options...
trq Posted August 19, 2011 Share Posted August 19, 2011 What is in definitions.php ? The constants you are using definitely haven't yet been defined. Link to comment https://forums.phpfreaks.com/topic/245165-why-are-my-includes-not-working/#findComment-1259241 Share on other sites More sharing options...
dotolee Posted August 19, 2011 Author Share Posted August 19, 2011 definitions page includes variable declarations such as the one in question: define('LOG_ERRORS', true); Link to comment https://forums.phpfreaks.com/topic/245165-why-are-my-includes-not-working/#findComment-1259247 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.