Title: Trouble when update WordPress through http proxy
Last modified: November 7, 2016

---

# Trouble when update WordPress through http proxy

 *  [cwyy](https://wordpress.org/support/users/cwyy/)
 * (@cwyy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/trouble-when-update-wordpress-through-http-proxy/)
 * Hi, thanks for you time.
    I installed wordpress 4.6.1 on my mint laptop,it works
   well except the http proxy. I use a local proxy server to browse the internet,
   so i added 3 lines into the wp_config.php file.
 *     ```
       define ( 'WP_PROXY_HOST', '127.0.0.1' );
       define ( 'WP_PROXY_PORT', '8123' );
       define ( 'WP_PROXY_BYPASS_HOSTS', 'localhost, *.local' );
       ```
   
 * however when I browse to the update page of the backend, some errors happended
   as follow:
 *     ```
       ( ! ) 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 <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/wordpress/wp-includes/update.php on line 306
       Call Stack
       #	Time	Memory	Function	Location
       1	0.0000	360976	{main}( )	.../update-core.php:0
       2	0.0001	361648	require_once( '/var/www/wordpress/wp-admin/admin.php' )	.../update-core.php:10
       3	0.0451	2533584	do_action( )	.../admin.php:329
       4	0.0452	2533984	wp_update_plugins( )	.../plugin.php:524
       5	0.0638	2629712	trigger_error ( )	.../update.php:306
   
       ( ! ) 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 <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/wordpress/wp-includes/update.php on line 479
       Call Stack
       #	Time	Memory	Function	Location
       1	0.0000	360976	{main}( )	.../update-core.php:0
       2	0.0001	361648	require_once( '/var/www/wordpress/wp-admin/admin.php' )	.../update-core.php:10
       3	0.0451	2533584	do_action( )	.../admin.php:329
       4	0.7125	2622768	wp_update_themes( )	.../plugin.php:524
       5	0.7853	2645056	trigger_error ( )	.../update.php:479
   
       ( ! ) 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 <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/wordpress/wp-includes/update.php on line 123
       Call Stack
       #	Time	Memory	Function	Location
       1	0.0000	360976	{main}( )	.../update-core.php:0
       2	1.3339	2636592	wp_version_check( )	.../update-core.php:583
       3	1.3495	2668040	trigger_error ( )	.../update.php:123
       ```
   
 * The php version is 7.0.8 with xdebug 2.4.0 installed.
    The command `wget -e "
   http_proxy=http://127.0.0.1:8123" http://downloads.wordpress.org/release/wordpress-
   4.6.1-no-content.zip` can download the expected file normally.
 * I have spent hours for this issue, and now i’m wondering if this is just a bug
   of wordpress.
    [Here](http://pastebin.com/vG1PvBiU) is my whole wp-config.php
   file.
    -  This topic was modified 9 years, 6 months ago by [cwyy](https://wordpress.org/support/users/cwyy/).
      Reason: add more details
    -  This topic was modified 9 years, 6 months ago by [cwyy](https://wordpress.org/support/users/cwyy/).
      Reason: using pastebin to show the sucks code

The topic ‘Trouble when update WordPress through http proxy’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 0 replies
 * 1 participant
 * Last reply from: [cwyy](https://wordpress.org/support/users/cwyy/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/trouble-when-update-wordpress-through-http-proxy/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
