• Resolved ScoutingRediscovered

    (@scoutingrediscovered)


    I inadvertently edited/moved my functions.php file for my wordpress site’s theme. It completely broke the site, nothing loads except a blank page. I’ve tried re-loading the original functions.php file, but even once it’s identical to what it was before, the site still doesn’t load.

    I’m not familiar with PHP and I would really appreciate some help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Edited and moved are 2 different things. If you moved the file, you need to move it back into root folder of your theme. Even if it’s correct but in the wrong folder it’ll break stuff.

    Thread Starter ScoutingRediscovered

    (@scoutingrediscovered)

    Alright, I have a back-up tool on my hosting service, and tried running a back-up to a few days before the incident. The back-up completed successfully, but there is no change in the site. It still is the “White Screen of Death”.

    Please, any advice would be really appreciated!

    Backup only backups up website, did you restore/recover backup?

    Thread Starter ScoutingRediscovered

    (@scoutingrediscovered)

    Ah, thanks Viktor!

    I moved it, then moved it back exactly to the same place a few minutes later. Still the same.

    Any suggestions to troubleshoot?

    You can try restoring one of the older backups, if you don’t know how to do it your hosting support can help since it sounds like its part of your hosting.

    If it still doesn’t work.
    Make sure your functions.php is located in the theme folder:

    /public_html/wp-content/themes/theme-name/functions.php

    If that’s good. Now we need to verify functions.php is identical to the original version. You can compare current version to old version of the file by using this free tool that looks for differences in the text: https://www.diffnow.com/

    Let me know where this gets you.

    Thread Starter ScoutingRediscovered

    (@scoutingrediscovered)

    Viktor,

    Thank you for suggesting diffnow.com! Using it made me step back, stop panicking, and look more carefully at the files. Under careful examination, I found that I actually did have the wrong code in the functions.php file. It’s easy to miss something and make assumptions when you’re rushing trying to fix a down site! I am happy to say that it has been fixed and the sites are live again. Thank you very much for your help!

    Great, you’re welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Blank site after functions.php file is changed.’ is closed to new replies.