Common WP problems after server migration and how to fix them
I really want to write about this before, but I dont’ seem to have that “eagerness” to write about what I’m going to write about now. Since the first time I migrated my blog to another server 6 years ago, I encountered a lot of technical problems. I even forgot most of it. Soooo… what I’m going to do now is to write about the common problems and solutions that I encountered each and every time I migrate to a different server, so that it will help others who will encounter such.
These problems are commonly encountered when migrating WordPress and other dynamic database-driven websites. But I’ll only be sharing about the common problems in migrating WordPress sites, because I haven’t encountered any problems when migrating a static HTML page and I haven’t tried migrating other CMS aside from WordPress.
500 Internal Server Error – the most common problem that I encountered when transferring a WP blog from one server to another server is this error. The easiest way to fix it is to empty your .htaccess file, then proceed directly to your wp-admin. Go to Settings > Permalinks > tick Default > Save Changes. After saving the changes, you can revert to your custom permalink structure again. If you can’t access wp-admin after you emptied your .htaccess file, just copy and paste the mod rewrite rules below and that should fix the problem.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
If that didn’t help, please leave a comment in this post so that I can help you trace the problem and fix it. Haha!
The Blank White Page – commonly known as the white screen of death, inspired by the good old Windows blue screen of death. Yay! I’m really not sure what’s the root cause of this error. Common reasons why you encounter an empty white page is the file permissions. For instance, you’re from a server that uses a mod_php (dso) handler, then you transferred to a server that uses suPHP, you’ll surely encounter permission errors. You need to CHMOD your files to 644 and folders to 755. After you changed the permissions, this will surely fix your problem. If you’re not familiar about php handlers, here’s a very helpful post to get you started.
If changing of file and folder permissions didn’t help you fix your blank white page problem, maybe your source code is empty, that’s why it’s showing a blank white page. This happens when you transfer a file via FTP and the transfer times out. The file transfer didn’t complete, that’s why your source code is empty. Or… you have WP-Cache installed and it went nuts. Just delete all your cached files and see if that fixes the problem.
Another reason of an empty white page is your wp-config. If there’s an empty line after the end of the code, then that’s the culprit. You can read a detailed post about it here. You should remove all empty lines in your wp-config.php and that should fix the blank white page dilemma.
Is its parent directory writable by the server error – this is a pretty familiar error if you transfer from a server that doesn’t use cPanel to a server with cPanel. This is common if you migrate from Dreamhost to any other webhost and vice versa. You’ll just notice this error after uploading an image to your post. Once you selected an image to upload, this error will occur:
"Unable to create directory /home/yourusername/wp-content/uploads/year/month. Is its parent directory writable by the server?"
This error is pretty easy to fix. The first thing that you should do is go to Settings > Media and replace the current directory in “Store uploads in this folder” input field to wp-content/uploads. That should quickly fix your problem. If it didn’t help, you need to change your file permission to 777 (which is not recommend as your folder will be very vulnerable to hackers) if you’re using mod_php and 755 if you’re using suPHP. I’m pretty sure you’ll never modify the permissions if you encounter this problem as the first solution above will definitely work.
Call to undefined function: wp_cache_init – this error happen sometimes when you have a caching plugin installed in your WordPress. After you transfer your WP blog to another server, there’s a slight chance that you’ll encounter a cache error. If you did, just delete your quickcache, wp-supercache or w3totalcache plugin folders (including the PHP cache files inside wp-content that is part of the plugin). After deleting those, this error will most likely be fixed.
If that solution didn’t help, your last resort is to do a fresh WP install in a separate folder then copy your wp-content and wp-config.php to the folder where you uploaded your latest WordPress files. That will surely fix the problem.
Redirected to yourdomain/wp-admin/install.php after transfer – this error is also common when you recently transferred to a brand new server. It’s not really an error, you just forgot to import your database. But if you already imported your MySQL database to the new server, then something must be really wrong. I recently encountered this a while ago while transferring from my old dedicated server to a new dedicated server. I was shocked that the contents of my database was gone and I was redirected to the WordPress install page.
I then checked my database inside phpmyadmin and it was there. The tables are also there, but it’s all empty. I asked my host to re-dump my MySQL database from the old server and import it again to the new server. But that didn’t help.
After a few minutes of being shocked and panicked, the database was successfully recovered. The problem is with the permission of the .FRM files. These are the files where MySQL stores its data. After the permissions were fixed, the problem was solved.
I think that’s all for now. I’ll be adding more WordPress problems after server transfer if I encounter a new one in my future migration adventures! Haha!
Error: Incorrect information in file: *.FRM – this is a rare problem and only occurs if you have a failing or dying hard drive. Right after you migrated your WordPress blog and you tried logging in to wp-admin, you’ll be redirect to this page: yourdomain/wp-admin/maint/repair.php?referrer=is_blog_installed. Your database or some tables in your MySQL database is corrupted and you need to repair it. In rare instances, it cannot be repaired. But most of the time, it’s repairable.
If you’re one of the few unlucky WordPress blog owners who encountered the “rare instances” that I’m talking about, don’t lose hope. I encountered this problem many times before. Here’s an example of the error in wp_users (or any other table inside a WP database) that you might have encountered as well after attempting to repair your database:
The wp_users table is not okay. It is reporting the following error: Incorrect information in file: './your/database/directory/wp_users.frm'. WordPress will attempt to repair this tableβ¦
Failed to repair the wp_users table. Error: Incorrect information in file: './your/database/directory/wp_users.frm'
If you encountered the same exact problem as I did, then all you need to do is copy the .FRM, .MYD, and .MYI files inside your /var/lib/mysql directory from your server. You need root access to access it. Install XAMPP or AppServ in your computer and copy the data to your database directory, then open it locally via phpmyadmin. There’s a great chance that you can still recover your data and create a dumpfile.
If you still can’t recover it, then I don’t know what else to do. If you do know, please share it below. Yay!
PS: If you encountered any problems during a recent server migration, please feel free to share it below.
Wow nice new post!
ang pogi ng post no.. :akopa:
:akopa: sakto, down site ko ngayon π
up na ulit.. π pag may nakita kang error sabihan u me para madagdagan ko list ko ng errors. π
Awesome! I might need this one soon for my clients. Maraming salamat sa napakadetalyadong guide na ito. Dami ko talaga natutunan sayo Sir! π
welcome! Glad to help. Please feel free to add more on the list. I need more errors. hehehe π
Nice… Gusto ko din magkaroon ng dedicated server :p sana next post mo yung mga tip mo kung saan maganda kumuha ng hosting… Hehehe Good Morning po… π
Aw yeah! May draft ako nyan. Mag tatlong taon na di ko pa natatapos. Hahahaha!
O_O bakit di pa pinopost kuya? π
di ko pa tapos eh.. may mga gusto pa akong idagdag.. tinatamad pa. :akopa:
Pingback: Common WP problems after server migration and how to fix them | Nyok Nyok
I’ve also encountered the same error – I was redirected to an install wordpress page and worse the blog was empty.. hehehe.. the best way to prepare and solve this problem is to have a frequent backups of the database and wordpress core files using wp-dbmanager installed. hehehe… and pray that everything goes fine.. π
hahahaha.. yeah! Backup everyday dapat. Hahaha! Ako din, good thing I have a local backup. So that if worse comes to worst, we have plan B. :akopa:
yung sa WSOD, ang ginagawa ko lang pag naeencounter ko yan is access ko yung wp-admin, tapos ayun WP database upgrade required. ganun. π then ok na. π
ngayon, problema ko lang is nacompromise yung hosting acct ko. hacked. T_T
Aw yeah.. yun lng kung na hack, medyo mahirap hanapin. Fresh install of all wordpress blogs dapat. Lalo na marami kang blogs. :=
kuya andrew’s post might help:
http://www.alleba.com/blog/2012/03/13/how-to-recover-a-hacked-wordpress-blog/
O_O Sir, Hideki, saan ka po ba nakahost. Nakashare hosting lang din po ako ehh.
sa Jehzeel.com sya nakahost. :akopa:
magandang umaga, wah, ‘yan nga iyong mga erros these past days. hehe.
hahahaha.. oo nga.. kaya sinulat ko na para di ko makalimutan ano dapat gawin pag na encounter ulit π Hopefully di na mag e error ulit etong munti kong blog. :p
Maganda ito kapag naglipat ako hehe makakatulong ito ng malaki
yeah.. bookmark mo na and +1.. teehee :akopa:
Done he he he.. π mukhang malakas na naman ang searches nito ah :=
siguro.. hindi ko alam. π
blogger ako eh. mahirap lang kasi π
nakalimutan ko na yung username and password ko sa lifetime free hosting ko kay sir jehz.
ill try to dig my emails…
effective pa yun diba sir jehz? buhay kp nmn eh… lifetime π
awwwww.. e-mail me lng. pwede ko naman e reset anytime yung passowrd mo.. :=
na alala mo pa username mo? or domain name na naka host sakin dati? Reset ko nlng pass. E-mail me π
thanks! but i think i can dig my email π
maabala pa kita sir jehz π
pa-reset ko nlng yung domain, na-expire na eh.
heheheee :akopa:
aww.. palitan mo yung domain mo? hehehe.. hosting yung lifetime free ha, yung domain hindi. π
kahit dot me lang, mura lang yun :dila:
wooot ! π³
hahaha.. hosting lng free.. π
basta buhay ako lifetime*… Lifetime with asterisk.. hehe
ako din bro π papareset ko yung lifetime gift hosting ko from you… expire na kase yung domain eh.
aw… di naman nid e reset.. di naman nag e expire yung hosting ko habang buhay pa me. :=
what I mean po… papapalit ko po yung main domain me dun kse expired na po. hehehe email ko sayo yung domain na ipapapalit me.. bili muna me :p
Nangingilo ako pag naiisip ko ang pagmigrate. Ang hirap. :ipit:
hahahaha… ok lng yan basta may backup ka palagi, wag matakot mag migrate. :=
‘kala ko magmi-migrate ka na sa ibang bansa, solution pala ng mga problems about server migration… π
hahahahaha! makasulat nga ng common migration problems to Kuwait, Singapore, UK, Iraq, Iran, etc… π
Master Jehz, very helpful ito! I’ve just bookmarked it! Great post! =)
salamat sa pag bookmark jomi :akopa:
wah…. nagnose bleed ako dun ah….. heheh
eto tissue oh..
nosebleed +1; sali me.. hehe … pahinging pain reliever, sumakit ulo ko π
well, jehzeel already fixed that problem for me. hehe thanks for this tutorial man, I already know what to do if that happens again on my blog.. π thanks.. π
hahaha welcome! :aruy: muntik nang mawala yun, buti may backup. Backup ka din palagi in case may mangyaring masama. :ohno:
Wow marami akung matututunan dito; ok pa sa alright idol! π
welcome nonoy! π
ayos to kuya jehz… laking tulong nito π
yeah! para sa mga mahilig mag migrate tulad ko. π
Mag-enroll kaya ako ng web developer course para hindi naman ako nose bleed dito, haha π
hahahaha.. no nid na. basahin u lng paulit ulit. ma gegets mo din agad.
Anu ulit ung website ng HTML tutorial, lagi ko na lang nlilimutan, hehe.
w3schools.com :akopa: marami pa pero maganda dyans a w3 schools. hehe
Hapon na po… at masaya na ako dahil uwian na… π
yeah.. uwian nanaman.. ako palaging nasa bahay lng. π
π³ absent muna po ako sa blogsphere… ngayong week lang test lang last na last na po… ingat lage!
kuya jehz magiging maayos din ang lahat! :akopa: Ingat na lng po! GOD BLESS sa lahat π
awwww.. good luck sa exam halo. :akopa:
Saved.Baka magamit ko to in the future, thanks Jehz.
welcome bennix! I hope you can use this! π
Good Morning po…. Ngayon ang araw nang pagtaas ng pamasahe.. P8.50 na naman ang jeepney fare… hay agang aga eh…
csseyah. talagang dito ka pa nag-labas ng sama ng loob! hahahaha… oo nga kainis ang ganyan pataas ng pataas eh hindi naman tumataas ang sweldo, tsk tsk…
Edmar… hehehe ganun talaga kailangan may masabihan ka ng iyong dinadamdam para gumaan ang nararamdaman mo… wahahahaha late reply ako!
taas na pala…
pahirapan nnmn sa singkwenta sentimos niyan… :ipit:
uu nga eh… hay… pataas naman ninyo ang sahod… :p
hirap no, sahod lng di tumataas, pero lahat ng bilihin tumataas. :huh:
medyo wala ako alm sa ganito hehehe, pwd po mag tanong anong purpose ng web hosting????
awww… bahay ng blog mo po (or any website) yung web hosting.. kung walang web hosting, wala tong blog na to. hehe π
~pwede din bahay ng private server mo.. :ipit: :ipit: wahehehe diba jehz.. π
magiging 24hrs na online ang site?? ganun ba un
Sure! π E-mail me lng or ask anything here. π
:akopa: Magandang umaga po sa lahat! yehey! Tapos na exams! hehe pag kagraduate mag hahanap na agad ako ng trabaho π‘ Sana may tumanggap sakin hehehe
ha? kala ko ba blogger ka nlng halo?! π
para may pambayad ako sa internet hehehe… π
tomo!
~nakarelate ako sa sagot ni halo hahaha :ipit:
Bro halo…. tama yan .. kailangan na magbanat ng buto para naman sa mga taong nagpakahirap na pag-aralin tayo… Go lang with your life… astig!
yeah mas maganda parin may day job. :ngiti:
mas maganda kung night job. π
π yehey! Tapos na ang Final Defense :gulat:
wow congrats halo! hehe π
~Congrats Sir. hehe.. Graduating ka na ba halo??
uu kuya ian :akopa: hehe
~haha.. graduating narin ako!!! haha.. :ipit: nagrereview na ko ng web development ngayon.. hehe.. congrats ulit.. :ipit: :ipit:
:lamig: Pwde ba ko makijoin sa web development review mo kuya ian :cantspeak: hehehe
~haha.. sige.. taga san ka ba?? haha.. tsk.. sarap sana magpaturo sa master eh.. tsk.. busy lang eh.. diba jehz??? :dila: :ipit: :ipit: :ipit: :ipit:
Malapit na graduation, kelangan na magapply, madami na ko kalaban baka hindi pa ko mapansin. π
yeah… dapat naka apply na u before graduation.. :supertakot:
:akopa: Sama ako mag apply kuya henry π
Taga san ka Halo? Apply ako sa Techno Hub eh
sa Mariveles, Bataan ako kuya henry pero pwede na ko mag work sa manila π
layo ni halo.. bataan! π
~sobrang demanding naman sa techno hub eh :inis: :ipit: :ipit: :ipit:
π hehe… magboboard ako sa somewhere in manila kuya jehz hehehe.. nga pala kuya jehz? sa iblog8 attend ka ulit hehe penge ulit Mug :=
Naku malayo nga, panu ka magwowork sa Manila, baka matulungan ka ni Jehz makahanap ng tutuluyan dito, haha.
Let’s see.. hehehehe.. kelan ba? di ko alam when. wahahaha! :aruy:
~wow.. isang malupit na post nanaman galing sa friendly neighborhood blogger na si Jehz.. hehe.. :ipit: sakto.. mag-aaral ako ngayon ng networking and server handling. Thanks for the great post. :ipit: Favorite Emoticon :ipit: :ipit:
hahaha! sana makatulong to sayo.. e update ko din to from time to time pag may nakita pa akong WordPress errors after server migration.
~yup.. nakabookmarked na.. hehe.. π salamat talaga sa info jehz.. :ipit: :ipit:
Wilkam Ian! :akopa:
Gandang Umaga sa inyong lahat… π hay ito na naman ako… tara tulog na tayo! :ipit:
hahaha! 1:04AM ka na matutulog? hehehe… tapos gising ng 6AM? :huh:
oo nga eh! hirap … hehehe hindi ako maka-isip ng bagong pagkakakitaan.. :p
Hmmmmm? Ano kaya ahmmmmmmmm… wala din ako maisip. hahaha! :aruy:
salamt po dito π malaking utlong po to..
Welcome Menj. Sana makatulong sa mga nag mamigrate. π
oo.. nakatulong po π haha
Ang haba ng post. Hehehe nice ito at may matutunan talaga ang magbabasa nto.
Ako naman kung may naencounter akong error sa blog ko, agad saklolo si Support ng host. Hehhee
hahaha.. yeah. Pero madalas may mga host na walang paki alam pag may sira ang site mo. hehehe. Like dreamhost. Kelangan ikaw talaga mag fix at mag migrate :=
Mag HG nalang po kau. Hehhe
kamusta sa lahat. ngayon na lang ulit nakatambay sa lugar ni kuya jehz.. π
tagal mong nawala ah.. hehehe.. glad ur back! π
sir ano po gamit mo na comment plugin dito? auto post.. dina nag.loload ang page. π TY
AJAX comment for WordPress. π
Hi Jehz,
Nice share. Server migration is really a not so easy (but not so tough job) for webmasters.
Salamat for sharing your ideas. π
BTW, you’re using dedicated servers, right? Which provider? Hostgator?
Softlayer and Singlehop. hehe.. :=
Not sure if may dedi sa hostgator. I think they only offer shared servers. :hilo:
Well, dahil sa blogger.com ako eh wala ako ma-comment about this. Hehe. Jezz, I just sent you an e-mail message. And while composing that e-mail, a thought struck me. What if, since you are very established blogger, you hold an annual recognition to other bloggers. Say, your top ten or top twenty bloggers for the year. If there would be voting, err, I hope I’d get some, haha! Wala lang, just a thought.
http://www.fernandyim.com
Actually I love Hostgator as my server but then parang nakakatakot kasi mag-migrate lalo na kapag sa walang alam sa programming na katulad ko hehe.
woot kmusta again and again.. linggo na bukas at wag kalmtan mgsimba
Today is April 1, 2012… Tara tulog na tayo! baka magoyo pa tayo! hehehe Happy April Fool Month! hihihi :ipit:
Hahaha! may post ako for today.. teka.. π
Jehz, kailangan din ba natin mag migrate? Kasi may isang terms doon sa hosting company ko na may limit yung files to upload 20,000mb lang
mag migrate? di naman nid. :ipit:
Jehz bka pwede pa activate yung shell access sakin :supersad:
sure.. ano nga username and nameservers na gamit u now? hehe
farneville
dns1.jehzeel.com
dns2.jehzeel.com
dns3.jehzeel.com
thanks Jehz bka pwede din sa isang account pa
rocksoul
ns1.jehzeel.com
ns2.jehzeel.com
Jehz gumagana yung sa farneville pero napalitan ata yung username and password yung sa isa di daw activated :supersad:
Pa bookmark din para pag naglipat ako. Thanks! =)
Pingback: This is not an April Fools’ day post | Jehzlau Concepts