Title: Getting http 500 error
Last modified: August 21, 2016

---

# Getting http 500 error

 *  [Andreas90](https://wordpress.org/support/users/andreas90/)
 * (@andreas90)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/getting-http-500-error/)
 * Hello, Im quite a novice when it comes to wordpress and I’ve run into a problem.
   I was trying to make only the header image show on the front page so I added:
 *     ```
       <?php if(is_home) { ?>
   
         <div class="head-img">
         ...
         </div>
         <!-- END Header -->
   
       <?php } ?>
   
       Around
   
       	<?php $header_image = get_header_image();
       		if ( ! empty( $header_image ) ) : ?>
       			<a>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
   
       <?php } ?>
       ```
   
 * It didnt work, and when I removed the the thing I added it now shows a http 500
   error which wont go away.
 * Can anyone see in that last code-text what is wrong?

Viewing 1 replies (of 1 total)

 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/getting-http-500-error/#post-3852438)
 * Which template did you change? Only header.php? Or more files? Try replacing 
   the files you changed with unedited copies and see if it helps.
 * BTW, Error 500 is too generic and can be due to various reasons.
 * Never edit theme files directly. Instead create child themes for your edits/ 
   modifications.

Viewing 1 replies (of 1 total)

The topic ‘Getting http 500 error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Krishna](https://wordpress.org/support/users/1nexus/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/getting-http-500-error/#post-3852438)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
