Trouble updating to wordpress 4.3
-
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
The topic ‘Trouble updating to wordpress 4.3’ is closed to new replies.