• 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)
  • 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

    (@yenfisca)

    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 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

    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

    (@yenfisca)

    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 ?

    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.

    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

    (@yenfisca)

    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?

    Thread Starter yenfisca

    (@yenfisca)

    thanks. complete clean up really help. is there any plugin or tips to prevent hacker?

    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. Or you can harden your WordPress insatll yourself by referring to 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.