buy tb500

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\oscommerce\catalog\admin\includes\application_top.php on line 157

i’ve seen this happen a few times. it’s caused because you have a session variable (called ‘language’) defined, but it has no value. setting the $language variable to some default value seems to fix it.

you can fix it two ways.

1) a permanent fix: in admin/includes/application_top.php, around line 112 you see:
// set the language
if (!tep_session_is_registered(‘language’) || isset($HTTP_GET_VARS[‘language’])) {

change it to:
// set the language
$language=’english’;
if (!tep_session_is_registered(‘language’) || isset($HTTP_GET_VARS[‘language’])) {

if english is not your default language, set it to whatever you want your default language to be.

2) a quick temporary fix: add a ‘?language=english’ to your url. so instead of going to domain.com/admin/index.php use domain.com/admin/index.php?language=english

i hope that helps.

Reference

http://forums.oscommerce.com/topic/317544-fatal-error/

Leave a Reply