Problems with http and https between the links
-
Hello,
The links of my website www.mayssajaoudat.com aren't working.
There is a problem between HTTP and HTTPS because of pushstate.
Here the error message I got:
frontend.app.min.js?ver=7.8.8:1 Uncaught SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http://mayssajaoudat.com/lheure-ou-le-soleil-devient-noir-copy/' cannot be created in a document with origin 'https://mayssajaoudat.com' and URL 'https://mayssajaoudat.com/'.
at Object.pushState (frontend.app.min.js?ver=7.8.8:1:96740)
at HTMLAnchorElement.<anonymous> (frontend.app.min.js?ver=7.8.8:1:95411)
at HTMLDocument.dispatch (jquery.min.js?ver=3.7.1:2:40035)
at v.handle (jquery.min.js?ver=3.7.1:2:38006)Can someone help me on this ?
ThanksMayssa Jaoudat
-
hey, in settings > general does it say https or just http under wordpress address and site address?
-
@mayssajaoudat can you apply a "force redirection to https" setting or similar in the settings for https/SSL of your website hosting service?
-
Hello, thanks for your answer.
In the settings/general it say http -
@felix_rabe I'm not sure I can do that, it's been several weeks since I asked my host to help me on this, and nothing seems to work ...
-
@mayssajaoudat you should try change it to https
-
it looks like you have mixed content on your site meaning it is trying to load http files rather than https, have a read of this article to try fix it: https://www.wpbeginner.com/plugins/how-to-fix-the-mixed-content-error-in-wordpress-step-by-step/
-
The problem it's solved, thank you so much !!!
Have a nice day everyone :)
-
you can also try to use the plugin:
really simple sslafter you installed and activated the plugin, in the plugin settings, there is some button to enable it
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it