{"id":1584,"date":"2017-06-29T20:46:43","date_gmt":"2017-06-30T00:46:43","guid":{"rendered":"https:\/\/blog.jonesling.us\/?p=1584"},"modified":"2017-06-29T20:59:50","modified_gmt":"2017-06-30T00:59:50","slug":"wordpress-error-curl-error-6-couldnt-resolve-host-dashboard-wordpress-com","status":"publish","type":"post","link":"https:\/\/blog.jonesling.us\/?p=1584","title":{"rendered":"WordPress Error: cURL error 6: Couldn&#8217;t resolve host &#8216;dashboard.wordpress.com&#8217;"},"content":{"rendered":"<p><strong>Background:<\/strong><\/p>\n<p>I maintain a WordPress blog that uses Jetpack&#8217;s Stats package.<\/p>\n<p><strong>Issue:<\/strong><\/p>\n<p>We started getting this error message when opening the &#8216;Stats&#8217; page:<\/p>\n<pre>We were unable to get your stats just now. Please reload this page to try again. If this error persists, please contact support. In your report please include the information below.\n\nUser Agent: 'Mozilla\/5.0 (X11; Linux x86_64; rv:54.0) Gecko\/20100101 Firefox\/54.0'\nPage URL: 'https:\/\/blog.server.tld\/wp-<wbr \/>admin\/admin.php?page=stats&amp;<wbr \/>noheader'\nAPI URL: 'https:\/\/dashboard.wordpress.<wbr \/>com\/wp-admin\/index.php?<wbr \/>noheader=true&amp;proxy&amp;page=<wbr \/>stats&amp;blog=XXX&amp;charset=<wbr \/>UTF-8&amp;color=fresh&amp;ssl=1&amp;j=1:5.<wbr \/>0&amp;main_chart_only'\nhttp_request_failed: 'cURL error 6: Couldn't resolve host 'dashboard.wordpress.com''<\/pre>\n<p>The entire Stats block in the Dashboard was empty, and the little graph that shows up in the Admin bar on the site was empty as well.<\/p>\n<p>Other errors noticed:<\/p>\n<pre>RSS Error: WP HTTP Error: cURL error 6: Couldn't resolve host 'wordpress.org'\nRSS Error: WP HTTP Error: cURL error 6: Couldn't resolve host 'planet.wordpress.org'<\/pre>\n<p>These errors were in the WordPress Events and News section, which was also otherwise empty.<\/p>\n<p>This whole thing was ridiculous on it&#8217;s face, as the hosts could all be pinged successfully from said server.<\/p>\n<p>I checked with Jetpack&#8217;s support, per the instructions above, and got a non-response of &#8220;check with your host.&#8221;\u00a0 Well, this isn&#8217;t being run on a hosting service so you&#8217;re telling me to ask myself.\u00a0 Thanks for the help anyway.<\/p>\n<p><strong>Resolution:<\/strong><\/p>\n<p>The machine in question had just upgraded PHP, but Apache had not been restarted yet. The curl errors don&#8217;t make much sense, but since when does anything in PHP make sense?<\/p>\n<p>It was kind of a &#8220;duh!&#8221; moment when I realized that could be the problem.\u00a0 Restarting Apache seems to have solved it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Background: I maintain a WordPress blog that uses Jetpack&#8217;s Stats package. Issue: We started getting this error message when opening the &#8216;Stats&#8217; page: We were unable to get your stats just now. Please reload this page to try again. If this error persists, please contact support. In your report please include the information below. User &hellip; <a href=\"https:\/\/blog.jonesling.us\/?p=1584\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WordPress Error: cURL error 6: Couldn&#8217;t resolve host &#8216;dashboard.wordpress.com&#8217;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[355,277,83,275,354],"class_list":["post-1584","post","type-post","status-publish","format-standard","hentry","category-linux","tag-apache","tag-errors","tag-linux","tag-php","tag-wordpress"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4o3FW-py","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/1584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1584"}],"version-history":[{"count":8,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/1584\/revisions"}],"predecessor-version":[{"id":1592,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/1584\/revisions\/1592"}],"wp:attachment":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}