Title: WordPress 3.7.1 upgrade issue
Last modified: August 21, 2016

---

# WordPress 3.7.1 upgrade issue

 *  [yenfisca](https://wordpress.org/support/users/yenfisca/)
 * (@yenfisca)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/)
 * Hi,
 * I’m trying to upgrade my wordpress while hitting error “Fatal error: Call to 
   undefined function wp() in /home/a8215473/public_html/wp-blog-header.php on line
   14” in my home url.
 * Steps done :
    1. rename my original “public_html” folder as “public_htmlold” 
   2. upload new wordpress folder via FTP to my free web hosting 3. change the wp-
   config.php to reflect my sql user name and password
 * What are other steps that I should do? SHould i reinstall wp again in my web 
   hosting server?
    Please assist. Thanks

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

 *  [bemdesign](https://wordpress.org/support/users/bemdesign/)
 * (@bemdesign)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396181)
 * Download and unzip WordPress 3.7.1. Then upload everything but the wp-content
   folder and make sure not to overwrite the wp-config.php file. This is what’s 
   known as a manual update/re-install – as you’re manually uploading all the new
   files and replacing the old ones on the server.
 * You don’t want to overwrite the wp-content folder on the server as this is where
   your themes, plugins, and uploads are.
 * You also don’t want to overwrite your wp-config.php file on the server as this
   defines your current WordPress site!
 *  Thread Starter [yenfisca](https://wordpress.org/support/users/yenfisca/)
 * (@yenfisca)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396197)
 * thanks, i’ve changed the wp-content folder and ensure wp-config is the original
   file.
    my home page threw error “Call to undefined function wp() in /home/a8215473/
   public_html/wp-blog-header.php on line 14”
 * the content of wp-blog-header file is :
    <?php /** * Loads the WordPress environment
   and template. * * [@package](https://wordpress.org/support/users/package/) WordPress*/
 * if ( !isset($wp_did_header) ) {
 *  $wp_did_header = true;
 *  require_once( dirname(__FILE__) . ‘/wp-load.php’ );
 *  wp();
 *  require_once( ABSPATH . WPINC . ‘/template-loader.php’ );
 * }
 * How do I check for error? thanks
 *  [Mike](https://wordpress.org/support/users/manndtp/)
 * (@manndtp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396201)
 * Counting down from the top, including blank areas as lines, I’m seeing line #
   14 as wp(); So, the error is telling you there is a problem with that line. I
   don’t believe there is a wp().
 *  Thread Starter [yenfisca](https://wordpress.org/support/users/yenfisca/)
 * (@yenfisca)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396205)
 * thanks, i tried to comment out wp().
 * Now I’ve this error
    Warning: require_once(ABSPATHWPINC/template-loader.php) [
   function.require-once]: failed to open stream: No such file or directory in /
   home/a8215473/public_html/wp-blog-header.php on line 20
 * Fatal error: require_once() [function.require]: Failed opening required ‘ABSPATHWPINC/
   template-loader.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/
   a8215473/public_html/wp-blog-header.php on line 20
 * Which file do I need to check ?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396206)
 * You should not need to edit or do anything to core WP files. Start again and 
   replace the files as explained above. This time, make sure that you delete the
   old ones first.
 * Be careful that you do not delete or overwrite wp-content folder or the wp-config
   file.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396207)
 * BTW, free webhosting is often very problematic for running WP – it’s not recommended
   so that may be related to these problems.
 *  Thread Starter [yenfisca](https://wordpress.org/support/users/yenfisca/)
 * (@yenfisca)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396209)
 * hi all,
 * thanks for the help. i tried to upgrade as my original website was hacked. I 
   can’t be sure if my original WP files are safe at all. What are the best options
   do I have now?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396211)
 * If your site was hacked, you need to completely clean that up – see these resources:
 * [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
   
   [http://wordpress.org/support/topic/268083#post-1065779](http://wordpress.org/support/topic/268083#post-1065779)
   [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
   [http://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Additional Resources:
    [http://sitecheck.sucuri.net/scanner/](http://sitecheck.sucuri.net/scanner/)
   [http://www.unmaskparasites.com/](http://www.unmaskparasites.com/) [http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html](http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html)
 *  Thread Starter [yenfisca](https://wordpress.org/support/users/yenfisca/)
 * (@yenfisca)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396224)
 * thanks. complete clean up really help. is there any plugin or tips to prevent
   hacker?
 *  [bemdesign](https://wordpress.org/support/users/bemdesign/)
 * (@bemdesign)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396239)
 * Your best option is to have good security practices in the first place: namely
   using strong passwords and making sure your computer and server environments 
   are secure (anti-virus, secure network, running the most-up-to-date operating
   systems and applications). And make frequent backups, making sure these backups
   work.
 * Then you can do things to harden your WordPress installation with plugins like
   [Better WP Security](http://wordpress.org/plugins/better-wp-security/). Or you
   can harden your WordPress insatll yourself by referring to [http://codex.wordpress.org/Hardening_WordPress](http://codex.wordpress.org/Hardening_WordPress)

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

The topic ‘WordPress 3.7.1 upgrade issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 4 participants
 * Last reply from: [bemdesign](https://wordpress.org/support/users/bemdesign/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-upgrade-issue/#post-4396239)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
