I had the same problem and eventually found a solution today (actually, a friend of mine did it). What I did was to edit the /etc/nginx/nginx.conf file and add resolver ip address. The configuration file in the section server contains now resolver 127.0.0.1; below you can find a part of it
server {
listen 443 ssl;
resolver 127.0.0.1;
Do not forget to restart nginx and php-fpm services, that depends on your distro, with archlinux you can do the following
systemctl stop php-fpm
systemctl stop nginx
systemctl start php-fpm
systemctl start nginx
Hope that helped.
Related Posts:
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Uploading media with the REST API
- cURL 28 error after switch from to brew php 7.2 on localhost
- Creating a post with the REST API, curl and oauth returning 401 error
- Use wp_remote_get to get JSON instagram feed from public profile
- Creating login session via CURL
- Where Does WordPress Make cURL Requests? How To Add cURL Option
- export a csv file from the database with a cronjob
- Programmatic Login from 3rd Party site
- get post content of particular post by url
- WordPress from url get external source title
- WordPress transient not working with WP Engine
- How to send a HTTP Post request using PHP Curl and WordPress
- SOAP Request/Parsing XML From wp_send_json_success
- REST API works in browser and via AJAX but fails via cURL
- Post to WordPress from another Server via PHP
- Accessing an API with jQuery and AJAX
- calling admin-ajax.php from admin-ajax.php
- Contactform7: display results from CURL
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- What is different about using admin-ajax.php in an endpoint and just submitting a form from the front end?
- cURL running slow in WordPress
- Trouble Sending Elementor Form Data via cURL in WordPress
- add_action taking an array with the 2nd argument?
- Can WP plugins access files outside the installation folder?
- PHP nested If statement syntax
- WP Insert Post and then go to post
- Having Issue on Redirecting With Session in WordPress
- Why is $wp->request empty in WordPress 6.0?
- plugin add action hook is not working :
- customize wordpress database error page
- Add class to DIV depending on page loaded
- Make a database query using WordPress
- Load Posts on Click via Ajax into a DIV
- get_the_ID() in the footer returns wrong value
- How can I hook into the wp_mail function used by BackWPup?
- Syntax issue on rest object’s callback
- Get uploaded image and attach it to the new post
- Cannot access $wpdb, comes back NULL
- Get the users that my following users are following
- Hooks for post saving make a post-new.php to load latest post’s data
- WP_Query multiple post results
- Convert Featured products loop into Recent products loop?
- PHP Contact form
- How to use `wp_insert_post()` and `get_permalink()` functions?
- Image Attachments of an Array into Flexslider
- save metabox with new values _wp_page_template
- get_template_part function and add images
- Need advice on theme customizer and child themes
- How to make sure relative URL works when site is not on root domain?
- xmlrpc how to check for errors
- Anonymous functions usage
- display sticky post outside loop and exclude from loop
- Change Language Title Pagination on Subdomain non Multisite
- remove specificly the last tag in all posts
- How to hide a child category and show his parent category
- PHP Warning: exif_imagetype
- How to detect and handle the time difference between server and user in WordPress?
- How can I pass php code as a content while publishing a post
- Posts title instead of Pages and Category titles – PHP WordPress
- How to change PHP variables with AJAX request in WordPress
- If Statement is Ignored?
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Remove span tags from WooCommerce Downloads page
- Trying to get property ‘ID’ and ‘post_author’ of non-object error
- Split post or page content in two or more columns
- Allow specific user to edit a specific page
- Use Post ID in functions.php
- How to create loop inside wordpress function?
- PHP error after theme update
- Adding PHP to an if else loop
- is_user_logged_in() not working in homepage
- Custom Post type Ajax search results
- Creating a custom register form
- Display only upcoming events / Show all events when archive year is selected
- Website is loading with corrupted data once a while [duplicate]
- Passed variable gets undefined variable error on insert on next page
- Display a post based on its metabox selection
- search results based on categories or custom fields
- WordPress Setting page can not be saved by html radio
- Calling the Next category link on an archive page – WordPress
- Custom action on comment post
- Changing posts date
- Merging two excerpt functions to work with conditions
- Custom 404 error does not always appear
- php-page with db connection
- Javascript code not working – $ is not a function error
- Show post like this image in my newssite [closed]
- How do I remove spammy links in WP theme footer?
- Why is this specific API request failing when sending via wp_remote_post?
- Can’t send form data to wpdb when URL has query string
- undefined variable in php
- WordPress move current to top in the loop
- How to change product SKU’s in bulk with a plugin
- BrowserSync not detecting PHP files in WordPress + Laravel Mix
- Function for Post Creation plugin for Gravity Forms
- success Message not Displaying
- child category under correct parent
- PHP Warning: Undefined array key “HTTP_REFERER”
- JQuery UI Autocomplete showing as bullets