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
- How to declare a global variable in php?
- Undefined variable in functions.php file [closed]
- Mega Menu Walker
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- load/require specific php files for specific pages/templates/post types
- Activate different theme for temporary preview
- Execute a shortcode when clicking on a image
- Store loop into array
- Add a custom text field to WooCommerce admin product data “Variations”
- Show Specific Footer Widget for Specific Pages
- How do I output a database option that is an array into a get_posts array?
- Why is it necessary to prevent direct access to included files?
- Run a Parallel PHP Application with WordPress
- Display Post co-authored in Author Page
- How can I use a $wp_customize to edit my homepage image slider?
- Password protecting content in custom template
- WordPress vs. Custom PHP [closed]
- How to Display a Single Post Excerpt
- Trouble With Conditional Logic in PHP
- How to Highlight unread WordPress posts?
- Is there CSS to expand the gallery limit on Index Pages?
- Hide categories that are not used in the post type
- Is it possible to increase php memory without directives in wp-config.php, .htaccess or php.ini?
- Limit 1 global comment per minute
- How can I add an area/option for a custom page description?
- Menu jumping when calling it via PHP
- Problem custom control Customizer
- Running code before object-cache.php runs
- How to escape attachment image caption text?
- Is there a way to conditionally check whether a WordPress post title is empty?
- Use WordPress function in php file
- How to parse multiple links from one variable?
- Issue with php version 7.2 in running search
- How Can I Edit the Registration Code?
- What is the right way to add PHP code to a certain part of a page
- Display attribute on shop page after the title
- Cant connect to database with php 7.3
- iframe not showing in content on blog page
- WordPress WP_Query without query GET parameters
- How to clone all WordPress Rest API end points
- Get the name of menu item with wp_nav_menu
- What’s wrong with this piece of code? [closed]
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- Nav menu from plugin to theme
- Generate responsive post thumbnails of same size
- How to prevent a function from running based on host (ie web vs local)?
- Change out put of the_post_thumbnail in PHP
- Styling an “active” link outside of WordPress default menu
- WordPress permalink issue
- Any way to hide a blog posts text if it’s longer than let’s say 300 characters
- Delete images from media library when user deletes an image from ACF Gallery
- Array data not saving to specified sections. How to make seting independantly?
- How to get woocommerce orders with get_posts method in a shortcode
- Integrate otp in my custom singup form
- Change category thumbnail size
- how to make wordpress user submit form once?
- Multiple Tag Filtering
- Need to show 7 posts from actual date
- How to reload a php script, using AJAX and jQuery
- Make wp_editor required
- I need to edit a widget, with no dashboard access
- Add custom ID attribute to all woocommerce products on archive pages
- problem in using wpdb->prepare and a string placeholder
- Custom content using in_category
- Get the total Author Favorited posts
- Need help with PHP functions
- WordPress WPDB::insert 13th param is always blank (only if format)
- When using shortcode, content stops generating after the_content
- MySQL query in WordPress with AJAX
- How do you detect if a specific word is at the end of a the_title()
- WordPress styling recent post
- Combining fancybox with multiple thumbnail plugin
- How to display thumbnail if post is assigned one otherwise not
- How to check “From Email” via WordPress before an email is sent
- Php echo into tag
- Add specific phrase after every product title including the discounted price? [closed]
- Remove Unused Menu Locations
- How do I change the Go To Categories link in the term_updated_messages
- Can’t insert into a database wordpress
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress