Restore WordPress.


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,

I clicked on “Get WordPress” button.
I then clicked “Download WordPress 5.1.1”. Note: Version was not important since this is the latest.

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. 

2 thoughts on “Restore WordPress.

  • April 2, 2019 at 5:09 am
    Permalink

    Have you ever before had troubles with your hosting? I’m open for recommendations as my webhost is awful at the
    moment.

    Reply
    • April 2, 2019 at 9:29 am
      Permalink

      Hello, “Carlo”. What type of troubles are you facing with your hosting? Normally, I found most hosting providers are very friendly and helpful and they provide great support. If you are thinking of changing your hosting plan, there are many cheap hostings available, I heard Bluehost and Siteground offer great service and speed and they are cheap as well. I couldn’t afford that and I am stuck with a cheaper than Bluehost/Siteground hosting but I found my hosting provider is very helpful. I also know my shared hosting is not fast enough but I try to manage speed and performance in different ways, I developed my own caching techniques and I optimized CSS/JS/HTML/.htaccess and PHP and I tweaked cPanel settings and I created some extra CSS codes and PHP files to bring better speed and smooth performance and I had to write my own plugins to optimize this website a bit further and to bring stability. Once when I will have improvement in life a bit and I will be able to afford, I would like to add CDN for this website and that will make it a bit fast. Good luck.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *