Server Error after trying to update the functions.php
-
I recently tried to remove the right sidebar on my homepage.
I added:
<?php
add_filter( ‘sidebars_widgets’, ‘disable_all_widgets’ );function disable_all_widgets( $sidebars_widgets ) {
if ( is_home() )
$sidebars_widgets = array( false );
return $sidebars_widgets;
}
?>to functions.php as said in the tutorial, and updated the theme. It didn’t really work as I hoped, so I tried deleting the same line and updating it, but instead I got the server error as below and can’t access to my site.
I get this message when I try to access to my site.
Server error
The website encountered an error while retrieving http://www.bpwebmedia.com/sara/wp-login.php. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.What should I do? Please help!
The topic ‘Server Error after trying to update the functions.php’ is closed to new replies.