Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: bledi on March 31, 2016, 19:30:18

Title: Reservation API plugin
Post by: bledi on March 31, 2016, 19:30:18
Hello!
Is it possible to use reservation API plugin within the same site.?
I used the pugin in an article (from the same site), the booking form it is shown correctly, but when i search the dates the results is all the time: Request failed!
i check everything according to the topic discussed before in the forum,( url issue, etc) but nothing, the same results.Request failed!
Title: Re: Reservation API plugin
Post by: datahell on March 31, 2016, 21:34:03
Yes, off course it is possible. The message "request failed" returns when the response from the server completely fails without a specific error message. Maybe there is a php fatal error, a user access issue, or something similar. See Elxis error.log if there is a related error message. For more it would help if you posted a link to that page.
Title: Re: Reservation API plugin
Post by: bledi on March 31, 2016, 21:56:38
Thanks datahell, I looked at the Log file, but nothing about the API plugin issue (all mostly 404 error)
The link to the page is: http://www.mtitravel.al/test.html
Thanks in advance
Title: Re: Reservation API plugin
Post by: datahell on March 31, 2016, 22:58:55
You have mixed http with https. Change site's URL to https and retry. Also when you add/edit APIs use the https URL.
Title: Re: Reservation API plugin
Post by: bledi on April 01, 2016, 11:04:11
Hello!
OK, I changed to https the url. It works fine ONLY if I manually change the link to https://mtitravel.al/test.html, because elxis activates the https only in some specific pages, not the articles. If I leave the site normally (switch ssl automaticaly), still the result is: Request failed!
Thanks
Title: Re: Reservation API plugin
Post by: farmville450 on April 01, 2016, 11:38:48
Try to put these lines in the .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

and will redirect automatically all visitors to https protocol.
Then set the URL address of your site to https://www.mtitravel.al/ in general settings of Elxis.
Meaby it works for you.
The problem is that, if you have articles with images that are declared with http protocol you have to change them to https protocol because will appear to visitors that they are not to a secure connection.
Title: Re: Reservation API plugin
Post by: bledi on April 01, 2016, 11:53:31
OK, farmiville, thanks a lot, i will try your idea.
Title: Re: Reservation API plugin
Post by: farmville450 on April 01, 2016, 11:56:42
Please tell us if you solve the problem
Title: Re: Reservation API plugin
Post by: bledi on April 01, 2016, 12:52:14
Yes, fixed. Works perfect now, only the language, it is opened only in english, even the default I have albanian.(sq)
Title: Re: Reservation API plugin
Post by: farmville450 on April 01, 2016, 13:29:07
This is not happened for me. I visited your site and the first language is the Albanian.
Meaby this happens if you have "on" the language detection in general settings of elxis, and your pc has default language "English".
Just try to visit your site from another pc