Support » Fixing WordPress » Fatal error: Call to undefined function: wp() in /wp-blog-header.php on line 18

  • The blog was running very good. I had customized it and imported all the Blogger feed. About a week ago.
    But it stopped working today.
    Giving this error: Fatal error: Call to undefined function: wp() in /home/www/ on line 18

    The address of the blog is

    Recent activity:
    I have installed a forum on the same database but a different sub domain (hence folder). So no editing of files were done. Plus it had its own table prefix.
    I also installed a wiki on yet another sub domain – dunno about the prefix but since WordPress has its own (did see that during installation), that should not cause any problem.

    If you go to the address and choose ‘select all’ (Ctrl+A in a PC), some layout things get highlighted.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Ok. I re-uploaded ALL the files and the same error still comes.
    Plus, other functions from other than index pages are missing too!
    This is very odd.

    Did you upload them to the correct directory structure? Did you get rid of the older files before hand? Sometimes, people are not particularly good at “overwriting” files. We recommend that you delete the old files first before uploading the new ones.

    Be sure not to delete your plugins and themes and wp-config.php files and such. You’ll need to keep those around.

    I deleted the whole folders. But same error.



    I have the same error did you find a solution?

    I have the same!!!

    same here.

    Ok guys, had the same problem.

    It’s all about the linebreaks in wp-config.php

    to solve the problem you have to convert your wp-config.php from MAC format to Windows (it means all linebreaks have to be standard CR/LF). After you have done that and reuploaded the wp-config.php all will be well.


    Dear smoczokwik,

    Could you reiterate that in Word Press for Dummies fashion? Me=WP Dummy.

    Yep same problem here.

    smoczokwik thanks for the tip. I tried this modification and it worked like a charm.

    Thank you smoczokwik you made my day.

    Thanks for the fix. I’ve had 3 or 4 sites do this in the past few weeks.

    I’ll check rankings and see my site is showing up in search with all sorts of errors.

    And the site is all wacked.

    Fixed now.

    Thanks again.

    Thank you smoczokwik you saved me so much time

    Thank you for helping smoczokwik. Really appreciate it.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Fatal error: Call to undefined function: wp() in /wp-blog-header.php on line 18’ is closed to new replies.