Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error in loading 2.3.1


rehab7376

Recommended Posts

this is the error

 

 

Warning: require(includes/languages/.php): failed to open stream: No such file or directory in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 167

 

Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\catalog\admin\includes\application_top.php on line 167

Link to comment
Share on other sites

Hi

There will be some code in includes/application_top.php that looks a bit like

// include the language translations
 require(DIR_WS_LANGUAGES . $language . '.php');

 

In your case $language has an empty value (hence the error telling you Failed opening required 'includes/languages/.php')

 

Further up application_top there will be another chunk of code that is meant to set $language - that's failing for some reason I'd have a look at that

 

If all else fails and your happy to bodge it on your localhost there then just add in a little line:

 

//wee bodge
if(is_null($language)){$language='english';}//or whatever language folder is in use
// include the language translations
 require(DIR_WS_LANGUAGES . $language . '.php');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...