Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Issue With Configuration File


scotch33

Recommended Posts

Posted

Hi,

 

Ok stupid mistake I know, but I was examining the front end config file because I have a new server where I cannot use the web install. Unfortunately I saved it mid, mess and now the shop I took it from is displaying the following error. I have tried to change the config, but seem toi be just getting myself into a worse mess! Does anyone have any idea which bits this is relating to so I can sort it out. Thanks!

 

 

Warning: require(includes/languages//index.php) [function.require]: failed to open stream: No such file or directory in /home/o/n/onlinestopshopa/public_html/index.php on line 33

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages//index.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/o/n/onlinestopshopa/public_html/index.php on line 33

Posted

Hi

 

I think your have a problem in your application_top.php and/or your languages table (being empty) instead. There should be 'english'(folder) inbetween /languages/ and index.php (assuming your shop use english), and the 'english' (folder) is a variable defined/set in application_top.php, which in turn reads it fron the languages table.

Just athought.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted
Hi

 

I think your have a problem in your application_top.php and/or your languages table (being empty) instead. There should be 'english'(folder) inbetween /languages/ and index.php (assuming your shop use english), and the 'english' (folder) is a variable defined/set in application_top.php, which in turn reads it fron the languages table.

Just athought.

 

Ken

 

Yes - Your right - That double \\ where I would expect it to be \english\ instead. I've just tried hard coding the path in and it works ok, but then brings up a host of other issues - not foning products, not finding prices and so on. I have now compared the config file to another on the sane server and all is the same apart from the actual domain name. Thus I can't see what I should be changing.

 

I haven't been anywhere near the application_top file or the database to change things there. I'll take a look and see if there is anything there.

 

Any further suggestions appreciated.

Thanks!

Posted

I've just taken a look at the section in application_top on language - it all seems fine! It is below

 

// 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('includes/languages/english.php');

Archived

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

×
×
  • Create New...