Elxis CMS Forum

Extensions => Components => Topic started by: e-isodos on February 15, 2011, 06:26:44

Title: [SOLVED] ios res - change language when under ssl?
Post by: e-isodos on February 15, 2011, 06:26:44
Hi
I have notice that after selecting a room to reserve when entering to ssl, the form with client's details is always on English inspite the fact that the initial selected language of the client was other than English.

example :
http://www.mydomain.gr/el/reservations  (Greek)

after pressing "reserve"

https://www.mydomain.gr/reservations/personal-info.html   (English)

Some suggestions?

Title: Re: ios res - change language when under ssl?
Post by: datahell on February 15, 2011, 20:13:12
The http to https redirection occurs only if the user has, by purpose, select to access a secure page by using an insecure protocol. Normally it should work without redirections and the currently selected language will be kept in URL. Have you modified IOSR, or any form's action? Can you show me a link to an online site that has this problem?
Title: Re: ios res - change language when under ssl?
Post by: e-isodos on April 01, 2011, 15:29:11
The domain is www.symi-hotel-aliki.gr
Thanks
Title: Re: ios res - change language when under ssl?
Post by: datahell on April 01, 2011, 19:22:50
It seems that IOSR handles fine SSL on that site. Where is the problem?

Note: Your site's frontpage has problem with SSL because some source clinks are not SSL aware. But this has nothing to do with IOSR (check your template/modules), the IOSR pages works fine with SSL.
Title: Re: ios res - change language when under ssl?
Post by: ks-net on April 01, 2011, 20:38:56
He is right...

there is no problem with ssl... the case here is LANG NOT SSL

only "looses"(?) lang information when try to book a room


****

go

to frontpage and select greek lang >> go to κρατησεις-link >> check availability >> select a room>> press reserve  >> the personal data form opens in ssl BUT IN ENGLISH language

about this he is talking, an auto-non-desired-switch to diff lang during reservation-process


***
yes his first page can not use ssl  cause the flickr box and perhaps other sources... but this is not the case!

Title: Re: ios res - change language when under ssl?
Post by: datahell on April 01, 2011, 20:53:43
I dont see the language changing, for me it works fine.
Here is what I did.

From here: http://www.symi-hotel-aliki.gr/el/reservations/ (http://www.symi-hotel-aliki.gr/el/reservations/)
I picked a room and clicked on "Κρατηση" (Reserve).
The next page is:
https://www.symi-hotel-aliki.gr/el/reservations/personal-info.html (https://www.symi-hotel-aliki.gr/el/reservations/personal-info.html)
Which automatically converted to SSL and the language information was kept on the URL to Greek (el).
Where is the problem?

Title: Re: ios res - change language when under ssl?
Post by: e-isodos on April 02, 2011, 00:15:58
You should check it again,
when I select the room I would like to book and then click reserve
it drives me to english version (SSL)
for the customers info
 

Title: Re: ios res - change language when under ssl?
Post by: ks-net on April 02, 2011, 00:25:13
Quote
The next page is:
https://www.symi-hotel-aliki.gr/el/reservations/personal-info.html
Which automatically converted to SSL and the language information was kept on the URL to Greek (el).
Where is the problem?

for me this next-page is  https://www.symi-hotel-aliki.gr/reservations/personal-info.html
the english page!
for me it does not keep the greek url!
Title: Re: ios res - change language when under ssl?
Post by: datahell on April 02, 2011, 00:27:07
For me it keeps the language info! I continue seeing the page in Greek in the next page...
Are you sure it doesn't work for you? This is VERY strange!

Can anyone else test it and tell me the results?

EDIT: I found the problem by deleting and checking the values of my cookies. The problem is with the cookie set by elxis. Can you tell me your PHP's version?
Title: Re: ios res - change language when under ssl?
Post by: mgrc on April 02, 2011, 00:36:41
I get English page too on the user info page after selecting a room.
..."Please fill-in your personal data. These data will stay"....

