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 to see the link]
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 curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how 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.
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.
This reply was modified 1 year, 6 months ago by kennycheung.
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.
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.
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:
Edit your wp-config.php file.
Search for: define('WP_DEBUG', false);
Replace with: define('WP_DEBUG', true);
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”.