Support » Fixing WordPress » Insecure Sidebar Search Widget Image

  • mitesh0411

    (@mitesh0411)


    Hello Guys,

    Suddenly today, my blog has started getting Mixed Content Error on Google Chrome and other browsers, after I have searched my blog from https://www.whynopadlock.com, and found that the default search option on Sidebar shows insecure image with the following error / warning :

    ======================
    Mixed Content – Errors
    Soft Failure
    An image with an insecure url of “http://www.xxxxxxxx.com/images/input-search.png” was loaded on line: 1032 of https://www.xxxxxxxx.com/blog/.
    This URL will need to be updated to use a secure URL for your padlock to return.

    ======================

    After I have removed the Search from sidebar and it has resolved the issued, but it is important to have the Search on sidebar for users to search based on the required keywords and get the results.

    Can anybody please check and help to resolve the issue.

    Kind regards,
    – Mitesh

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    How is search put on the sidebar? If a widget, which one?

    mitesh0411

    (@mitesh0411)

    Hey Steve,

    It is a default WordPress Search Widget.

    I have clicked on “Search” under the Available Widgets, and after click on “Add Widget” to Main Sidebar.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    Under settings->general, do you have https as the protocol for your site? If so, readding the widget should get the right URL for the image.

    mitesh0411

    (@mitesh0411)

    Hey Steve,

    Yes, It has HTTPS:// only, I am unable to find the solution why it has been started suddenly. As I have said after I remove the Search Widget from sidebar and it resolve the issue.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    And what happens when you replace it?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    I currently see

    (index):1 Mixed Content: The page at 'https://wwwxxxxx.com/blog/' was loaded over HTTPS, but requested an insecure image 'http://www.ccccc.com/images/input-search.png'. This content should also be served over HTTPS.

    in the error console. WordPress does not use an /images/ top level directory. Have you changed the default media directory?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    I edited the topic as discussed.

    Anyhow, the issue is that that your image is coming from someplace other than expected. Are you sure you’re using the default search widget?

    Is this a multisite?

    JNashHawkins

    (@jnashhawkins)

    It’s the little magnifier image for your search widget…

    https://www.hostnamaste.com/images/input-search.png

    The directory itself that the image resides in is capable of serving the image via https so why don’t you just edit the widget code for the search widget to add an ‘s’ to the ‘http’ and that will fix your problem.

    mitesh0411

    (@mitesh0411)

    Hey Steve,

    Yes, It is a default Search Widget only and no it is not a multisite.

    mitesh0411

    (@mitesh0411)

    Hey @jnashhawkins,

    Yes, It could resolve the issue I think, but I could not find the code of the default search widget, I have checked “searchform.php”, “class-wp-widget-search.php”, “functions.php” and other files but could not find, can you direct me with the right file to edit the default image URL?

    Also, can you please remove my domain name from your last response and use the demo domain name?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    Can you post a screen shot of the widget on the back end and/or put it on your site so we can take a look at it? The default WordPress search widget does not include an image.

    mitesh0411

    (@mitesh0411)

    Hey Steve,

    Please look at these two images uploaded here:

    https://imgur.com/a/Be4FB6k
    https://imgur.com/a/gPhDFFC

    I had temporally removed the widget to resolve the issue, but now I have re-added it for you to check on live blog.

    JNashHawkins

    (@jnashhawkins)

    Re: Also, can you please remove my domain name from your last response and use the demo domain name?

    No, I can’t remove it as it’s past time to edit/delete that link, and using a dummy or demo link just creates detritus in the form of a broken link anyway. That doesn’t help anyone.

    I don’t see how you are using a normal WordPress widget either as WordPress would then be referencing the image link properly… or should be. I could be wrong about that.

    I do see a reference to the link in the CSS for

    .search-submit

    I’m not sure why but I wonder if removing that link from the CSS might stop that problem. You can do that in the additional CSS section of the customizer or edit the CSS file itself to try that. It looks like someone tried to bury that link in a comment but…

    mitesh0411

    (@mitesh0411)

    Hey @jnashhawkins,

    I have removed the line for “searchform.php” for now, and has solved the issue but the Search “Button” is gone. I am trying to find the solution to put it back if possible as not all the users are technical and simply enter and entering the keyword in the box.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Team Volunteer

    Hmmm…. Yeah, that’s the default widget. I wonder if it’s been extended by your theme or a plugin.

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.