December 24, 2012

Widgets

Wordpress 3.5 Upgrade Errors: Forgot to Backup?


wordpress upgrade errorsWordpress version 3.5 recently got released and just like always, many webmasters are striking their heads against the wall due to newly introduced database errors. Wordpress emphasize greatly to backup your database before making any change but most often we forget to backup and click the Upgrade button in hurry- what follows next is a horrible nightmare for those who are not well versed with MySQL database management and error recognition. I recently got into the same trouble while updating our sister blog i.e. Smart Earning Methods.  I forgot to backup the database! Fortunately we receive schedule backups on our Email daily and this was no less than a blessing. The site I updated to WP 3.5, got messed up with plenty of Query errors all pointing to the plugin directory.

As a PHP developer, fortunately it was easy debugging these errors and restoring the database back to its normal working mode. We would share some tips here that will help you in fixing such errors no matter how big or small your problem be, the tips are enough to put your site back to work even if it gets hijacked or entire database gets deleted or crashed.

 

Things To do Before Upgrading Wordpress

 

1. Always Take Backup of Database Manually

There are several ways to take wordpress backup. The simplest and best way is to do it manually i.e. Through PHPMyAdmin. I never rely on plugins when it comes to Database and I suggest the same for everyone. However for schedule daily backups, I do make use of a plugin called WordPress Database Backup.

To backup your database through PHPMyAdmin there could be no better tutorial then the one given by the Wordpress Folks themselves:

2. Email the Backup Copy To your Gmail, Hotmail or Yahoo Account

In order to ensure the backup you saved does not get infected while it stays in your hard drive. Its always wise to take two backups and store them on different locations. I normally keep one online using Gmail and one on my hard drive. You can either use the plugin I suggested in step#1 for Scheduling backups to email you the backup file or you can manually email yourself a copy of the backup you saved in step#1.

That's all!

Summary:

*Take backup of your Wordpress Database through PHPMyAdmin and save the same copy both online and offline.

 

Things To do After Upgrading Wordpress
Update Plugins!

Before even visiting your website to see how it looks after the update you must first update the plugins in you installed. Plugins with available updates would be clearly visible in the notification bar. Simply go to Plugins Tab and tick the check boxes next to all plugins and then select update from the drop down menu and hit Apply. All done! Visit your blog site now to see it working just fine. :)

update plugins

 

Fighting Plugin Errors

Its very common to see several MySQL errors displaying on your Homepage or Post Pages just after you make the update. This often happens because most Plugins also require compatibility update whenever a new version of Wordpress is released. Most often the developers fail to update their plugins in the wordpress repository. As a result when the new version is rolled out, plugins that aren't updated would fail to function properly and therefore you would see several errors on your screen. These errors look like the following:

 

 

Call to undefined function deactivate_plugins() in

/home/xxxx/public_html/xxxxxxxx.com/wp-content/plugins/commentluv/commentluv.php on line 56

The above error occurred for Commentluv plugin. The name of the plugin will be clearly mentioned in your errors and that's what you need to note down. A Plugin error will contain the Plugin  string.

Simply not down the plugin name and go to Plugins Tab to deactivate it. Once it is deactivated/disabled visit your site to find it working just fine. Repeat this process for every single plugin that may be causing issues.

Fighting Database Crash and Hackers

Probably this is the worst nightmare for those who often limit backup to database alone. there are two important things to backup when we talk of safety. They are:

1. Backing Up your Entire Wordpress Site

A database only includes your posts, comments, archives, categories, tags and other configuration data. It never saves the following most important media on your site,

  1. WordPress Core Installation
  2. Plugins
  3. Themes
  4. Images and Files
  5. JavaScript and PHP scripts
  6. Static Web Pages

So imagine a webmaster who sleeps peacefully every night thinking he is all safe because he keeps a daily backup of his database but in fact he is the one who is truly shattered when his site gets hijacked by unwelcomed intruders. He may succeed in saving a copy of the database but what about the site's images, JavaScript, PHP and stylesheets which are the rich elements that give true shape and color to the site?

Therefore you must always keep a backup of this rich media on your hard drive. There are several ways of backing up your entire wordpress site. I wont mention them here because there are several tutorials already written on this topic. The best tutorial so far being the following:

Your webhosting company keeps a backup of your site but you are never sure how fresh that backup copy is. Therefore to be on the safe side always run a Site backup at least once a week. It surely take hours to complete even with FTP, depending on your site size! :)

2. Backing Up Database

A database is the collection of all your site records in the form of tables. Its saves your posts, pages, comments, categories and other related data in well organized collections of tables. When you update, delete or insert any stuff in your wordpress site you are only running queries at front end in MYSQL database using your dashboard as the interface.

Backing up database means keeping a copy of all such important information of your site in a safe folder. A Database never contains your site images, stylesheets, scripts or other resources, it only saves text based records of your site.

We already discussed how to backup database manually using PHPMyAdmin.

Are you safe now?

Well if you have a backup copy of both site and database, then of course you can relax and enjoy your cup of coffee even if the site gets hacked by a moron!

 

Questions?

If you recently trouble-shooted yourself with any such mishap then feel free to post your query below and I would try my best to respond promptly. I just hope your online journey continues without bugs and errors. Happy wordpress 3.5 experience to all. Peace and blessings buddies! :)




If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

23 comments:

Wali Khan on Dec 24, 2012, 1:30:00 AM said... #

Great Article Mustafa you rocked once again.. I just upgraded one of my sites on WP, and also updated the plugins, but things went just fine..

Regards;
Wali - onlineustaad.com


TechGeeks on Dec 24, 2012, 4:32:00 AM said... #

Thanks for the awesome post bro ! I've been using a Plugin Duplicator , it does the job pretty good.

