View Full Version : error
Thanks alot for your help, I got the the script up and i was making some changes. I was puting changing the product and category and i did somthing wrong now I get this message
Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /www/u/uncutmedia/htdocs/bags/admin/includes/application_top.php on line 130
Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /www/u/uncutmedia/htdocs/bags/admin/includes/application_top.php on line 130
how do i fix this
post the code from application_top.php around line 130
I don't understand, post the code where? copy the entire code from application_top.php? there is about 500 lines, all of it.
now i get a error:
Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /www/u/uncutmedia/htdocs/bags/includes/application_top.php on line 285
Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /www/u/uncutmedia/htdocs/bags/includes/application_top.php on line 285
I meant the code around the line 130. For example 110 to 150.
I copy the entire code from application_top.php and past it around line 130 in the index page, no luck
is it possible to reinstall this
is it possible to reinstall this?
I meant post it in this forum.
You can just ftp the original application_top.php to your website.
The one, before you made any changes.
// 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');
$current_page = basename($PHP_SELF);
if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {
include(DIR_WS_LANGUAGES . $language . '/' . $current_page);
}
// define our localization functions
require(DIR_WS_FUNCTIONS . 'localization.php');
// Include validation functions (right now only email address)
require(DIR_WS_FUNCTIONS . 'validations.php');
// setup our boxes
require(DIR_WS_CLASSES . 'table_block.php');
require(DIR_WS_CLASSES . 'box.php');
// initialize the message stack for output messages
require(DIR_WS_CLASSES . 'message_stack.php');
$messageStack = new messageStack;
// split-page-results
require(DIR_WS_CLASSES . 'split_page_results.php');
Try changing this:
// include the language translations
require(DIR_WS_LANGUAGES . $language . '.php');
$current_page = basename($PHP_SELF);
if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {
include(DIR_WS_LANGUAGES . $language . '/' . $current_page);
}
to this
// include the language translations
require(DIR_WS_LANGUAGES . $language . '.php');
If it doesn't help just ftp a clean version of the application_top.php to your website.
nothing happen I did everything, the error appear on a deffrent line
is there a problem if I reinstall this,
there is no problem with reinstalling. Just make sure that if you have any of your own products entered you will loose them. To avoid that just backup your database, and then restore.
Remember to always backup before you make any changes.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.