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.
Thread Starter
Mandi
(@mandi)
will i lose any of my pages/posts if i over write those folders?
All your posts are in the database. They have nothing to do with the files…
Thread Starter
Mandi
(@mandi)
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.
Thread Starter
Mandi
(@mandi)
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.
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.
Thread Starter
Mandi
(@mandi)
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.
If you screwed up the the URIs, see this guide:
http://www.tamba2.org.uk/wordpress/site-url/
Thread Starter
Mandi
(@mandi)
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;
?>
Thread Starter
Mandi
(@mandi)
*bump* i’ve looking through all of codex…can anyone else me?
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.
Thread Starter
Mandi
(@mandi)
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.
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.