WordPress.org

Ready to get started?Download WordPress

Forums

line 14 error: I messed up (14 posts)

  1. Mandi
    Member
    Posted 8 years ago #

    My one WP account got completely messed up and I thought I had it backed up but I didn't. I never touched the wp-content, admin or includes but I reinstalled all the core files in the directory. I already changed the wp-config.php to the correct username and password but I get this error:
    Fatal error: Call to undefined function: wp() in /home/ucfmandi/public_html/getphat/blog/wp-blog-header.php on line 14 (note: index.php has the correct /wp-blog-header.php under require.

    when I try to log into http://getphat.so-untitled.net/blog/wp-admin/ I get:
    Fatal error: Call to undefined function: get_option() in /home/ucfmandi/public_html/getphat/blog/wp-admin/admin.php on line 7

    everything is in the subdirectory blog of getphat. the website is http://getphat.so-untitled.net/blog

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    The error is caused because the function isn't there. Either a file is missing or corrupt. Delete then reupload the /wp-admin files and /wp-includes files.

  3. Mandi
    Member
    Posted 8 years ago #

    will i lose any of my pages/posts if i over write those folders?

  4. moshu
    Member
    Posted 8 years ago #

    All your posts are in the database. They have nothing to do with the files...

  5. Mandi
    Member
    Posted 8 years ago #

    didn't work even though it would make no sense since i never overwrote those files in the first place and the wp-blog-header isn't in either of them.

    same error is occuring.

  6. Mandi
    Member
    Posted 8 years ago #

    i just realized that i was in the middle of chaning my index directory so my blog URL currently says getphat.so-untitled/ and the wordpress URL said the getphat.so-untitled.net/blog/ is that going to screw everything up? the database is backed up i just have a TON of pages on there that i can not lose.

  7. moshu
    Member
    Posted 8 years ago #

    my blog URL currently says getphat.so-untitled/ and the wordpress URL said the getphat.so-untitled.net/blog/ is that going to screw everything up

    Yes, it will screw up everything... unless you follow the guides: Moving_WordPress.

  8. Mandi
    Member
    Posted 8 years ago #

    I was following them and I've moved two wordpress accounts before. I have really no idea what happened :( I can't get into my admin to change it though because I'm getting those errors.

    Is there anyway to start over without erasing the database(i.e. all the pages I've made)? i have it backed up on my computer.

  9. moshu
    Member
    Posted 8 years ago #

    If you screwed up the the URIs, see this guide:
    http://www.tamba2.org.uk/wordpress/site-url/

  10. Mandi
    Member
    Posted 8 years ago #

    still have the same error :(

    Fatal error: Call to undefined function: wp() in /home/ucfmandi/public_html/getphat/blog/wp-blog-header.php on line 14

    no idea whats wrong w/ the wp-blog-header.php the file says:

    <?php

    if (! isset($wp_did_header)):
    if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
    if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
    else $path = 'wp-admin/';
    die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
    }

    $wp_did_header = true;

    require_once( dirname(__FILE__) . '/wp-config.php');

    wp();
    gzip_compression();

    require_once(ABSPATH . WPINC . '/template-loader.php');

    endif;

    ?>

  11. Mandi
    Member
    Posted 8 years ago #

    *bump* i've looking through all of codex...can anyone else me?

  12. moshu
    Member
    Posted 8 years ago #

    There is nothing wrong with your wp-blog-header file.
    The error you are seeing says that this file is looking for something (more exactly for wp() function) and cannot find it.
    As Podz mentioned earlier - a file or files are either missing or corrupted. Maybe your host did something on the server; it happens more often than you can imagine.
    I'd still try to upload a fresh copy (=a new download!) of the wp-includes folder.

  13. Mandi
    Member
    Posted 8 years ago #

    Alrighty, I've talked to my host-- nothing wrong at that end. I've tried to upload a fresh copy of the wp-includes (and the other core files) and same error. The error changes if I try wp-admin or wp-login:

    Fatal error: Call to undefined function: nocache_headers() in /home/ucfmandi/public_html/getphat/blog/wp-login.php on line 7

    Fatal error: Call to undefined function: get_option() in /home/ucfmandi/public_html/getphat/blog/wp-admin/admin.php on line 7

    I used fantasico to make another wordpress account(in a different directory) and went in and edited the wp-config.php file so it would read the troubled wordpress' database and it didn't change anything.

  14. phyjcowl
    Member
    Posted 8 years ago #

    I had the exact same error and solved it by copying over my "wp-config.php" with the default wordpress "wp-config-sample.php" and then changing that file for my current settings.

Topic Closed

This topic has been closed to new replies.

About this Topic