• Resolved ungowp

    (@ungowp)


    Hello,

    We have been trying to solve this problem for days. We have 2 sites on the same server, but the crawler does not work on 1 site. Both sites have the same settings, the sitemap plugin (Rank Math SEO) is the same. In the details of the error above it says: cURL error 60: SSL certificate problem: self signed certificate.

    But there is no problem with our SSL certificate settings. How can we solve this problem?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter ungowp

    (@ungowp)

    Hi,

    Report number:?FKHIFEUN

    Report date: 09/22/2023 03:43:25

    Plugin Support qtwrk

    (@qtwrk)

    what does it show if you create a php file with code below , and access it by browser ?

    <?php
    require( './wp-load.php' );
    
    $response = wp_remote_get( 'https://your_domain.com/sitemap_index.xml' );
    
    echo ''; 
    var_dump($response); 
    echo '';

    replace your_domain.com to actual one

    Thread Starter ungowp

    (@ungowp)

    object(WP_Error)#2377 (3) { [“errors”]=> array(1) { [“http_request_failed”]=> array(1) { [0]=> string(63) “cURL error 60: SSL certificate problem: self signed certificate” } } [“error_data”]=> array(0) { } [“additional_data”:protected]=> array(0) { } }

    Plugin Support qtwrk

    (@qtwrk)

    okay , now please try this one

    <?php
    
    $ch = curl_init();
    
    curl_setopt($ch, CURLOPT_URL, 'https://your_domain.com/sitemap_index.xml');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HEADER, true);
    curl_setopt($ch, CURLOPT_NOBODY, true); 
    
    $result = curl_exec($ch);
    
    if ($result === false) {
        die('CURL Error: ' . curl_error($ch));
    }
    
    var_dump( $result);
    
    Thread Starter ungowp

    (@ungowp)

    Hello,

    CURL Error: SSL certificate problem: self signed certificate

    Plugin Support qtwrk

    (@qtwrk)

    Thread Starter ungowp

    (@ungowp)

    Hello,

    I uploaded the file but it didn’t help because it was the same.

    Plugin Support qtwrk

    (@qtwrk)

    well, then I have no more idea , the function wp_remote_get() and curl_init() was from WP and PHP itself, even not with our plugin involved , maybe something on your server environment , please check with your hosting provider.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No valid sitemap parsed for crawler’ is closed to new replies.