You can use the following code to dump the HTTP Api response, will help you figure out the cause of error.
function dump_http_api_response($response, $type="", $transport=null ) {
if ( $type == "response" )
var_dump ( $response );
}
add_action('http_api_debug', 'dump_http_api_response', 1, 3);
Example Output:
object(WP_Error)#15 (2) { ["errors"]=> array(1) { ["http_request_failed"]=> array(1) { [0]=> string(41) "Couldn't resolve host 'api.wordpress.org'" } } ["error_data"]=> array(0) { } }
Related Posts:
- Getting a 404 when trying to load /wp-admin/plugin-install.php
- get 404 when accessing wp-admin/plugin-install.php
- Prompted for FTP details even with FS_DIRECT set to true
- What plugins do you commonly install on a fresh WordPress install?
- How can I create a bash install script for my WordPress sites setup (WP+plugins+theme)?
- Combine multiple plugins into one?
- How to automatically install default WordPress plugins?
- How to make search engine index PDF files? [closed]
- Does plugin uninstall always put WordPress back into original state?
- What is the purpose of the “Hello Dolly” plugin?
- How to properly secure my WordPress installation?
- How would implement StackExchange ‘Questions with similar titles’ for the FAQ on my wordpress site
- How can I force a “404 Not Found” error
- Make plugin uninstalable on older versions of WordPress
- Please select a file error
- WP-PageNavi plugin doesn’t work with multiple pages of search results
- What is $tab in `install_plugins_{$tab}` hook?
- Plugin to install a plugin
- How to improve WordPress search
- Creating search filter through plugin
- How do I add advanced custom fields / meta fields to Elasticsearch? [closed]
- plugin to search entire posts, blogs, forum, users [closed]
- How can I reuse the WordPress search form for a custom plugin / widget?
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- Show a special message for private page?
- How to check what plugins used to be on a WordPress installation?
- Custom Taxonomy Tag Search
- What is the best way to mimic a search query within a plugin
- Is there a way I can find wordpress posts that don’t contain a word?
- Theme and plugin install or update display error in localhost
- Hook (or other way) to find out when another plugin is activated / installed
- Pushing out updates to multiple installs?
- Search Everything plugin integration
- AJAX search posts and pages
- Reoccurring 404 Errors on all subpages
- URL parameters causing 404 on home page, but nowhere else
- Import sql data from a large file when installing plugin
- AJAX search as you type? [duplicate]
- WooCommerce search products between price range using WP_Query
- Redirect to another page using contact form 7? [closed]
- Modify wp_installed_email / wp_new_blog_notification
- Send admin an email when a user’s search has no results
- Installing wordpress on a subdomain of an already existing static website
- Integrate Algolia to WordPress site
- plugin generated 751 characters of unexpected output during activation
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- How to set “split_on_numerics” to false in ElasticSearch mapping using ElasticPress? (for proper SKU search in WooCommerce) [closed]
- My custom php file keeps 404’ing in WordPress when I call it. What am I missing?
- Woocommerce Backend Search by Title and SKU
- To perform the requested action, WordPress needs to access your web > server
- wp-admin send 404 error
- Which filter/action should I use to serve content for “virtual” files
- WordPress unable to write files in the server
- Search and Filter Plugin – How to disable redirection
- WordPress Multi-Step Product Search
- Programmatically install and activate child-theme
- Search by Attachment ID
- Can’t Install/Upgrade Plugins Through WordPress
- Creating a search form and displaying results
- Is it save to replace with in WordPress search form
- Pagination/404 I believe wp is getting a page ahead of itself
- All new plugins generating 311 chars of unexpected output?
- WordPress search shows protected content
- How to search post titles with whole words only, but not the exact word only?
- RSS feeds for specific topics
- WP search box on page not finding .PDF files
- Redirect to a page while maintaining search query parameters without causing an infinite loop
- Upload WordPress Plugin from ZIP Broken – Returns Symbols Squares & question marks
- How to detect 404 url and make this link underline or change background color?
- How to exclude a part of a page in search results
- PageNavi redirects to 404 when used as archive page
- multiple string replace of post’s content for large data
- Restoring a WordPress site
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- Can’t install plugins after updating to WordPress 4.9
- WordPress Plugin Install / Update Problem
- WP-admin plugin installation via FTP silently fails on shared hosting
- How to make wp multisite subdomain exist search
- Remove Url Parameter WordPress
- Plugin install error: Installation failed: The package could not be installed
- Plugin with AJAX on subdomains causes 404 in console
- How can I remove this sidebar from my Search Results page?
- History of page, interval of years
- WordPress menu and plugin installation problem
- How to hook into search results template or query?
- WordPress Search return wrong results
- Moving to WordPress Premium versus a hosting provider
- Getting 404 page not found error while trying to access add new plugin / themes
- Upacking the package… stalls, but installs plugin
- Is there any simple wordpress search template that works with existing searchforms?
- Extend WordPress Search
- homepage olderposts link showing page not found
- Jigoshop search taxonomy
- Using one-click plugin upgrade feature securely on suexec server
- Dave’s WordPress Live Search only works when logged in as admin
- wordpress Search function is not working
- Multi-step, live updating search
- Google analytics not working on WordPress
- Plugin installation works only with FTP – how to debug?
- How to set an exact search box in tablepress plug-in