Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

M-S Stores


Guest

Recommended Posts

Warning: include(includes/languages/english/) [function.include]: failed to open stream: Inappropriate ioctl for device in /home/sunshop/dev.sunshop.co.nz/catalog/admin/includes/application_top.php on line 195

 

Warning: include(includes/languages/english/) [function.include]: failed to open stream: Inappropriate ioctl for device in /home/sunshop/dev.sunshop.co.nz/catalog/admin/includes/application_top.php on line 195

 

Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='./:/usr/local/lib/php:/usr/share/pear/:/usr/local/apache/phpinc/:/home/sunshop/dev.sunshop.co.nz/') in /home/sunshop/dev.sunshop.co.nz/catalog/admin/includes/application_top.php on line 195

 

Line 171 - 195 looks 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 . 'english.php'); // Affected area of code LINE 195

$current_page = basename($PHP_SELF);

if (file_exists(DIR_WS_LANGUAGES . 'english/' . $current_page)) {

include(DIR_WS_LANGUAGES . 'english/' . $current_page);

}

 

 

I moved sunshop.co.nz to mysql 5 today and got exactly the same error and on hardcoding $language . '.php' to 'english.php' gave different errors and added a double slash so there is some sloppy languages code somewhere does anyone have a fix for this problem.

 

Regards Richard

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...