PDA

View Full Version : error


Roger
3-30-04, 09:43 AM
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

natural
3-30-04, 10:16 AM
post the code from application_top.php around line 130

Roger
3-30-04, 11:28 AM
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

natural
3-30-04, 11:39 AM
I meant the code around the line 130. For example 110 to 150.

Roger
3-30-04, 01:07 PM
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?

natural
3-30-04, 01:14 PM
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.

Roger
3-30-04, 02:36 PM
// 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');

natural
3-30-04, 02:45 PM
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.

Roger
3-30-04, 07:13 PM
nothing happen I did everything, the error appear on a deffrent line

is there a problem if I reinstall this,

natural
3-30-04, 07:22 PM
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.