JREAM Posted September 14, 2008 Share Posted September 14, 2008 I get a couple of errors like this: Notice: Undefined index: index_location in C:\Z8\cms\config.php on line 136 $CMS['index_filename'] = 'index.php'; $CMS['index_location'] = '../'; define ('CMS_PAGE', $CMS['index_location'] . $CMS['index_filename']); Link to comment https://forums.phpfreaks.com/topic/124138-notice-undefined-index-index_location/ Share on other sites More sharing options...
genericnumber1 Posted September 14, 2008 Share Posted September 14, 2008 Typically this error is caused by attempting to call an array element that doesn't exist... is this all of the code? is the bottom line 136? Link to comment https://forums.phpfreaks.com/topic/124138-notice-undefined-index-index_location/#findComment-640901 Share on other sites More sharing options...
JREAM Posted September 14, 2008 Author Share Posted September 14, 2008 Yes thats the last line is line 136 which references from the two Link to comment https://forums.phpfreaks.com/topic/124138-notice-undefined-index-index_location/#findComment-640965 Share on other sites More sharing options...
genericnumber1 Posted September 14, 2008 Share Posted September 14, 2008 if those three lines are together like that.... (no ifs, anything like that) I have no idea how you're getting that error if those lines aren't together at all, ask yourself if there's any possible way that $CMS['index_location'] could not be set by the time it gets to line 136. Link to comment https://forums.phpfreaks.com/topic/124138-notice-undefined-index-index_location/#findComment-640967 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.