• Resolved dushyant28

    (@dushyant28)


    I am developing a wordpress site using wordpress with bitnami. it is currently locally hosted on my computer. i tried to update to 4.3, but got the following errors:

    1. error in update.php

    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…

    line 115 actually has just a );

    but here is the code that is above and below it :

    $options = array(
    		'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
    		'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ),
    		'headers' => array(
    			'wp_install' => $wp_install,
    			'wp_blog' => home_url( '/' )
    		),
    		'body' => $post_body,
    
    	[line 115] );
    
    	$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 );
    	}

    2. the secomd error was in the class-http.php file

    Fatal error: Maximum execution time of 120 seconds exceeded in E:\BitNami\apps\wordpress\htdocs\wp-includes\class-http.php 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;
    		}

    I dont have knowledge about how servers work, any help will be much appreciated. thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Info here about migrating your bitnami instance to the latest versions of php, wordpress etc, but seeing as the installation failed then I would assume this wouldn’t work.

    I’ve never used bitnami, but in a wordpress hosting scenario in the case f a failed update you would:

    1. take a backup of what you have (database + files/directories)
    2. download a fresh copy of wordpress 4.3
    3. delete all wordpress files/directories in the root directory EXCEPT wp-config and wp-content
    4. upload the new wordpress files/directories to the same root directory EXCEPT wp-config and wp-content

    Thread Starter dushyant28

    (@dushyant28)

    Followed. Thank you very much!

    Glad to hear that helped 🙂

    I’ve had several issues while upgrading and creating fresh installs of WordPress 4.3. It turns out the issue was a firewall issue. Disabling the firewall got rid of my duplicate header and cannot connect to WordPress warning.

    I am not a web developer, I am a mere novice user of WordPress. I was handed the task of updating, designing (aesthetically) and maintaining info on the our website.

    The person who originally started it is no longer available for contact.

    Here is my problem: I am trying to update to the latest version in addition to adding new plug-ins. It is giving me this error message:

    ERROR: There was an error connecting to the server, Please verify the settings are correct.
    Connection Information

    To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
    Hostname

    Unfortunately, I don’t have the host name and am completely at a loss at how to get it. Is this something easily obtained? If so, who, what, where do I ask? Thanks for ANY help you can give me – learning as I go!

    @laurakurtz0408

    Use this search to identify your hosting company (by inserting your website name), then contact them to arrange login details to access your site files through the cPanel. Note that you may need to convince them that you are the true owners of the site if they have only been dealing with the original person who set up the site.

    Good luck!

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

The topic ‘Trouble updating to wordpress 4.3’ is closed to new replies.