Order a Free SIM Card With 5 Pounds Free Credit

Wordpress Site Broke After PHP Edit Fix

I see this problem time and time again. Someone is editing / messing with the PHP code of a Wordpress theme, they press save, and bang, site gone. Usually, after this the website now shows a blank page. And to the many thousands of people who experience this problem who don't have much knowledge on how to quickly fix this issue, it can be very stressful. Websites broke and there's no way back. Well, the good news is there's an easy way back.

PHP is a strict taskmaster. One little mistake and it can be curtains. For a while. Just like with the Line 56 Error and many other irritating problems that can arise, in many cases the same fix will restore your site back to it's former glory. All you have to do is:

1. Log in to your Cpanel.
2. Go to your file manager
3. Click "public_html"
4. Double click the website folder with the problem
5. Double click the "wp-content" folder
6. Double click themes
7. Find the theme that has the problem
8. Right click the problem theme and choose "Rename"
9. Rename the theme folder by adding a few numbers to the end of the file / folder name

Click save or Rename file. And that's it. If you go and load your website it should now be up and running again. However, it will now be using another theme. A default theme. Because you changed the name of your main folders problem theme this automatically forces Wordpress to use another (default) one because now, the files needed to load the theme can't be found. If you want to use the same theme you were using before (which still has the error) you will need to delete it and re-upload the original template that is free of errors. You can then use the same template you were previously using. Just be more careful in the future! Hope this helped you out. Until the next time amigo.

Popular Posts