Title: Start Profiling Generates cURL Error
Last modified: December 5, 2024

---

# Start Profiling Generates cURL Error

 *  Resolved [kennycheung](https://wordpress.org/support/users/kennycheung/)
 * (@kennycheung)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/)
 * When I click on Start Profiling, I get an error message: “Cannot connect to the
   requested page: cURL error 7: Failed to connect to parr.com port 443: Connection
   refused” I get the same error when I disabled Wordfence and Solid Security Basic
   plugins. I don’t see any errors in debug.log after I enabled WP_DEBUG and WP_DEBUG_LOG.
   The site cURL version is 7.64.0
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstart-profiling-generates-curl-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18180421)
 * When the profiler tries to connect to admin-ajax.php, the connection is refused.
   
   Your site is not secure. Here’s the error I receive when connecting to it:
 * >  curl: (60) SSL certificate problem: self-signed certificate in certificate
   > chain
   > More details here: [https://curl.se/docs/sslcerts.html](https://curl.se/docs/sslcerts.html)
   > curl failed to verify the legitimacy of the server and therefore could notestablish
   > a secure connection to it. To learn more about this situation andhow to fix
   > it, please visit the web page mentioned above.
 * Even my browser refuses to access it:
 * >  net::ERR_CERT_AUTHORITY_INVALID
   > its security certificate is not trusted by
   > your computer’s operating system. This may be caused by a misconfiguration 
   > or an attacker intercepting your connection.
 * You need to use a valid SSL certificate and removed the self-signed one.
 *  Thread Starter [kennycheung](https://wordpress.org/support/users/kennycheung/)
 * (@kennycheung)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18181564)
 * Our IT department said they have a CA. They are wondering if it might be our 
   firewall if your plugin is trying to access from the outside via https content
   inspection.
 * ![](https://i0.wp.com/parr.com/wp-content/uploads/2024/12/CA.png?ssl=1)
 * ![](https://wordpress.org/e0d97e0a-035a-4694-b0c9-48c8eb19e59d)
    -  This reply was modified 1 year, 6 months ago by [kennycheung](https://wordpress.org/support/users/kennycheung/).
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18182694)
 * Yes it is: the firewall returns a message, but because its SSL certificate is
   self-signed, it is not displayed. Instead, cURL (or even a browser) stops immediately
   because of the invalid certificate.
   Code Profiler must access the `wp-admin/admin-
   ajax.php` endpoint, so make sure your firewall allows your server to connect 
   to itself. You can go to “Tools > Site Health” to make sure there’s no other 
   error on your WordPress installation too.Also, check with your admin if they 
   can install a valid certificate for the firewall so that users will know why 
   there are blocked.
 *  Thread Starter [kennycheung](https://wordpress.org/support/users/kennycheung/)
 * (@kennycheung)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18187834)
 * Isn’t a certificate issued by Sectigo RSA Domain Validation Secure Server CA 
   a valid certificate?
 * Site health:
 * ![](https://i0.wp.com/parr.com/wp-content/uploads/2024/12/site-health.gif?ssl
   =1)
    -  This reply was modified 1 year, 6 months ago by [kennycheung](https://wordpress.org/support/users/kennycheung/).
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18188963)
 * The problem is not the website certificate, but the firewall’s.
   Here are its 
   3 chained certificates:
 * depth=1 CN = WatchGuard Certificate Authority, O = Parr Lumber
   **verify error:
   num=19:self-signed certificate in certificate chain**verify return:1depth=1 CN
   = WatchGuard Certificate Authority, O = Parr Lumberverify return:1depth=0 CN 
   = 38.142.109.178, O = Parr Lumberverify return:1
 * As you can see, the first one is self-signed and that’s the reason why cURL stops
   processing the request.
 *  Thread Starter [kennycheung](https://wordpress.org/support/users/kennycheung/)
 * (@kennycheung)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18195718)
 * IT appears to have fixed the cURL issue. Now I get the error below – even when
   I use the lowest Accuracy and Precision setting and after IT gave the site more
   RAM.
 * The HTTP server returned the following error: 503 Service Unavailable
   You can
   try to select a lower Accuracy and Precision level in the Settings page.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18197342)
 * Click on the “Logs” tab, and scroll to the HTTP response log: what do you see?
 *  Thread Starter [kennycheung](https://wordpress.org/support/users/kennycheung/)
 * (@kennycheung)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18197898)
 * Only “The HTTP response log is empty.”
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18198755)
 * Click the “Support” tab, and search for `[admin-ajax]` . Do you see `[access]
   => OK` or an error?
 *  Thread Starter [kennycheung](https://wordpress.org/support/users/kennycheung/)
 * (@kennycheung)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18198861)
 * Yes:
 *     ```wp-block-code
       [admin-ajax] => Array
           (
               [access] => OK
           )
       ```
   
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18201469)
 * It seems to work as expected.
   Can you check your PHP error log ? It should show
   the error.If you can’t find any log, you can enable debugging in WordPress:
    1. Edit your wp-config.php file.
    2. Search for:
       `define('WP_DEBUG', false);`
    3. Replace with:
       `define('WP_DEBUG', true);`
    4. Add this line below:
       `define( 'WP_DEBUG_LOG', true );`
 * Try to run the profiler until you get the error and check the log that will be
   saved to “/wp-content/debug.log”.
 *  Thread Starter [kennycheung](https://wordpress.org/support/users/kennycheung/)
 * (@kennycheung)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18202311)
 * It didn’t add anything to the debug log. I cleared it out the log before running
   the profiler.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18206886)
 * The error occurs at a lower level: either your HTTP server or maybe the firewall?
   
   Can you check their error log?

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

The topic ‘Start Profiling Generates cURL Error’ is closed to new replies.

 * ![](https://ps.w.org/code-profiler/assets/icon-256x256.png?rev=3143506)
 * [Code Profiler - WordPress Performance Profiling and Debugging Made Easy](https://wordpress.org/plugins/code-profiler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-profiler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-profiler/)
 * [Active Topics](https://wordpress.org/support/plugin/code-profiler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-profiler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-profiler/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/start-profiling-generates-curl-error/#post-18206886)
 * Status: resolved