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
- register_rest_route, Compare purchase codes and send a response
- Authorization and execution of the link
- Foreach loop inside an array_merge
- page-slug.php not working but only for specific slug
- {$key} or $key?
- How to show meta value code HTML after x paragraph
- Redirect to a page for only logged in user
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- Display the 3 latest WordPress Posts on a Static Page Outside WordPress
- Export Form Data to a CSV then send it as an attachment – contact form 7
- Override user-edit.php to design own profile page
- Live to Local on MAMP, not working, outputting functions.php code
- Remove extract from function
- Undefined offset: 3 in custom function
- List all blogs, but exclude the main site
- How to append to an array and return the results in a filter?
- How to specify the path for require_once in a child theme?
- Set site title & tagline with wp.config or function.php
- How can I add a new row in a separate database when someone registers via WordPress?
- Shortcode to embed Edit Account form not working
- Redirecting to a custom forgot password page
- How to pass a variable to get_template_part that’s updated every time the template part is called?
- Warning: printf(): Too few arguments in helpers.php file
- $_SESSION variable not saving on page refresh or new page
- Form search query – displaying ACF “Post Object” field as results
- Errors after upgrading PHP to 7.4 WordPress
- Design with Elementor and code the rest?
- Add additional functions file instead of functions.php
- How to make jquery count down timer function manually editable
- Issue with fetching mysql data and displaying results via shortcode in webpage
- wp_insert_post() with HTML tags using PHP
- How to rename woocommerce-billing-fields
- Any ideas why I am getting “I’m getting “wp-admin/admin-ajax.php 401 (Unauthorized)”
- InnerBlocks with allowedBlocks not working with acf_register_block
- Can a plugin redirect product page based on IF condition?
- Cant register rest routs from class instance
- Hierarchical taxonomy list with modificated term links
- How can i change variable if condition is not met
- Shortcode not staying inside div tag
- if isset not working for undefined index, how to fix
- HTML showing after PHP code in tag
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Decoded malware code [closed]
- Double Curly Brackets in Php
- Line breaks inside shortcode variable
- How to return site_url() without https://
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- How set a custom URL for a new theme file in WP?
- PHP-warning in post-template.php and no loading content on pages
- How to unlink all posts from tracking same amount of views
- Connecting to another server database from the wordpress plugin
- Site Health says I’m running an older version of PHP even after I upgraded to 7.4.4
- Login redirect. Check user meta and redirect accordingly
- PHP Notice: Undefined offset: -1 – Navigation Previous/Next
- WordPress REST API register_rest_route give a 500 error
- How to use wordpress function wp_enqueue_script() in php?
- Where to insert redirect code based on http_referer?
- Add class to website based on post taxonomy
- Form Submission Not Working In Custom Theme
- Need php code’s output to display underneath a Divi Module
- Where is the PHP code generating an element?
- How do I check or test a WordPress Auto Year Change Script?
- Parse error: syntax error, unexpected ‘,’
- Prevent redirect to wp-login.php
- Extending WP_Customize_Media_Control to return filename
- Insert page content into another page with a changed variable
- Decimal values via get_option() with custom local (decimal point = comma)
- WP_Query | IF within $args array | Help me only add specific arguments if the argument is not blank
- Noindex Posts From Certain Authors In WordPress
- In WordPress, how do I get the number of posts next to single_cat_title(”); in the category.php file?
- Use get() method to grab all categories and output inside another method
- Seo Friendly Filter URLs
- Include only posts with meta key “add_in_rss” in RSS Feed
- Pass Variables or Variable Place-Holder from Editor to PHP
- Convert a string into a decimal number for use in query
- Is there a built-in function to generate multiple paragraph tags based on a string with new line separators?
- Issue with custom loop in Archive page