• Hello community,

    this morning I was putting a code (appareantly a wrong one) in the functions.php. Then the white screen of death appeared. I was trying to delete the wrong code in functions.php in Filezilla, but still the white screen was there. I then tried – as seen on a support forum- to change in wp-config.php “false” to “true” in the sentence define(‘WP_DEBUG’, false ); and updated the file. As nothing changed I recreated the “false” and left it like that.

    Now the screen is no more white but :
    Parse error: syntax error, unexpected $end in /home/digitalck/www/wp-config.php on line 1

    -> Please help me ! Thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • why don’t you revert to the functions.php file as it originally was and start over.

    What were you originally trying to change?

    First of all, I am hoping you are working with a child theme. It is because if you are working with the original theme, then your changes will disappear when the theme is updated.

    Second of all, like Janet said, revert to the old functions.php and then ask help on what code you want to put in functions.php in how to add it correctly.

    Third of all, since there is a syntax error in wp-config.php, check that file to see if you accidentally deleted or added a character.

    Thread Starter caromaro4

    (@caromaro4)

    Thanks for your answer… I was just adding a code for a stupid button that I found on a forum (I don’t know a lot about coding so I just copied it into fonctions.php)… But afterwards, by accessing via filezilla, I deleted exactly the code I had added before… So in my opinion the functions.php should be back to what it orginally was but doesn’t seem so as the white screen + parse error are still there…

    Do you have any idea how to find a solution?

    That’s good your functions.php file reverted to what it was before, but the error still persists because you haven’t corrected the error in your wp-config.php file yet.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wrong code -> white Screen of Death -> syntax error’ is closed to new replies.