Title: HTTP Error 500
Last modified: September 1, 2016

---

# HTTP Error 500

 *  Resolved [artdept](https://wordpress.org/support/users/artdept/)
 * (@artdept)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-500-522/)
 * I am getting this error on my website marrakeshhaircare.com – on both the live
   site and the wordpress back end. I went into my FTP and found a document in there
   labelled “error_log” opened it and it says the following:
 * [15-Aug-2016 11:27:30 America/Denver] PHP Fatal error: Call to undefined function
   wp() in /home/marrakf2/public_html/wp-blog-header.php on line 16
 * I opened this file and on line 15 and 16 it says:
    15 // Set up the WordPress
   query. 16 wp();
 * what should the correct function be there?
    Any help is appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-500-522/#post-7667674)
 * Try [manually resetting your plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [SFTP or FTP](https://codex.wordpress.org/FTP_Clients),
   or a file manager in your hosting account’s control panel, navigate to `/wp-content/
   themes/` and rename the directory of your currently active theme. This will force
   the default theme to activate and hopefully rule-out a theme-specific issue (
   theme functions can interfere like plugins).
 *  Thread Starter [artdept](https://wordpress.org/support/users/artdept/)
 * (@artdept)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-500-522/#post-7667677)
 * Hi I just tried both of those and I’m still getting the http error 500 page
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-500-522/#post-7667679)
 * Ok, try [downloading WordPress](https://wordpress.org/download/) again, access
   your server via [SFTP or FTP](https://codex.wordpress.org/FTP_Clients), or a 
   file manager in your hosting account’s control panel, and delete then replace
   your copies of everything on the server **except** the `wp-config.php` file and
   the `/wp-content/` directory with fresh copies from the download. This will effectively
   replace all of your core files without damaging your content and settings.
 * Some uploaders tend to be unreliable when overwriting files, so don’t forget 
   to delete the original files before replacing them.
 *  Thread Starter [artdept](https://wordpress.org/support/users/artdept/)
 * (@artdept)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-500-522/#post-7667729)
 * That seems to have worked- thanks!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-500-522/#post-7667754)
 * You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘HTTP Error 500’ is closed to new replies.

## Tags

 * [HTTP error 500](https://wordpress.org/support/topic-tag/http-error-500/)
 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-500-522/#post-7667754)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
