WordPress.org

Ready to get started?Download WordPress

Forums

whole wordpress blank (7 posts)

  1. magnusbonde
    Member
    Posted 2 years ago #

    Hi, I'm in serious trouble. I'm an intern at a company and i'm setting up a wordpress locally on my computer using MAMP. No one here is IT experts.
    Everything was fine untill i was editing a footer page for the theme via wordpress editor. I cut out a piece of code and updated. then everything went blank. Then I went backwards to put the piece of code back in place and updated, but it was too late.

    Any ideas what happened and how to fix it?

    Best regards

  2. Len
    Member
    Posted 2 years ago #

    Hi magnusbonde

    That's why I don't use the built-in theme editor. I prefer making adjustments in a plain text editor then uploading the changed file. A blank screen indicates a PHP error.

    Do you have a copy of the unchanged file?

  3. magnusbonde
    Member
    Posted 2 years ago #

    Yes i believe i still have the php file for that certain section

  4. Len
    Member
    Posted 2 years ago #

    This website is currently on your computer? Simply overwrite the changed file with the original one.

    If this was a remote site you'd upload the original via ftp.

  5. John
    Member
    Posted 2 years ago #

    Hi Magnus, if you can access the site via FTP as Len suggested, replace the footer you were editing. It may take a bit of hunting to find it, but it should be in wp-content/themes/<theme name>/<file.php>. If you were using a theme from another location or repository, you can download a clean copy and just replace the affected file/section.

    If you don't have FTP access, but you can SSH, you may be able to edit the file via text editor from the console.

  6. magnusbonde
    Member
    Posted 2 years ago #

    Thanks for the help guys. It worked. I'm so happy right now!

  7. Len
    Member
    Posted 2 years ago #

    You're welcome. Glad to see you got it sorted out. :)

Topic Closed

This topic has been closed to new replies.

About this Topic