Title: HTTP Error 500 (Internal Server Error) after editing code
Last modified: August 21, 2016

---

# HTTP Error 500 (Internal Server Error) after editing code

 *  [yesterdaysbooks](https://wordpress.org/support/users/yesterdaysbooks/)
 * (@yesterdaysbooks)
 * [13 years ago](https://wordpress.org/support/topic/http-error-500-internal-server-error-after-editing-code/)
 * After updating themes.php with code I copied from a forum post (link below) my
   dashboard , blog, and login screen are displaying: “HTTP Error 500 (Internal 
   Server Error): An unexpected condition was encountered while the server was attempting
   to fulfill the request.”
 * I now appear to have no way to edit themes.php to undo the changes. I have tried
   connecting through Filezilla but only get:
 * > Error: Connection timed out
   >  Error: Could not connect to server
 * [my site] [http://yesterdaysbooks.openbtcshop.com/](http://yesterdaysbooks.openbtcshop.com/)
   
   [http://yesterdaysbooks.openbtcshop.com/wp-admin/index.php](http://yesterdaysbooks.openbtcshop.com/wp-admin/index.php)
   [http://yesterdaysbooks.openbtcshop.com/wp-login.php](http://yesterdaysbooks.openbtcshop.com/wp-login.php)
 * [forum post] [http://wordpress.org/support/topic/woocommerce-remove-fields-on-edit-address](http://wordpress.org/support/topic/woocommerce-remove-fields-on-edit-address)
 * I believe the code I added was the following. This is retyped from memory.
 * > add_filter( ‘woocommerce_billing_fields’, ‘custom_woocommerce_billing_fields’);
   > function custom_woocommerce_billing_fields( $fields ) {
   > $fields[‘billing_country’] = array(
   >  ‘required’ => false; return $fields; }

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

 *  [meraj.khattak](https://wordpress.org/support/users/merajkhattak/)
 * (@merajkhattak)
 * [13 years ago](https://wordpress.org/support/topic/http-error-500-internal-server-error-after-editing-code/#post-3745630)
 * Can you share your Apache error_log?
 * This could be a problem at your host also as you are not even able to connect
   to your server via FillZilla. Normally adding the above code shouldn’t throw 
   the 500 error unless you are making changes to .htaccess etc.
 *  Thread Starter [yesterdaysbooks](https://wordpress.org/support/users/yesterdaysbooks/)
 * (@yesterdaysbooks)
 * [13 years ago](https://wordpress.org/support/topic/http-error-500-internal-server-error-after-editing-code/#post-3745670)
 * The site was produced through OpenBitcoinStore
    [http://apply.openbtcshop.com:8080/](http://apply.openbtcshop.com:8080/)
 * I do not know how to produce an Apache error_log.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years ago](https://wordpress.org/support/topic/http-error-500-internal-server-error-after-editing-code/#post-3745671)
 * Ask your hosting providers for your Apache error log.

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

The topic ‘HTTP Error 500 (Internal Server Error) after editing code’ is closed 
to new replies.

## Tags

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [HTTP](https://wordpress.org/support/topic-tag/http/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/http-error-500-internal-server-error-after-editing-code/#post-3745671)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
