Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories & Products not showing up on fresh install


sin

Recommended Posts

I just installed the newest snapshot, and the categories & products do not show up in the admin panel. The data is entered into the tables of the database, and in the application_top the categories and product tables are set correctly. Anyone have some advice or... ? suggestions?

Thanks in advance,

Mark

Link to comment
Share on other sites

I believe I found the problem..

 

in application_top.php:

 

if ( (!$language) || ($HTTP_GET_VARS['language']) ) {

if (!$language) {

tep_session_register('language');

tep_session_register('languages_id');

}

 

include(DIR_WS_CLASSES . 'language.php');

$lng = new language($HTTP_GET_VARS['language']);

 

if (!$HTTP_GET_VARS['language']) $lng->get_browser_language();

 

$language = $lng->language['directory'];

$languages_id = $lng->language['id'];

}

 

 

 

admin/classes/language.php does not exist. I simply set $language = "english" & $language_id = "1" ... because I'm not going to use any other language.

Link to comment
Share on other sites

  • 4 years later...

I had the same problem. The last hack actually worked for me too (thanks sin!) ... with 2 minor changes. Just added the following after the if block:

 

else { $language = 'english'; $languages_id = 1; }

 

Note the omission of quotes on the 1 (it's a number not a string) and the "s" in $languages_id. Works like a charm now.

 

Just doublecheck the languages_id is actually 1, it may be a different number in your install, change above code accordingly.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...