computer/internet

Phew!

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

This is what happen when a person with no program editing experience tried to mess up with the wp-config file! I was trying to add some code to it and after uploading it back to the server, I got the error message! I was panicking and hurriedly e-mailed the web-hosting provider to get help restoring my blog. But then I remember today is Sunday and tomorrow is public holiday and realised that maybe they’ll only get back to me on Tuesday. So I tried to seek help from Bobby but then I think Bobby is at work, so I just gave-up and hope to restore my blog back on Tuesday. I told my husband about what has happened and he offered to check on my wp-config.php file. He told me that it was not working. Told him that I edited the file using the wordpad, well, I normally edited php files in the theme folder using wordpad so I thought it would be the same with wp-config. My husband edited back the wp-config using proper php editor. I uploaded it back to the server and VOILA! my blog reappeared! Yehaaw! Thank you so much dear, you’re my Superhero!!

I should’ve consulted with my husband the first place to save all the headaches trying to figure out how to restore my blog back. Just so you know I was trying to add below codes to cache my blog’s database.

// Enable the WordPress Object Cache:
define(ENABLE_CACHE, true);

Now that I have the php editor, I should try and add the codes properly but I wouldn’t want to do that now as I have yet to recover from the shock of seeing my blog gone in few seconds! My heart was beating so fast that I think a pulse oximeter would blow out on me, lol! Anyway, I’ve done few clean-ups to make this blog loads faster. I tried to use WP Super Cache but it has all sort of errors that I didn’t understand, so I deleted it and resolved to other methods. I’ve simplified the template’s style.css file (the less white space the better), deactivated and deleted unused plugins, compressed theme images and cut down on widgets.

I hope this blog loads a bit faster than before. Lemme know if it went slow on you…I might want to brave myself and have that second attempt of messing with the wp-config codes!

28 Comments