Error - wp_remote_post request failed

Browser: MS Edge
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hi, I’ve just installed WordPress and Bricks. I notice in System Information, the PHP wp_remote_post has an error:

There was a code snippet to test wp_remote_post from this thread and the result was:

As far as I know, SSL is properly setup (I could be wrong). Additional info:

  • Hosting provider: Hostinger VPS
  • Domain Provider: Cloudflare
  • Cloudflare Bot Fight Mode: Disabled
  • Cloudflare Encryption Mode: Full (Strict). Though I have tested on Flexible and Full.

I installed WordPress and Certbot SSL via terminal and honestly I am very new at it. So I’m not sure if I missed anything during installation.

Just wanted to have everything in green before I start building so would love some input on this.

Thanks.

Hi there,

I just moved this thread to “How to” category as it’s not a bug in Bricks.

This error message is more to your server SSL configuration.

Unfortunately, we don’t have a clear idea of what causing the issue.

It would be best if you could check with your server/hosting support and let them know your environment is unable to make wp_remote_post() request to your own domain name which will be used when using Bricks Query Filters feature.

Regards,
Jenn

Hey itchycode,

Thanks for the reply. I will do as advised.

Really appreciate you taking the time to reply to my post :slight_smile:

Hello itchycode,

After consulting with my provider, I managed to resolve the issue.

It had something to do with the cURL extension for PHP was not installed.

By running these commands, I was able to fix it:

sudo apt-get install php-curl
sudo systemctl restart apache2  # If using Apache
# or
sudo systemctl restart nginx  # If using Nginx

Adding my solution here in case someone in the future faces the same issue.

1 Like