There is one thing that looks odd on your page:
This line:
Code: [Select]
<link rel="stylesheet" href="('ssl_live_site')/templates/kebic_elxis_hotel/css/template_css.css" type="text/css"/><link rel="shortcut icon" href="('ssl_live_site'/images/favicon.ico" />
I think there is a missing closing bracket here : ('ssl_live_site')/images/favicon.ico
This could be messing with lang function?
Title: Re: ios res - change language when under ssl?
Post by: ks-net on April 02, 2011, 00:50:46
this not the problem...

but

this line must be removed ... it is wrong(broken php code) and it is not used in this template...
even if you add the bracket still will be wrong
Title: Re: ios res - change language when under ssl?
Post by: kebic on April 02, 2011, 10:08:05
Code: [Select]
<link rel="stylesheet" href="('ssl_live_site')/templates/kebic_elxis_hotel/css/template_css.css" type="text/css"/><link rel="shortcut icon" href="('ssl_live_site'/images/favicon.ico" />

<link href="<?php echo $mainframe->getCfg('ssl_live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? '-rtl' : ''; ?>.css" rel="stylesheet" type="text/css" media="all" />
Title: Re: ios res - change language when under ssl?
Post by: datahell on April 03, 2011, 22:55:48
e-isodos the problem is with the cookies. I need to debug elxis / IOS Reservations on your site to spot the exact location of the problem and fix it for you.
Title: Re: ios res - change language when under ssl?
Post by: e-isodos on April 16, 2011, 14:07:58
Any news about this problem?
Title: Re: ios res - change language when under ssl?
Post by: datahell on April 17, 2011, 09:57:26
As I said I need to do some testing on your site. Please send me via email (or via the integrated in IOSR contact form with Is Open Source) username/password to your site's ftp and elxis administration.
Title: Re: ios res - change language when under ssl?
Post by: e-isodos on July 09, 2011, 17:42:22
the problem remains,
I have left it like that, because I thought it wasn't so serious
but now it is very serious,
customers complain for difficulties fill in the form only in English.


Problem appears when SEO pro is active and SSL is active too.

Any idea ?
Title: Re: ios res - change language when under ssl?
Post by: e-isodos on July 09, 2011, 18:32:57

If finally I don't have any soloution about that ...
why when I deactive the SEO pro
there are errors 404 (page no found) for languages other than English and other than home pages?

I did the following
1. Deactive the SEO pro
2. Deactive the static memory
3. Rename the .htacces to htaccess.txt
Title: Re: ios res - change language when under ssl?
Post by: rentasite on July 09, 2011, 19:55:35


I'm copying an answer from datahell, to another similar problem:

- If you want your site to be accessible ALWAYS via https set the site's URL to https://..... in Elxis' configuration.php file and dont enable SSL switch in IOSR.
- If you want your site to be in http://.... and only for special pages (i.e. during the booking process) to switch in SSL mode then enable the SSL switch in IOS Reservations configuration. IOSR will change the URL of the site automatically from http to https and vice versa where needed.

my question is: are you using OpenSSL?
Title: Re: ios res - change language when under ssl?
Post by: datahell on July 10, 2011, 09:25:04
I already said, since April 2011, where is the problem. The problem is in the cookies. After language switch the cookie information is not updated, it is always english. Visit IOSR demo site (http://booking.isopensource2.com) or elxis.org (https://www.elxis.org) and switch language, you will see that the cookie is updated fine. I need to debug your site to tell you why language switch does not work correctly in your site.

P.S. Don't enable static cache.

[attachment deleted by admin]
Title: Re: ios res - change language when under ssl?
Post by: e-isodos on July 10, 2011, 22:56:14
I noticed that when I have unactive the SEO pro the   language at the personal info is at the right language.
Title: Re: ios res - change language when under ssl?
Post by: datahell on July 11, 2011, 19:40:58
Yes, because SEO PRO works differently.
Title: Re: ios res - change language when under ssl?
Post by: datahell on July 11, 2011, 20:14:01
e-isodos sent me FTP details and the problem was fixed in 2 minutes.
I added the current language information into the form so not to loose it after form's submission.
Title: Re: ios res - change language when under ssl?
Post by: e-isodos on July 11, 2011, 22:26:35
THANK YOU DATAHELL !!
REALLY HELPED ME A LOT
Finally it is SOLVED