HTTP Error 500 (Internal Server Error) after editing code

  • Author
  • #1265732

    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.

    [my site]

    [forum post]

    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;

    The blog I need help with is


    Please disregard the line at the bottom of my comment that says, “The blog I need help with is”

    I posted from an account that until recently had an associated blog but is being replaced with another account and site as soon as they are working properly


    The site you are talking about is self-hosted WordPress site using the software from The forum for self-hosted WordPress sites is . These forums are for those hosted here at, and we can’t do any editing of PHP script files so we really don’t know what to tell you. Head over to and they should be able to help you out.

    Or better yet, talk to the people at Woo.

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