VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: mauriziomomix on October 19, 2016, 23:35:02 PM

Title: "cart" page not working on https
Post by: mauriziomomix on October 19, 2016, 23:35:02 PM
Hi all,
I just loaded my forthcoming webshop on the live secured domain.

This is the website environment:
Joomla! version: 3.6.2 Stable [ Noether ] 4-August-2016 23:41 GMT
Database version: 5.5.5-10.1.17-MariaDB
PHP version: 5.6.23
VirtueMart: 3.0.14
Live Address: https://www.maklik.it

When the website was on test domain (http) everythink was working correctly, purchase process included, but once transferred on live domain, the Cart page, and ONLY the cart page, has stopped working after the 4th step (the final one), resulting in a blank page.

In the Global Configuration I have set "Force SSL" to Yes for both Administration and front side.
The same I did in the VM Control Panel for SSL.

I saw several thread regarding this type of problem but it seems none of them is about VM3.x release

Can please someone help me fix the problem?

Many thanks in advance

Maurizio
Title: Re: "cart" page not working on https
Post by: Studio 42 on October 19, 2016, 23:51:01 PM
It seems that you have some server problems in the mime encoding.
All is returned as HTML and javascript and CSS fiels are not always loaded properly.
Title: Re: "cart" page not working on https
Post by: mauriziomomix on October 20, 2016, 00:25:18 AM
Hi, thanks for replying me.
So, is probably due to the Hosting configuration?

I really don't know what to tell them. Can you please give some more details?

Thanks in advance
Maurizio
Title: Re: "cart" page not working on https
Post by: AH on October 20, 2016, 11:07:38 AM
Assuming that you want everything to be https :-)

Tell them to serve everything as https

They should be able to configure this for you in your domain config file for port 80 (http)

A very (incomplete) example - here


<VirtualHost *:80>
    ServerAdmin youradmin@yourdomain
    ServerName your site domain

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


Title: Re: "cart" page not working on https
Post by: Studio 42 on October 20, 2016, 12:18:14 PM
I have do a full cart, to check, You have an error 500, this mean an internal PHP Error.
Change the PHP debug level in the Joomla config, so you can display the error or check in your php error log, the problem.
Title: Re: "cart" page not working on https
Post by: AH on October 20, 2016, 17:20:16 PM
Regarding HTTPS

I also would not rely on the joomla/vm settings for https.

Ensure that you force https using server level settings - that way you do not need to adjust anything in the configurations of Vm or Joomla.

This will also prevent any accidental fallback to https.
Title: Re: "cart" page not working on https
Post by: mauriziomomix on October 20, 2016, 18:51:16 PM
Hi all,
the problem has been solved. By my side I just updated the Virtuemart release (to the 3.0.18) and the cart complete the purchase process correctly.

The Hosting Provider has also done some checks on the domain configuration, so I don't know if the solution is due to the VM update or to the domain settings.

I have to gratefully thank Studio 42 and AH for their precious reply.

Best regards
Maurizio


Title: Re: "cart" page not working on https
Post by: AH on October 22, 2016, 11:14:18 AM
mauriziomomix

Thanks for the update - glad you were able to resolve your issue  :)