I was walking with this old friend of mine and we walked to his place. We had a nice talk this evening. Before I left, I asked him about his website and his answer didn’t make me happy. He told me, since last week, his website was acting very weird and it was flickering violently and sometimes it was showing only a white screen and sometimes his website was freezing the entire browser. I decided to spend some time there to fix it. He then took me to his WordPress dashboard, I told him to log in to his cPanel as well. Yes, he was right, his website was really unstable and it was flickering violently and the browser was frozen all of a sudden. I doubted his plugins in the beginning, I then looked at his plugins, I found he installed a lot of plugins and I decided to deactivate them all to see if that helps. No, it didn’t. I understood, something was really wrong with the WordPress core files. I then navigated to his cPanel “File manager” and then to his “public_html” folder. I opened a few important files located in the “wp-includes” and in the “wp-admin” folder. I found some heavy modifications in those important files and those plugins caused it and it was behind those weird issues that he faced. He also told me, he force-updated WordPress to see if that was helping him but the problem persisted. I understood I would need to restore WordPress completely but I must do it without deleting any of his posts and pages. It meant, his website would be fixed without losing any important things or customizations, even without losing a single plugin.
What I did was that I first visited “WordPress.org” to download WordPress on the hard drive. So, I found their website and I clicked on the following things shown in the images below and I was able to download WordPress on his hard drive. So, these are the images below,
Alright, I got the WordPress in a .zip file. I extracted that .zip file on the hard drive and I found “wp-admin” and “wp-includes” and “wp-content” directories and the other important files. I would need only “wp-admin” and “wp-includes” directory to restore WordPress. So, I re-zipped those two directories separately, directories that I found after extracting that .zip file. So, I got wp-admin.zip and wp-includes.zip. Things are ready.
Note: I must not restore “wp-content” directory. It is because I must keep his current theme/plugins. I would not restore other files as well. It meant, I would strictly restore only “wp-admin” and “wp-includes”.
I went to the cPanel “File manager” again and then to the “public_html” folder and I deleted those old “wp-admin” and “wp-includes” directories from the “public_html” folder first. I decided to stay in this “public_html” folder because here I will upload those two .zip files that I made a while ago on the hard drive. I found the “upload” option at the top left of the cPanel’s “File manager” and I clicked it. I uploaded “wp-admin.zip” and “wp-includes.zip”. I right clicked on those files separately and from that right click menu, I chose, “extract”. It extracted those two files and I got “wp-admin” and “wp-includes” folder again in the “public_html” folder. I then deleted those two .zip files.
Did it fix those issues really? I then addressed his website in the browser and I found all those issues were gone. His website became totally stable immediately.
I then asked him if it was possible for him to make some tea for us? That music from Goran Bregović was great with that amazing tea afterward.
Crossing my fingers for your success in it too. All the best.