• Resolved dushyant28

    (@dushyant28)


    I am developing a site using wordpress with bitnami. When i tried to update to 4.3 today it gave me the following error:

    Update WordPress

    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 E:\BitNami\apps\wordpress\htdocs\wp-admin\includes\update.php on line 115
    Downloading update from https://downloads.wordpress.org/release/wordpress-4.3-no-content.zip…

    Fatal error: Maximum execution time of 120 seconds exceeded in E:\BitNami\apps\wordpress\htdocs\wp-includes\class-http.php on line 1597

    Any help will be much appreciated, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration…

    – The most likely issue is the webserver can’t connect to the internet or is unable to connect securely. If you have error logs on the server, check them for more detailed information as to what has failed.

    Thread Starter dushyant28

    (@dushyant28)

    Thank you for your reply, but I have very little knowledge about web servers. My site is hosted locally on my computer as of now using bitnami.
    The error lines are as follows if they might give a hint about the problem:

    on line 117

    $response = wp_remote_post( $url, $options );
    	if ( $ssl && is_wp_error( $response ) ) {
    		trigger_error( __( '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="https://wordpress.org/support/">support forums</a>.' ) . ' ' . __( '(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 );
    		$response = wp_remote_post( $http_url, $options );
    	}

    and on line 1597

    private function stream_body( $handle, $data ) {
    		$data_length = strlen( $data );
    
    		if ( $this->max_body_length && ( $this->bytes_written_total + $data_length ) > $this->max_body_length ) {
    			$data_length = ( $this->max_body_length - $this->bytes_written_total );
    			$data = substr( $data, 0, $data_length );
    		}
    
    		if ( $this->stream_handle ) {
    			$bytes_written = fwrite( $this->stream_handle, $data );
    		} else {
    			$this->body .= $data;
    			$bytes_written = $data_length;
    		}
    
    		$this->bytes_written_total += $bytes_written;
    
    		// Upon event of this function returning less than strlen( $data ) curl will error with CURLE_WRITE_ERROR.
    		return $bytes_written;
    	}

    Help will be much appreciated, Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Unable to update to wordpress 4.3’ is closed to new replies.