Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OsC doesn't work with most Mozilla browsers


Alric

Recommended Posts

This is what I get on my live store with Mozilla 1.0 and 1.6, Opera 7.5, Netscape 7.1 and Linux version of Mozilla Firefox 0.8. Windows version of Firefox works fine and Internet Explorer 6 works too.

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /biz/a/audiosavo.net/html/kauppa/catalog/includes/application_top.php on line 288

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='./:/usr/lib/php:./inc') in /biz/a/audiosavo.net/html/kauppa/catalog/includes/application_top.php on line 288

 

If I disable cookies on Exploder or win Firefox and copy the link from those with the oscid to Opera, it works, but not on others. If I disable cookies on Opera directly or any other browser, that doesn't help either. I tried including a line above require(DIR_WS_LANGUAGES . $language . '.php'); (wich is line 288) that says:

 

$language = 'finnish';

 

Finnish is the only language on our store. With that line included, I could get on to the front page of our store with problem browsers, BUT, it doesn't show categories, product names. It only shows What's new products' pictures and prices, and when try to click on those, I get a error message. Force cookie use is disabled and i've tried it enabled.

 

I searched the forums many times, but found nothing similar.

I'm quite new to OsC and php, so I'm completely lost. Any help is welcome. Thanks.

Our site is at www.audiosavo.net

 

Aki

Link to comment
Share on other sites

Hi,

 

I have been using osC now for about 4 or 5 months with Mozilla, the versions you mention, and don't have any problems. The problem is not the browser, because I get the error message with Internet Explorer. :D

 

It seems you do not have the include path correctly setup.

 

Peter

Link to comment
Share on other sites

Hi,

 

Also, you shouldn't have to set the variable (or force it like you have) by adding the line of code:

 

$language = 'finnish';

 

The variable $language is set here in /includes/application_top.php

 

264  // set the language
265    if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {
266      if (!tep_session_is_registered('language')) {
267        tep_session_register('language');
268        tep_session_register('languages_id');
269      }
270  
271      include (DIR_WS_CLASSES . 'language.php');
272      $lng = new language();
273  
274      if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
275        $lng->set_language($HTTP_GET_VARS['language']);
276      } else {
277        $lng->get_browser_language();
278      }
279  
280      $language = $lng->language['directory'];
281      $languages_id = $lng->language['id'];
282    }
283  
284  // include the language translations
285    require(DIR_WS_LANGUAGES . $language . '.php');

 

Notice the var $language is only set at line 280, and then only set if line 265 evaluates to true. What are your 'admin' settings for session_id's and language ??

 

Peter

Link to comment
Share on other sites

So simple it cannot even be true. Finnish is the only language, and I didn't have it setup as default. Somehow I forgot to do it when removing other languages, or something paranormal happened. Thanks anyway guys. Your reply made me think "outside the box" and check the obvious thing.

 

Aki

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...