- osCommerce Support Forum
- → Viewing Profile: scandic_outlet
Latest News: (loading..)
Community Stats
- Group Community Member
- Active Posts 108 (0.04 per day)
- Most Active In General Support (49 posts)
- Profile Views 5,281
- Age Age Unknown
- Birthday Birthday Unknown
-
Real Name
Michael David
-
Gender
Not Telling
Contact Information
3
Neutral
Latest Visitors
Posts I've Made
In Topic: Mobile OSC help plz
21 October 2011, 19:10
hi - you fixed this issue?
In Topic: Put wrong ISO code and went live.. now changing F*CKS up site
25 August 2011, 06:24
yes - it is working fine with this mod - in the sense that default language is chosen.
However when changing the iso code of the language - page just goes white.
I'll try run over the error log again..
Alternatively - could one do a .htaccess rule, that if visitors call language code XX - > change it to YY ?
However when changing the iso code of the language - page just goes white.
I'll try run over the error log again..
Alternatively - could one do a .htaccess rule, that if visitors call language code XX - > change it to YY ?
In Topic: Put wrong ISO code and went live.. now changing F*CKS up site
24 August 2011, 06:19
i just realize something..
We had a problem that we did not want the browser detection of language - so we changed this code:
// 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'];
}
To this:
// 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->set_language(DEFAULT_LANGUAGE);
}
$language = $lng->language['directory'];
$languages_id = $lng->language['id'];
}
Could this be part of the problem? If this "forced" setting of default language is somehow "stored" remembered by the visitors browser?
We had a problem that we did not want the browser detection of language - so we changed this code:
// 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'];
}
To this:
// 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->set_language(DEFAULT_LANGUAGE);
}
$language = $lng->language['directory'];
$languages_id = $lng->language['id'];
}
Could this be part of the problem? If this "forced" setting of default language is somehow "stored" remembered by the visitors browser?
In Topic: Put wrong ISO code and went live.. now changing F*CKS up site
24 August 2011, 06:13
MrPhil, on 24 August 2011, 01:52, said:
A blank page usually means a fatal PHP error. It probably has nothing to do with changing the ISO code, but is an error introduced elsewhere. You should see somewhere on your system a log of PHP errors. Sometimes it's called error_log and resides in the directory where the error occurred. There may also be something in your web site host admin panel recording errors. Have you looked in these places? Also read http://www.catskilltech.com/freeSW/SMF/faqs/ > Blank page/White Screen of Death.
Hi Phill
thanks so much for your reply
Well the error is fixed, as soon as i change the language iso code back to what it was before.
Also - if choosing to load the page with the language define in the end, it works as well..
Really strange.. i looked in the error log - but i will try again, and see if i missed something.
In Topic: Put wrong ISO code and went live.. now changing F*CKS up site
21 August 2011, 19:39
scandic_outlet, on 19 August 2011, 12:23, said:
hi guys
i made a bad mistake.
When installing the language pack for Danish language, i added the language in admin and put "dk" as the iso code... It should have been "da"
After a month of being "live" i discovered this mistake, because of some payment modules, who needs the correct iso code "da".
I tried chaning the admin setting to DA - but then most customers who visited the site before the change - now just gets a BLANK PAGE.
i dont know if its because most computers caches something or where i am going wrong.. but could anyone of you offer me any kind of solution how to get around this problem??
I realliy need to set the proper iso code - but at the same time, dont want to give all my returning customers a blank screen
please help me.
regards and many thanks
Michael
i made a bad mistake.
When installing the language pack for Danish language, i added the language in admin and put "dk" as the iso code... It should have been "da"
After a month of being "live" i discovered this mistake, because of some payment modules, who needs the correct iso code "da".
I tried chaning the admin setting to DA - but then most customers who visited the site before the change - now just gets a BLANK PAGE.
i dont know if its because most computers caches something or where i am going wrong.. but could anyone of you offer me any kind of solution how to get around this problem??
I realliy need to set the proper iso code - but at the same time, dont want to give all my returning customers a blank screen
please help me.
regards and many thanks
Michael
anyone have any ideas for this matter?
- osCommerce Support Forum
- → Viewing Profile: scandic_outlet
- Forum Rules






Find content

