Fatal error: Call to undefined function wp() in wp-blog-header.php
-
Hi folks.
Is there a more straightforward solution available than what’s been shared at https://www.ads-software.com/support/topic/211475?replies=19
Here’s my problem:
I’m moving my blog from Bluehost to Hostnine but I get this error msg…
Fatal error: Call to undefined function wp() in /home/ghnet/public_html/wp-blog-header.php on line 14
Here’s what I did…
1. At the domain at Hostnine, I created a new sql database (wordpressgh1.sql) and user (gary), and assigned it all privileges.
2. I used PHPmyadmin to import the findgood_wrdp1.sql file from Bluehost.
3. It all looked fine, plugins activated, displaying okay, change of theme worked fine, etc.
4. But when I tried to connect the new blog (with only the Hello World post) with imported .sql file, I got this error message:
Fatal error: Call to undefined function wp() in /home/ghnet/public_html/wp-blog-header.php on line 14
I attempted to fix things by following various tips from various forums but nothing I tried worked, so I used Fantastico to uninstall WordPress and then to reinstall it. The default blog looked fine.
I uploaded a new theme and that worked just fine. I uploaded my plugins and activated them okay.
(Am I missing a step here??)
Then, the second time around, I changed the wp-config.php to insert the 3 identifying details for the new .sql file (wordpressgh1.sql) which I had uploaded using PHPmyadmin — and that triggered the error msg about an undefined function wp() in wp-blog-header.php
So… here is the ORIGINAL wp-config.php as created by Hostnine’s Fantastico:
define(‘DB_NAME’, ‘ghnet_wrdp1’);
define(‘DB_USER’, ‘ghnet_wrdp1’);
define(‘DB_PASSWORD’, ‘*********’);And here are the NEW entries I pasted in:
define(‘DB_NAME’, ‘ghnet_wordpressgh1’);
define(‘DB_USER’, ‘ghnet_gary’);
define(‘DB_PASSWORD’, ‘**************’);See any errors?
Are both webhosts using the same versions?
PHP5.2.9 – same on both
WP2.7.1 – same on bothEach time I upload the NEW dbase name/user/pwd, I get the error msg. When I replace them with the ORIGINALS, the site displays just fine. This is also true when using the default WP theme, Kubrick.
So…….. after this long story, I have run out of ideas. Googling has not led me to the answer yet, either.
Can anyone here help me out, please.
Gary
PS:
I checked the wp-blog-header.php file on other functional blogs (on another host) and that file is not the problem here.
- The topic ‘Fatal error: Call to undefined function wp() in wp-blog-header.php’ is closed to new replies.