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
