• Resolved catherineccn

    (@catherineccn)


    Good Day,

    I got this error when trying to access the plugins page in my wp-admin dashboard:

    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 C:\inetpub\wwwroot\ccnintranetwp\wp-includes\update.php on line 447

    I checked in that file on that line, and here’s the code in that area:

    $url = 'http://api.wordpress.org/plugins/update-check/1.1/';
    $http_url = $url;
    $ssl = wp_http_supports( array( 'ssl' ) );
    
    if ( $ssl ) {
        $url = set_url_scheme( $url, 'https' );
    }
    
    $raw_response = wp_remote_post( $url, $options );
    
    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/forums/' )
            ) . ' ' . __( '(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 );
    }
    
    if ( is_wp_error( $raw_response ) || 200 !== wp_remote_retrieve_response_code( $raw_response ) ) {
        return;
    }

    Any help on how to resolve this is appreciated!

    • This topic was modified 1 year, 11 months ago by catherineccn. Reason: Forgot to add more tags
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error When Accessing Plugins Page’ is closed to new replies.