Lessons in Upgrading a WordPress blog

Listen to article

في الأيام الثلاثة الأخيرة، كنت أحاول إصلاح مدونة تعرضت لمشكلة بسبب ترقية معطوبة من WordPress 2.0.3 إلى الإصدار 2.1.2. لقد قمت بترقية العشرات والعديد من المدونات بشكل شبه منتظم لسنوات الآن، لكن هذه كانت الأصعب حتى الآن. ترقية مُعطَّلة تعني إما أن بعض الملفات قديمة وبعضها جديد أو أن بعض جداول قاعدة البيانات لم تتحول بالكامل أو تضررت أثناء العملية.


And yes, we're not running out of lessons yet:

  • If it ain't broke, don't fix it. That goes to say that if the upgrade is not a necessary one, i.e., the existing version is not vulnerable or open to exploits, skip the upgrade for later (or when you have time for the unexpected).
  • Don't assume that you've seen them all. With all the blogs and WP versions that you've gone thru, you'd think you're an expert already. Well, it only takes one really screwed up update to get your humility to sink back into its proper place.
  • Backup, backup, backup. Again, backup - backup - backup. Have to drill that deep into the skull.
  • Read the manual (or documentation or update notes). Is anybody actually reading them?
  • Time your upgrades. Don't do them just before you go to sleep. So many things could happen is you're close to dozing off. If something screwy happens, you'll still have some energy to stay at it. Tech Support guys call it the "resolution time".
  • If it's not your own blog, get a waiver or disclaimer. Ok, that's way too much. I mean, you'll need to make the owner of the blog understand that though it's an easy task, things could go wrong. A lot of patients die from a simple appendectomy because of circumstantial infections or the doctor just forgot to fish out the scalpel before stitching their belly back.
  • Save copies of the old app version. In case you'll need to revert back, you still have copies of the old version to re-install.

الوقت المعتاد للرفع للـ WordPress الجديد يبدو أطول بكثير مقارنة بالإصدارات القديمة. أعتقد أن هناك ملفات أكثر الآن مقارنةً بالإصدار قبل 2.0.

على أي حال، آمل أن يكون هذا مفيدًا. ;)

Frequently Asked Questions

Should I upgrade WordPress if my current version isn’t vulnerable?
Skipping the upgrade for later is recommended when the existing version is not exposed to exploits.
What is the primary precaution to take before upgrading a WordPress blog?
Backup, backup, backup is emphasized as the essential step prior to any upgrade.
When is the best time to run a WordPress upgrade?
Perform upgrades when you are alert, avoiding the period just before sleep.
React to this article:
Written by
Abe Olandres

Abe Olandres

Editor-in-chief

Abe is the founder and Editor-in-Chief of YugaTech with over 20 years of experience in the technology industry. He is one of the pioneers of blogging in the country and is considered by many as the Father of Tech Blogging in the Philippines.

View all posts by Abe Olandres →

16 Comments

GA
Gas Detector · 16 years ago

books online are great, wether they are e-books or conventional hardbound and paperback books `,;

Reply
BL
Blogie · 19 years ago

Hi Abe!

Good thing it happened to me when I was not yet feeling WP-know-it-all… Somehow I fracked up my database — I upgraded with not enough ‘resolution time’ and concentration power than needed. It was a valuable lesson learned!

Reply
AJ
ajay · 19 years ago

Abe, thanks for the help (and the programmer’s) didn’t quite realize that it would turn your world upside down. didn’t know also what happened to my blog but yes, you’re right about the disclaimer part,hehe. I just need to be assured of the back-up

Reply
EK
eksena · 19 years ago

Those are some very useful tips you have. I find the last one extremely useful – i call it the “if all else fail” getaway.

Reply
RA
randy · 19 years ago

nice tips yuga. ;)

you can also create a replica of your files and database and try to upgrade it. if all goes well, you can then move the upgraded files or just upgrade the live one.

Reply
TI
Tingting Rimart · 19 years ago

good tips!

Reply
MA
ManuelV · 19 years ago

If you’re on Dreamhost, try uploading a zipped WordPress installation into a different folder, just to see if this work out. DH will automatically unzip it.

If things look all right, then you can do the zip-auto unzip approach in your regular folder.

Just remember to exclude the wp-content when creating your zipped WP installation files.

Reply
DU
Dusty · 19 years ago

Yup, having a backup of both the app and the database makes a world of difference.

You get the freedom to do anything you want with the current system and if you **** it up then it’s no biggie.

Of course, it’s important to test that your backup will restore properly first ;)

I’ve had too much experience of other people and myself included that was too confident to the extent of tweaking live servers without a backup. It was a nightmare ….

Oh, btw … a very bad habit that most technical guys have is … documentation = last resort … hehehe … RTFM

Reply

Leave a Reply

Loading next article...