SSL issue on nginx
-
Hello,
I have configured SSL (it is rated A+ on ssllabs.com) but I got issues with Woocommerce. The checkout page is spinning (can’t place an order) and I can’t remove any item from the cart. SSL options in woocommerce are set as per instructions in https://docs.woothemes.com/document/ssl-and-https/
What else can be the issue?
The issue exist on wordpress themes and with other plugins disabled
I’m using nginx.
martin
-
View the browser error console and see the errors. In chrome, View > Developer > Javascript Console
There are only 2 Yellow icon messages:
Mixed Content: The page at ‘…/kasa/’ was loaded over HTTPS, but requested an insecure image ‘…/przepisy2.jpg’. This content should also be served over HTTPS.
(index):1 Mixed Content: The page at ‘…/kasa/’ was loaded over HTTPS, but requested an insecure image ‘…/aaaaa.jpg’. This content should also be served over HTTPS.View the network tab and see the result of the ajax response in particular.
The only warning that shows up is the one about the insecure image. If you want me to show it to you please provide me with your email so that I can send you the password to the website.
The network tab, not console. See here for an example http://mikejolley.com/2015/11/12/debugging-unexpected-token-in-woocommerce-2-4/
http://s23.postimg.org/j8mq4kwln/screen2222.jpg
No errors to shown there. See above attachment.
You click on the request, in your case update_order_review, and see what the response looks like. This is explained in my post.
Ok I have found some stuff that is odd in that section.
/* <![CDATA[ */ var WofficeAutocomplete = {"url":"https:\/\/sedziapilkarski.pl\/wp-admin\/admin-ajax.php"}; /* ]]> */or
/* <![CDATA[ */ var wc_address_i18n_params = {"locale":"{\"PL\":{\"postcode_before_city\":true,\"state\":{\"required\":false}},\"default\":{\"first_name\":{\"label\":\"Imi\\u0119\",\"required\":true,\"class\":[\"form-row-first\"]},\"last_name\":{\"label\":\"Nazwisko\",\"required\":true,\"class\":[\"form-row-last\"],\"clear\":true},\"company\":{\"label\":\"Nazwa firmy\",\"class\":[\"form-row-wide\"]},\"country\":{\"type\":\"country\",\"label\":\"Kraj\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\",\"update_totals_on_change\"]},\"address_1\":{\"label\":\"Adres\",\"placeholder\":\"Ulica\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\"]},\"address_2\":{\"placeholder\":\"Nr mieszkania, lokalu (opcjonalnie)\",\"class\":[\"form-row-wide\",\"address-field\"],\"required\":false},\"city\":{\"label\":\"Miasto\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\"]},\"state\":{\"type\":\"state\",\"label\":\"Stan\",\"required\":true,\"class\":[\"form-row-first\",\"address-field\"],\"validate\":[\"state\"]},\"postcode\":{\"label\":\"Kod pocztowy\",\"required\":true,\"class\":[\"form-row-last\",\"address-field\"],\"clear\":true,\"validate\":[\"postcode\"]}}}","locale_fields":"{\"address_1\":\"#billing_address_1_field, #shipping_address_1_field\",\"address_2\":\"#billing_address_2_field, #shipping_address_2_field\",\"state\":\"#billing_state_field, #shipping_state_field, #calc_shipping_state_field\",\"postcode\":\"#billing_postcode_field, #shipping_postcode_field, #calc_shipping_postcode_field\",\"city\":\"#billing_city_field, #shipping_city_field, #calc_shipping_city_field\"}","i18n_required_text":"pole wymagane"}; /* ]]> */Are those slashes correct? \/ \”
That’s the only weird thing I can find in the output.
Thats just escaping, but thats not in the network tab, response? If you’re looking in the right place there will just be JSON.
I think I do, and all I get is the entire code. Have a look:
Ok that is a problem.
The endpoint if you go there directly should show -1, no HTML.
Go to settings >permalinks and save to see if that resolves it.
I saved the permalinks, delete the cache but it is still showing the HTML
See if its a plugin/security plugin.
sedziapilkarski.pl/kasa/?wc-ajax=update_order_review needs to be accessible.
It may be that your nginx rules do not account for querystrings. Look at the WordPress docs for working NGINX rewrite rule examples.
location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ /index.php?$args; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules include /var/www/nginx.conf; }NGINX is allowing it but it is still not showing. Do you want me to give you the link to that website?
Use these rules https://codex.wordpress.org/Nginx
The topic ‘SSL issue on nginx’ is closed to new replies.