- Posts: 16
- Thank you received: 1
add to card and wish list button not work
7 years 5 months ago #305938
by emperor69
add to card and wish list button not work was created by emperor69
hi
first of all, sorry for my bad English
my site is with SSL and all buttons were good. today i found that when i press add to card button or the wish-list button, an error occurs: Insecure content blocked.
i didn't any change in backend.
please help
first of all, sorry for my bad English
my site is with SSL and all buttons were good. today i found that when i press add to card button or the wish-list button, an error occurs: Insecure content blocked.
i didn't any change in backend.
please help
Please Log in or Create an account to join the conversation.
7 years 5 months ago #305947
by nicolas
Replied by nicolas on topic add to card and wish list button not work
Hi,
We would need to look at the situation directly on the website to be able to say where it comes from.
Could you provide a link to the shop ?
We would need to look at the situation directly on the website to be able to say where it comes from.
Could you provide a link to the shop ?
Please Log in or Create an account to join the conversation.
7 years 5 months ago #305955
by emperor69
Replied by emperor69 on topic add to card and wish list button not work
Please Log in or Create an account to join the conversation.
7 years 5 months ago - 7 years 5 months ago #305962
by emperor69
Replied by emperor69 on topic add to card and wish list button not work
hi again
i think the problem was solved!
i have used some redirection code in .htaccess file and after edit them, the problem was solved.
when i clicked on add to cart button, the url forced to http:// protocol and as my site works with SSL, the error was occur
am i right??
i think the problem was solved!
i have used some redirection code in .htaccess file and after edit them, the problem was solved.
when i clicked on add to cart button, the url forced to http:// protocol and as my site works with SSL, the error was occur
am i right??
Last edit: 7 years 5 months ago by emperor69.
Please Log in or Create an account to join the conversation.
7 years 5 months ago - 7 years 5 months ago #305957
by nicolas
Replied by nicolas on topic add to card and wish list button not work
Hi,
That error is only a consequence of the real issue.
If you click on the add to cart button on your website and look at the network tool of your browser, you can see two requests:
monosnap.com/file/Z1vjJ2TTqTSWSOdcJ7pgLDghTK7KSo
If you look at the first one, you can see that it has the https:
monosnap.com/file/8uvpySmojvYQ3wZJtL5M6FfHtn5PdK
However, your server returns a redirection leading to the javascript of the add to cart to do the second request, without the https in the URL:
monosnap.com/file/lavpACpSWwqsnWyHibxQfHI63IRnHg
And this is the one that is blocked as insecure.
So the problem, as you found out already, was indeed that you must have added some kind of redirect rule (either on the server, in the config of the apache, or in a htaccess, or with a component which can do redirect rules) and the rule breaks the add to cart links because it does a redirect while it shouldn't.
That error is only a consequence of the real issue.
If you click on the add to cart button on your website and look at the network tool of your browser, you can see two requests:
monosnap.com/file/Z1vjJ2TTqTSWSOdcJ7pgLDghTK7KSo
If you look at the first one, you can see that it has the https:
monosnap.com/file/8uvpySmojvYQ3wZJtL5M6FfHtn5PdK
However, your server returns a redirection leading to the javascript of the add to cart to do the second request, without the https in the URL:
monosnap.com/file/lavpACpSWwqsnWyHibxQfHI63IRnHg
And this is the one that is blocked as insecure.
So the problem, as you found out already, was indeed that you must have added some kind of redirect rule (either on the server, in the config of the apache, or in a htaccess, or with a component which can do redirect rules) and the rule breaks the add to cart links because it does a redirect while it shouldn't.
Last edit: 7 years 5 months ago by nicolas.
The following user(s) said Thank You: emperor69
Please Log in or Create an account to join the conversation.
Time to create page: 0.205 seconds