[wp-trac] [WordPress Trac] #43110: Warning: WordPress could not establish a secure connection to WordPress.org

WordPress Trac noreply at wordpress.org
Wed Jan 17 13:07:39 UTC 2018


#43110: Warning: WordPress could not establish a secure connection to WordPress.org
------------------------------+-----------------------------
 Reporter:  subrataemfluence  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  4.9.2
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Not sure if this is a core bug, but since the message has WordPress.org in
 it I thought it might have a relation with core. I have updated to 4.9.2
 just today and occasionally, specially when the site is idle for some
 time, I am getting the following message:

 ''Warning: An unexpected error occurred. Something may be wrong with
 WordPress.org or this server’s configuration. If you continue to have
 problems, please try the support forums. (WordPress could not establish a
 secure connection to WordPress.org. Please contact your server
 administrator.) in /var/www/wp-projects/multibase/wp-includes/update.php
 on line 348''

 However, if I refresh the page the message goes away and everything
 "seems" to be normal. I am on multisite setup and working at my localhost.


 {{{#!php
 <?php
 if ( $ssl && is_wp_error( $raw_response ) ) {
    trigger_error(
         sprintf(
         /* translators: %s: support forums URL */
         __( 'An unexpected error occurred. Something may be wrong with
 WordPress.org or this server’s configuration. If you continue to
 have problems, please try the <a href="%s">support forums</a>.' ),
         __( 'https://wordpress.org/support/' )
         ) . ' ' . __( '(WordPress could not establish a secure connection
 to WordPress.org. Please contact your server administrator.)' ),
         headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
    );
         $raw_response = wp_remote_post( $http_url, $options );
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43110>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list