• Resolved Robin

    (@quadratblick)


    Hey there!

    I am getting the following error under Site Health which is why REST API and loopback requests as well as scheduled events are failing:
    cURL error 35: error:1408F10B:SSL routines:ssl3_get_record:wrong version number (http_request_failed)

    It’s a fresh WordPress installation without any additional plugins or themes. I haven’t changed any of the settings.

    This is my configuration:
    ### wp-core ###
    version: 6.0.3
    https_status: true
    multisite: false

    ### wp-server ###
    server_architecture: Linux 5.4.0-125-generic x86_64
    httpd_software: Apache
    php_version: 8.1.11 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 30
    memory_limit: 128M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 2M
    php_post_max_size: 8M
    curl_version: 7.68.0 OpenSSL/1.1.1f
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: false

    ### wp-database ###
    extension: mysqli
    server_version: 8.0.30-0ubuntu0.20.04.2
    client_version: mysqlnd 8.1.11
    max_allowed_packet: 67108864
    max_connections: 151

    ### additional info ###
    – virtual server created with Virtualmin
    – database server is Localhost via UNIX socket, according to phpMyAdmin
    – webserver runs on PHP-Version 7.4.32, according to phpMyAdmin
    – collation is utf8mb4_german2_ci
    – the error persists under PHP 7.4 and 8.0, too
    – according to the server admin, upgrading cURL or OpenSSL isn’t “trivial”

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    Ask your host why loopback is failing.

    Also ask if they can update Curl — in case you are running an outdated version.

    Thread Starter Robin

    (@quadratblick)

    My cURL version is 7.68.0, about 2,5 years old. Unfortunately, my host will not update it in our Shared Hosting environment.

    He’s also stumped for an answer if it comes to WordPress and cannot tell me why the loopback is failing. He wants the URL that cURL is accessing from me to look into it, but I don’t know what URL that would be. Do you?

    I think it has something to do with running on a subdomain. If I issue this command I receive a response from your rest api.https://jadestartupbox.de/wp-json/wp/v2

    However, This command doesn’t return a response from your rest api.
    https://jadestartupbox.jade-hs.de/wp-json/wp/v2

    the wp-json/wp/v2 is part of the rest api that is used by wordpress. It should allow you to access the rest api though the url name.

    is the .jade-hs a subdomain for your site ??

    It works without this subdomain added.

    I don’t know if this is of any help to you but you can check with your host provider to see how it was set up.

    Thread Starter Robin

    (@quadratblick)

    Thank you for chiming in, Tom, but that’s our old website which is not hosted by the same group as our new website. jadestartupbox is the subdomain for jade-hs.de. Formerly, jadestartupbox was its own domain.

    Thread Starter Robin

    (@quadratblick)

    Fixed! Here’s what my host has found out:
    “If namebased virtual hosts are used on a Debian or Ubuntu server and the DNS entry of the virtual server is a CNAME then the website cannot be accessed locally on the server. Of course this also applies to curl.”

    Moderator t-p

    (@t-p)

    Glad its sorted ??

    Could you share your solution? I have a very similar scenario and I don’t know how to solve it.

    @quadratblick How did you fix it then?

    • This reply was modified 1 year, 8 months ago by newfulluser.
    • This reply was modified 1 year, 8 months ago by newfulluser.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘cURL error 35: REST API & Loopback failing’ is closed to new replies.