• Resolved anthony-d

    (@anthony-d-1)


    Hello,

    After a change from http to https of my website, I can’t use the backup to Dropbox anymore.

    No explicit log error in log file, but I’ve see in “Settings > Info” tabs, this :

    Réponse HTTP non prévue :
    Erreur HTTP de WP : cURL error 35: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

    Sorry for my bad english,

    Thanks for help,

    Regards,

    Anthony

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Anthony,

    you could try to use this small plugin which switches off the wordpress ssl check:

    <?php
    /**
     * Plugin Name: Disable WordPress local connection SSL verifying
     * Plugin URI: https://inpsydes.com/
     * Description: Disables the verifying of WordPress local SSL connections.
     * Author: Inpsyde GmbH
     * Author URI: https://inpsyde.com
     * Version: 0.1
     * Network: true
     * License: GPLv3
     * License URI: https://www.gnu.org/licenses/gpl-3.0
     */
     
    add_action( 'plugins_loaded', 'backwpup_disable_local_ssl_verify', 11 );
    function backwpup_disable_local_ssl_verify() {
    
     add_filter( 'https_local_ssl_verify', '__return_false' );
    
    }

    Put the code into a file, zip the file and install the plugin.
    If this does not help, please contact your hoster.

    Anthony, same here.
    It seems it impacts OVH clients switching to HTTPS with Let’s Encrypt.

    The plugin already provided by Daniel doesn’t restore the functionality. BackWPup still doesn’t want to start any job, even manually.

    You could look at the UpdraftPlus plugin, nowhere as good as BackWPup, but it works …

    Sorry for the double post, but I found a great hint by @itoben on https://www.ads-software.com/support/topic/ssl23-error-unknow/page/2/

    As explained in French here (https://bugs.reinom.com/view.php?id=1783), OVH installs SSL certificates on the load balancer, while an intra-site request remains local and thus bypasses the certificate.

    If you force HTTPS on your website, you can use the https://website:443 trick.

    I put that in my child theme functions.php :

    function ovhwpcron($url) {
      if ($url == "https://website.com/wp-cron.php") return "https://website.com:443/wp-cron.php";
    return $url;
    }
    add_filter('site_url', 'ovhwpcron');

    And now BackWPup works again (and probably another plugin too, which relies on wp-cron.php, that had stopped without me noticing).

    That looks like a cheap hook, so if you write a cleaner solution than this, or a solution that catches all SSL23_GET_SERVER_HELLO:unknown protocol errors caused by the OVH shared hosting setup, feel free to share.

    jb

    Thread Starter anthony-d

    (@anthony-d-1)

    Hello Christina, I’ve tried this, but it makes no difference on my OVH server.

    I’ve also tried to define ALTERNATE_WP_CRON to true in wp-config.php but that seem’s a bad solution.

    But a great thanks to JB! It’s working perfect!

    Yes, I agree, it works perfectly. But I guess I’ll be changing host next year, even if it’s more expensive

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘cURL error 35: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protoc’ is closed to new replies.