Quantcast
Channel: 500 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 2443

yesterdaysbooks on "HTTP Error 500 (Internal Server Error) after editing code"

$
0
0

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/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;
}


Viewing all articles
Browse latest Browse all 2443

Trending Articles