Need help? Check out our Support site, then


HTTP Error 500 (Internal Server Error) after editing code

  1. 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] http://yesterdaysbooks.openbtcshop.com/
    http://yesterdaysbooks.openbtcshop.com/wp-admin/index.php
    http://yesterdaysbooks.openbtcshop.com/wp-login.php

    [forum post] 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;
    }

    The blog I need help with is yesterdaysbooks.wordpress.com.

  2. Please disregard the line at the bottom of my comment that says, "The blog I need help with is yesterdaysbooks.wordpress.com."

    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

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

    Or better yet, talk to the people at Woo.

Topic Closed

This topic has been closed to new replies.

About this Topic