Bluehost

Fixing Weird WordPress Errors – Properly I Hope!

January 27, 2010 Posted under: Making Money Online by Caroline Middlebrook

Arrgh what an annoying few days I have had! First of all, I had a weird error when trying to access the admin area or the comments section The error that came up was:

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

This is a totally misleading error. It looked like there’s a file missing but there isn’t. I was able to fix it (or so I thought) by doing a manual WordPress upgrade. This seemed to work, and I was able to login and write the Blog Death Drama post. But then, oddly, the original error just came back and repeating the same steps didn’t work! I have fixed it now and this time I know what I did to fix it… I’ll explain what went wrong in case anyone else has a similar problem.

WordPress has a file called wp-config.php which is located in the root of your blog. If you use a system such as Simple Scripts to create your blog you’d never even need to worry about this file as it would all be handled for you. However, for a manual installation you need to edit it to put in information such as the database username and password.

With a default WordPress download, it contains a file called wp-config-samples.php and the idea is that you edit this file to suit your needs and then rename it. When I looked at my config file I suddenly noticed the following line:

include ‘wp-config-samples.php’;

What this would do is full in the entire contents of the sample file into my own real config file. Obviously variables are the same in both files so they’d get overritten. I don’t know how that line got there but I commented it out, re-uploaded and that fixed the problem! I’m just hoping the bloody thing stays fixed this time!

This has been really annoying in terms of productivity this week. First of all, I spent ages googling around and trying various fixes and after a few hours of that I gave up and carried on working on my project. Except that I didn’t really because it niggled at me constantly. I had lots of readers who were very kind and took the time to send me an email to tell me of the problem but every time I got one it made me go and have another play – just in case…

My mind has been all over the place. In short I have lost my focus. I mentioned in an earlier post that I have joined a coaching program and part of the teaching for that is emphasising the need to really focus on one thing at a time. Focus on a major goal, focus on your most important task for the day, focus on what you are doing at this precise moment in time.

And it’s really true. For example, right now it’s almost 1pm and I have done virtually nothing all morning despite having ’started work’ shortly after 9am. I’ve been here at the computer but I’ve been flitting around between trying to work on my software, getting annoyed at the blog, procrastinating by looking at holidays and generally juggling too much stuff in my head at once.

Now that (I hope!) the blog is fixed, I can forget about it and go back to focusing on what I should be doing!


Want to Make Money Blogging? My free course, The Bloggers Bible contains everything you need to know about building a highly popular and profitable blog from scratch!

Just fill in your email below to get your first lesson immediately:


Post to Twitter Tweet This Post Post to StumbleUpon Stumble This Post


You might also like these similar posts:

Using CommentLuv to Encourage Blog Comments
Why Do Today What You Can Put Off Until Tomorrow?
Blog Validation: Do You Validate Your (WordPress) Blog?
Installing a DealDotCom Widget on a WordPress Site
How to Insert a Table Into a WordPress Blog Post

24 Comments

  • Martin Kono says:

    Maybe there are some errors but still WordPress works fine for me. Of course it is annoying when I lose some data without auto-save and I must write a post again… but that is life. There is nothing perfect.

  • teknoloji says:

    I had a lot of headaches using wordpress in the past. It always made me feel i can not control the whole web site, its just a blogging tool. Since then im using my own application to generate blog sites. For those who know programming, i recommend switching to this method, as it gives you complete control, plus you dont have to worry about updates and stuff.

  • Nicole says:

    This happens to me as well, having too many things in mind and then doing nothing and believe it is very very frustating.

    Frustation because somehow when people around me do not have work and then I feel good that I have so many things to do but even then could not work on any of those.

    I would listen to music in such a case and then start all over again. Thanks for that .php, I did not know about that and it would further help me because I am thinking of buying a domain and do blogging for a while.

  • Hi caroline

    dont remind me – i have had more technical problems than i can count.

    im afraid it goes with the territory and i hope you dont have many problems in the future.

    kind regards

    sam
    X
    Samantha Milner´s last blog ..Your fellow blogger is your best friend My ComLuv Profile

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled


Recommended Services
MyBlogLog Community
Top Commentators
Copyright © Caroline MiddlebrookTheme designed by Design Farmer

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.