Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in Safari.


retry86

Recommended Posts

Posted

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

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /home/birkepvp/public_html/katalog/includes/application_top.php on line 298"

 

HI. I get this error when i run my site in safari. It works on every other browsers on my PC(Firefox, IE, Opera). Anyone knows what might be the problem?

 

Kindly regards

 

Retry

Posted
"Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /home/birkepvp/public_html/katalog/includes/application_top.php on line 298

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /home/birkepvp/public_html/katalog/includes/application_top.php on line 298"

 

HI. I get this error when i run my site in safari. It works on every other browsers on my PC(Firefox, IE, Opera). Anyone knows what might be the problem?

 

Kindly regards

 

Retry

 

I can see that the main problem is that it can't find out what language which is chosen. In every site i try to open i get something like this: "'includes/languages//ds_product_info.php'"

 

I tried to manually set the files to english/. Then it will work perfectly with Safari, however non of the other browsers will then work.

  • 3 weeks later...
Posted
May it be my configure file maybe?

 

I have tried every configure settings i can think off, but i can't seem to solve the problem.

Posted

I've found out why this happens.

Safari has a problem with this code: "

require(DIR_WS_LANGUAGES . $language . '/' .

" if i change it to

require(DIR_WS_LANGUAGES . 'english/' .

it will work.

 

If i do this in every file, it will work OK, however the products will not be shown.

 

I've found out that the problem might be in the general.php

 

I have this code:

 

function tep_get_products_name($product_id, $language = '') {
global $languages_id;

if (empty($language)) $language = $languages_id;

 

 

I would like to force it to use english as language.

 

Does anyone have a suggestion what i might do?

 

Kindly regards

 

Retry

Posted
I would like to force it to use english as language.

 

Does anyone have a suggestion what i might do?

 

i noticed this as well when i was setting up a site. i think it doesn't correctly select a language when you first visit a site. what i did was the following:

 

in includes/application_top.php, on or about line 278 you will see the following code:

// set the language
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

 

i added a line, so it looks like this:

// set the language
 $language = 'english'; // set default language to english
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

 

i don't think you want to just set the language to english and always english, since this will give you grief later if you ever do want to support another language. but this has the effect of setting the *default* language to english, which will at least give you something to start with instead of an empty string.

 

you may also want to do a similar thing in admin/includes/application_top.php - just look for the same two lines of code.

Posted
i noticed this as well when i was setting up a site. i think it doesn't correctly select a language when you first visit a site. what i did was the following:

 

in includes/application_top.php, on or about line 278 you will see the following code:

// set the language
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

 

i added a line, so it looks like this:

// set the language
 $language = 'english'; // set default language to english
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

 

i don't think you want to just set the language to english and always english, since this will give you grief later if you ever do want to support another language. but this has the effect of setting the *default* language to english, which will at least give you something to start with instead of an empty string.

 

you may also want to do a similar thing in admin/includes/application_top.php - just look for the same two lines of code.

 

 

Hi and thanks a lot for the answer! everything works great now, but the products.

Did you do anything in general.php as well?

 

thanks a lot again.

Posted
Hi and thanks a lot for the answer! everything works great now, but the products.

Did you do anything in general.php as well?

 

thanks a lot again.

 

i've made a number of changes to general - but i think they were all related to the register globals issue and not language related. can you describe again the problem you have with the products and how to recreate it? maybe a link to your site as well so i can see it in action.

Posted
thanks for answering Dave.

 

the site is http://www.birkemo.no/katalog/

 

I'm a little ashamed since it's digistore which is basicly 99% oscommerce, so it's built up just the same.

 

I hope that's ok.

 

again thanks.

 

i know you're having a problem with products, but i don't know what to look for. can you please restate the issue you're having? then i or someone else can try to help.

Posted

Hi dave.

 

The problem is that the problem is that the products are not showing at ALL in Safari. The hole product catalog is gone.

It works fine in firefox.

 

Before i changed to

require(DIR_WS_LANGUAGES . 'english/' .

, nothing would work in Safari. But now, everyting but the products work.

 

I've seen in general some coding like this:

function tep_get_products_name($product_id, $language = '') {
global $languages_id;

if (empty($language)) $language = $languages_id;

 

And i suppose i need to do something about it, but i don't know what.

 

Kindly regards

Retry

Posted
The problem is that the problem is that the products are not showing at ALL in Safari. The hole product catalog is gone.

It works fine in firefox.

 

well, i'm not familiar at all with safari, but i'll take a stab at it. i don't think it's really a problem in oscommerce since it works fine with one browser but not another.

 

i looked at the html generated for your store and the only thing i see is that you are using maps. does safari support these well? it doesn't look like you're doing anything too complicated, so you might try using something besides image maps. a simple <a href=><img></a>, maybe even inside a table to get the formatting you want would be supported by any browser.

 

sorry i can't be more helpful. maybe someone who's used safari more can add something.

Posted
well, i'm not familiar at all with safari, but i'll take a stab at it. i don't think it's really a problem in oscommerce since it works fine with one browser but not another.

 

i looked at the html generated for your store and the only thing i see is that you are using maps. does safari support these well? it doesn't look like you're doing anything too complicated, so you might try using something besides image maps. a simple <a href=><img></a>, maybe even inside a table to get the formatting you want would be supported by any browser.

 

sorry i can't be more helpful. maybe someone who's used safari more can add something.

 

Thanks A LOT anyway arietis.

 

I hope i will find out of it eventually.

Archived

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

×
×
  • Create New...