Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error after succesfull install


Guest

Recommended Posts

Hi there I just installed a new instance of OsC on the server.

The installation went all the way to the end without erros, but when you click on the catalog button you get the following message:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/Q/W/E/QWERasdf7/html/shop/includes/application_top.php on line 285

 

It seems that it's not grabbing the .php file name, but only the extension -> languages/.php

 

I just don't know what to change in the configure.php in order to make this work. Or maybe the problem belongs elsewhere?

 

Any help would be trully appreciated

 

thanks!!!

Link to comment
Share on other sites

Hi there I just installed a new instance of OsC on the server.

The installation went all the way to the end without erros, but when you click on the catalog button you get the following message:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/Q/W/E/QWERasdf7/html/shop/includes/application_top.php on line 285

 

It seems that it's not grabbing the .php file name, but only the extension -> languages/.php

 

I just don't know what to change in the configure.php in order to make this work. Or maybe the problem belongs elsewhere?

 

Any help would be trully appreciated

 

thanks!!!

 

 

so does line 264 - 285 of your application_top file look exactly like this :

// set the language

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

if (!tep_session_is_registered('language')) {

tep_session_register('language');

tep_session_register('languages_id');

}

 

require(DIR_WS_LANGUAGES . $language . '.php');

Link to comment
Share on other sites

so does line 264 - 285 of your application_top file look exactly like this :

// set the language

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

if (!tep_session_is_registered('language')) {

tep_session_register('language');

tep_session_register('languages_id');

}

 

require(DIR_WS_LANGUAGES . $language . '.php');

 

oops =- i meant like this :

 

// set the language

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

if (!tep_session_is_registered('language')) {

tep_session_register('language');

tep_session_register('languages_id');

}

 

include(DIR_WS_CLASSES . 'language.php');

$lng = new language();

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

$lng->get_browser_language();

}

 

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

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

}

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

Link to comment
Share on other sites

Yes, it looks just like that...

 

The issue might be some place else...

 

thanks for your help so far

 

no matter how you cut it - it is simply not accessing or creating the $language variable properly.

This could be a server issue.

Or it could be an OSC function issue.

 

Are you sure this is in you classes directory : /includes/classes/language.php

Link to comment
Share on other sites

no matter how you cut it - it is simply not accessing or creating the $language variable properly.

This could be a server issue.

Or it could be an OSC function issue.

 

Are you sure this is in you classes directory : /includes/classes/language.php

 

 

Yeah, the file is there... I'll contact the hosting support

 

thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...