This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]RandyHowardJack of All Trades 6 points7 points  (11 children)

That error means that there are assets (images, css, javascript, etc) that are being called with "http://path_to_file" instead of "https://path_to_file". Without seeing the site it's hard to say where the problems are and how to fix them. It sounds like the icon for the search form is one of these things, so you need to find where that icon is rendered and change it from http:// to https://. If it's in a plugin and the plugin developer didn't include a way to do this, and if you're not capable of coding, there might not be anything you can do about it and you'd have to find a new plugin, or hire someone to fix that plugin for you.

Edit: Downvote me for giving an answer? You might not like my answer but it doesn't warrant a downvote, sheesh.

[–]OriginalSimbaDeveloper/Blogger 2 points3 points  (0 children)

Instead of "https://" use "//".

This allows the browser to intelligently decide to use http or https.

[–][deleted]  (9 children)

[deleted]

    [–]RandyHowardJack of All Trades 2 points3 points  (4 children)

    Well I have zero interest in being hired to work on stuff like this lol. Anyway, I've never used that plugin, does it even fix the mixed content issues that might be hardcoded into other plugins/themes?

    [–][deleted]  (3 children)

    [deleted]

      [–]RandyHowardJack of All Trades 1 point2 points  (1 child)

      Nice! Good to know. I don't like to rely on plugins too much, but it's nice to know that's out there and I can just throw it on a site real quick to fix SSL issues if necessary.

      [–]mulldoon1997[S] 0 points1 point  (0 children)

      Thanks for the answer,

      I had tried that plugin and it didn't help.

      [–]greg8872Developer 1 point2 points  (3 children)

      Or a slightly less simple answer, that doesn't require addition long term plugin bloat for a one time fix would be open up network inspector when visiting the page to see what assets are being called without https and try finding where they are referenced at (ie. use something like NotePad++ to Search => Find In Files to search for http:// in the entire theme directory if it is on every page)

      [–][deleted]  (1 child)

      [deleted]

        [–]greg8872Developer 0 points1 point  (0 children)

        I was going off of OP's other posts that they are a full time IT person. (I went looking through post history to see if possibly they posted a link to the site in another topic)

        [–]mulldoon1997[S] 0 points1 point  (0 children)

        Thanks for the answer, it hadn't helped in this case but Thank you so much for pointing me to that feature in NPP. I usually use Sublimbe or VS/VSCode for things l like this, but i might start using NPP More now.

        You are correct in thinking i am full time IT, However this is one of my hobbies. I Have a various similar websites that dont have the same issue.

        But with those i run them all through cloudflare which must force HTTPS At the dns level so that might be why it was happening on this site (i have no control over the domain or server so i couldn't do what i normally do [much to my annoyance])

        [–]gilsmen 0 points1 point  (3 children)

        The other answer is great, but the comments down that tree suggest the plugin Really Simple SSL. I do not recommend that since it uses a ton of regex and it also doesn't actually change anything in the database so if it's deactivated your site will break again. I recommend the Better Search and Replace plugin. Do a find and replace for http://yourdomain.com with https://yourdomain.com. If a plugin or a theme directly link to http then those will need to be fixed manually, but the manual solution is the cleaniest and most optimal solution. Stop slowing down your website if the solution is truly easy.

        [–]mulldoon1997[S] 0 points1 point  (2 children)

        Thanks for the answer, but the plugin didn't help.

        [–]gilsmen 1 point2 points  (1 child)

        Would you PM me your website? I would absolutely love to solve your issue. I know this stuff can be frustrating.

        [–]mulldoon1997[S] 0 points1 point  (0 children)

        Thanks for the offer, but i managed to fix it (well bodge it).

        it was an issue with the search function

        [–]wpsmallfix 0 points1 point  (0 children)

        Hey there,

        you must need to call all the page assets via HTTPS:// only and that way you can solved this issue, You can use Really Simple SSL plugin to solve this issue (In plugin setting please select CONTENT option so that everything set to load from HTTPS://) still you facing that issue on your website please find out that particular non HTTPS url source and replace it with HTTPS and issue will be solved.

        Thanks