Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Use of undefined constant TEXT_RESULT_PAGE


daone

Recommended Posts

Posted

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.

Posted

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?

Posted
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 .

Posted

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?

Posted
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...