JobPress Blogger Template Free Download

Sameer Shamsudeen on Dec 24, 2012, 8:18:00 AM said... #

Hello Mohammad,

Can You Help me to edit my blogger template, See My Blog: http://iplmobile.blogspot.com

I added a multi tabbed widget like the one in your blog, but I searched for div id='sidebar-wrapper' but didn't find anything like this, So I added this before the closing of div class='column-right-outer' but it shows in the bottom, I want this tab like in your blog, and also the alignment is not correct please help me to correct these things. I am waiting for your reply.

-Your Regular Reader :)
sameer

Ehsan ul haq on Dec 24, 2012, 8:40:00 AM said... #

Very nice Article mr. Muhammad. i like ur blog
How To Right Click Disabled In Blogger

Raheem Khan on Dec 24, 2012, 11:10:00 AM said... #

Let me simplify this for you ;)
Mustafa bro I was also facing so many bugs in my WP since I updated to 3.5. I wasn't able to re-edit my post. My all plugins stopped working. Then what I did was really a simple step.
I've written a complete tutorial on downgrading WordPress to older version.
Well Mustafa bro you should now start another blog offering WordPress tuts and tricks :)

Raheem Khan on Dec 24, 2012, 11:12:00 AM said... #

here is my TUT!

Blogger on Dec 24, 2012, 11:18:00 AM said... #

Great post,,,Muhammad brother, please recommend me a plugin so that i can also get daily scheduled backup to my mail...
Regards
Latest Asian Fashions

Blogger on Dec 24, 2012, 11:20:00 AM said... #

Oh i got the plugin,after reading the entire post...
thanx :)

Abu Shaleh on Dec 24, 2012, 12:41:00 PM said... #

Another good article Mohammad :)

3 steps to make money from your free stuff blog

Sohaib Ilyas on Dec 24, 2012, 1:02:00 PM said... #

Thanks! But I didn't face any troube or problem while upgrading WP to 3.5 :)

Rahul Kashyap on Dec 24, 2012, 1:53:00 PM said... #

nice tutorial thanks for sharing this type informative tips :)

Regards
Rahul Kashyap
Blog: SDMMovies.com

Santosh Shah on Dec 24, 2012, 2:24:00 PM said... #

Though i don't know much about wordpress but i found interesting reading the above post. Thanks for sharing it.

Regards
Blogging Tips & Tricks

Hemant Verma on Dec 24, 2012, 4:52:00 PM said... #

Thanks for this update.

Add a Expand-Collapse Sidebar Widget

Thanks & Regards,
Hemant Verma

Yahia Bouhlel on Dec 25, 2012, 5:56:00 AM said... #

WawWW !! Thanks for sharing. DownloaD Free Games

Muhammad Waqas on Dec 25, 2012, 7:43:00 AM said... #

Hello Sir,
I have got a big proble :(
There are 3 tags in my blog's HTML that say "data:post.body"
Due to this, i always fail to add any element inside post body, specially "rating widget".
Please help me.
And sorry for off-topic question.
Regards.
Mohammad

Faiz Muhammad Khan on Dec 25, 2012, 8:17:00 AM said... #

Just update to the new one , get no issue!
you are more found of blogger thats why u r explaining it in this style! well backup always help but it does'nt means that wp is not secure! probably it may be host issue

Akhil Pulotil on Dec 25, 2012, 10:44:00 PM said... #

hello mohammed,
i have seen many people complaining about the problems with plug-ins after upgrading.
Hope these tips can help them recover.
thnx.
Visit My Blog

Sri ram on Dec 26, 2012, 4:18:00 PM said... #

Thank you for suggesting some plugins for backups. Luckily I didn't got any error while upgrading!
How to install WordPress manually on a domain? (Step-by-step-instruction-guide)

Varinder Pal Singh on Dec 26, 2012, 8:21:00 PM said... #

HI, you forgot to add the biggest point, Disable the W3-Total Cache plugin in every WordPress update.

Muhammad Haris Mughal on Dec 27, 2012, 12:21:00 AM said... #

Thanks Mustafa bhai...I also face a big trouble by updating my site wordpress version 3.5. So I again downgrade my wp version and then my tension was released.

Regards : Haris - http://superwebportal.com

KAMAL G on Dec 27, 2012, 1:10:00 PM said... #

nice post admin thanks a lot for creating this....

Harit dagar on Dec 31, 2012, 2:06:00 PM said... #

hello sir,
i am beginner and i have transfered a blog(blogger)to self hosting through wordpress 3.5 but it only transfer the comments and posts but i also want to transfer template and layout.

دردشة ومنتديات عراقنا on Jan 6, 2013, 8:45:00 PM said... #

very nice
شات عراقنا
دردشة عراقنا
جات عراقنا
شلة عراقنا
عراقنا
شات العراق
دردشة عراقية
شات كيكه
دردشة عبدالله
جات
دردشة
منتدى دردشة عراقنا
منتدى عراقنا

Click Here To add Comment

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. No cheesy/spam Comments tolerated Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

Support Us

If our Tutorials have helped you a little, then kindly spread our voice using the badge below:-

or try a Beautiful Banner


Widgets

 
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger

    ALL IN ONE SEO PACK 2012

    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!

    Become a SIX FIGURE BLOGGER

    Learn what it takes to become a successful entrepreneur and build a living online!

About The Author

Hi! I am Mohammad, a certified SEO Consultant, Pro Blogger, Computer Engineer and an addicted Web Developer. Read More..

Recipes

SEO Affiliate Marketing Social Media

Make Money Online Web hosting

Blogging Tips Web Designing

Plugins and Widgets Blogging Ethics

Recent Comments

Popular Series

Powered by:

My Blogger Tricks © 2013. All Rights Reserved | Contact |