Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    View the browser error console and see the errors. In chrome, View > Developer > Javascript Console

    Thread Starter martin

    (@sedziapilkarski)

    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.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    View the network tab and see the result of the ajax response in particular.

    Thread Starter martin

    (@sedziapilkarski)

    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.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    The network tab, not console. See here for an example https://mikejolley.com/2015/11/12/debugging-unexpected-token-in-woocommerce-2-4/

    Thread Starter martin

    (@sedziapilkarski)

    https://s23.postimg.org/j8mq4kwln/screen2222.jpg

    No errors to shown there. See above attachment.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    You click on the request, in your case update_order_review, and see what the response looks like. This is explained in my post.

    Thread Starter martin

    (@sedziapilkarski)

    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.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thats just escaping, but thats not in the network tab, response? If you’re looking in the right place there will just be JSON.

    Thread Starter martin

    (@sedziapilkarski)

    I think I do, and all I get is the entire code. Have a look:

    https://s10.postimg.org/8lhqmbue1/screen234.jpg

    Plugin Contributor Mike Jolley

    (@mikejolley)

    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.

    Thread Starter martin

    (@sedziapilkarski)

    I saved the permalinks, delete the cache but it is still showing the HTML

    Plugin Contributor Mike Jolley

    (@mikejolley)

    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.

    Thread Starter martin

    (@sedziapilkarski)

    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?

    Plugin Contributor Mike Jolley

    (@mikejolley)

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘SSL issue on nginx’ is closed to new replies.