Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: require(includes/languages/.php)


kennywilson

Recommended Posts

Posted

After installing OSC and having to remove the register_global string as i am on shared hosting i am coming up with the following errors.

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /home/a6676325/public_html/os/includes/application_top.php on line 279

 

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a6676325/public_html/os/includes/application_top.php on line 279

 

The coding around 279 is as follows

 

// 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');

// currency
 if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) {
   if (!tep_session_is_registered('currency')) tep_session_register('currency');

   if (isset($HTTP_GET_VARS['currency'])) {
     if (!$currency = tep_currency_exists($HTTP_GET_VARS['currency'])) $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;
   } else {
     $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;
   }
 }

 

I tryed changing require(DIR_WS_LANGUAGE . $language . '.php'); to require(DIR_WS_LANGUAGE . $language . 'english.php');

 

once that is done i just get a blank screen

 

due to this error i can not use website or admin

 

any help much appriciated

Posted

Kenneth,

 

The WORKING stable version of osCommerce is V2.2 RC2a and it does not require register globals to be on. Therefore, I suggest you delete V3.0 ALPHA 5 and install a working cart.

 

I know the download page states V3.0 is ready, but.......it's a lie to make everyone feel that progress is being made on a new release >_<

 

 

Chris

Posted

Hi Chris

 

Thanks for reply i have now installed the one you mentioned and it still bringing up the exact same error and does still require the register_global

 

any ideas

Posted

Hi Chris

 

Thanks for reply i have now installed the one you mentioned and it still bringing up the exact same error and does still require the register_global

 

any ideas

 

A pertinent question... who said that you need register globals on on shared hosting? If that is the case I'd change!

 

Barbara

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...