API Error

#77917
  • Resolved James Wiant
    Rank Math free

    I just started getting an API error when trying the site analysis:
    cURL error 28: Operation timed out after 30007 milliseconds with 0 bytes received

    How do I fix?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Alberto
    Rank Math business

    Hello James,

    Thank you for contacting Rank Math today.

    Please edit the following plugin file:
    /includes/modules/seo-analysis/class-seo-analyzer.php

    Then, change the following line (line number 380):
    $request = wp_remote_get( $api_url, [ 'timeout' => 20 ] );

    Increas the timeout value to 60:
    $request = wp_remote_get( $api_url, [ 'timeout' => 60 ] );

    The SEO analysis should start working as expected.

    Or, you could also use the online version of the tool which is just as good:
    https://rankmath.com/tools/seo-analyzer/

    Looking forward to helping you. Thank you.

    I could not find the php file you referred to – I looked at the directory tree quite a while and didn’t find anything. In my public_html folder (where the landing site is stored) I looked into the sub folder blog (where the blog site and SEO tools would be) and there is nothing there either. The Blog was installed into a sub folder of my public_html so perhaps that would change the directory structure. Any further help locating the file would be appreciated.

    I will use the external tool in the short term pending locating that file.

    Thanks

    Re: online reporting tool…
    It works fine on my landing page (https://www.mysite.com) but fails when I try to point it to the blog (https://www.mysite.com/blog

    Any idea why?

    Thanks again

    Alberto
    Rank Math business

    Hello,

    If you want we could try to do those modifications for you. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    • This reply was modified 4 years, 3 months ago by Alberto.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘API Error’ is closed to new replies.