Problem with multisite update re ssl

Just finished upgrading a multisite installation that forces ssl for logins and admin only. The first part went fine, but when I tried to apply the updates to the network (just one French translation site at the moment), I got this error message having to do with the SSL:
https://www.domain.com/fr
Warning! Problem updating https://www.domain.com/fr. Your server may not be able to connect to sites running on it. Error message: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.

I have a hidden site for future cloning and the upgrade was applied to it with no problems.

Everything works, thankfully, but I need to figure out how to make the updates.

It looks like the issue is that WordPress is trying to update https://www.domain.com/fr when the site itself is http://www.domain.com/fr.

In the network admin > sites, I see that all the sites that the domain is listed as https://www.domain.com.

Any ideas about how to fix this?

    Ashok

    Hello there

    I hope you are well today and thanks for asking the question.

    Create a plugin in mu-plugins folder and add the following code into it:

    <?php
    add_filter('https_ssl_verify', '__return_false');
    add_filter('https_local_ssl_verify', '__return_false');
    ?>

    Check if it works for you.

    Cheers
    Ash

    Ashok

    Hello there

    I hope you are well today and thanks for asking the question.

    Create a plugin in mu-plugins folder and add the following code into it:

    <?php
    add_filter('https_ssl_verify', '__return_false');
    add_filter('https_local_ssl_verify', '__return_false');
    ?>

    Check if it works for you.

    Cheers
    Ash

    flojnel
    • Elite
    • 159
    • #682

    Hi Ashok,

    What does that do exactly? I assume I could add it to functions.php?

    Ashok

    Well, you can add it in your functions.php but it won't work if you change the theme. So, you need to add it in your activated theme's functions.php file.

    Please let me know if it is helpful and feel free to ask more question if you have.

    Cheers
    Ash

    flojnel
    • Elite
    • 159
    • #682

    Thanks - don't have time to test it now, but will give it a try. It's a custom theme I wrote so won't be any problem in functions.

    Ashok

    Cool! Let me know if it works :)

    Please let me know if it is helpful and feel free to ask more question if you have.

    Cheers
    Ash

    flojnel
    • Elite
    • 159
    • #682

    Tried that and didn't solve the problem. Going to run it by host and see if there's a certificate error before looking for more WordPress fixes.

    flojnel
    • Elite
    • 159
    • #682

    Solved the problem by just making the login secure, which was the original idea. Didn't need the admin to be secure - just thought it would be a nice bonus.

    Ashok

    Hi there

    I was away for my weekend. It's great to hear that you have solved it. I am bookmarking this thread. Nice sharing :)

    Cheers
    Ash

Join 378381 happy members

Get access to our entire collection of epic plugins, astonishing themes & genius support

Become a member