daone Posted April 23, 2009 Posted April 23, 2009 Use of undefined constant TEXT_RESULT_PAGE Hi i'm a osCommerce newbie and i'm getting the above error message when testing on my local apache server can n e 1 help.
masat Posted April 23, 2009 Posted April 23, 2009 The clue you supplied means the language files are not getting parsed. The configuration file likely has incorrect settings. Be sure you put in localhost in includes->configure.php define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers something like this... define('HTTP_SERVER', 'http://localhost/yourlocaldirectory'); // eg, http://localhost - should not be empty for productive servers I have always had to battle with the config file. Is it absolute or relative? makes me pull my hair out insane How do you know when you know what you want to do for the rest of your life?
daone Posted April 23, 2009 Author Posted April 23, 2009 The clue you supplied means the language files are not getting parsed.The configuration file likely has incorrect settings. Be sure you put in localhost in includes->configure.php define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers something like this... define('HTTP_SERVER', 'http://localhost/yourlocaldirectory'); // eg, http://localhost - should not be empty for productive servers I have always had to battle with the config file. Is it absolute or relative? makes me pull my hair out insane Tried that no joy .
masat Posted April 23, 2009 Posted April 23, 2009 TEXT_RESULT_PAGE is defined in includes/languages/your_language.php in both admin and catalog. Your clue says it is not defined Try a search. Here is what you are looking for. define('TEXT_RESULT_PAGE', 'Result Pages:'); Just drop it into application_top.php for a test and see. It should work. How do you know when you know what you want to do for the rest of your life?
daone Posted April 24, 2009 Author Posted April 24, 2009 TEXT_RESULT_PAGE is defined in includes/languages/your_language.php in both admin and catalog. Your clue says it is not defined Try a search. Here is what you are looking for. define('TEXT_RESULT_PAGE', 'Result Pages:'); Just drop it into application_top.php for a test and see. It should work. Thanx the error msg is gone but now i'm gettin this: Undefined variable: languages_id & Use of undefined constant MAX_DISPLAY_PAGE_LINKS.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.