Corrupt Code In WordPress File
-
Hello!
My site has been down for about a week now. Every time I try to visit it or sign in through the “wp-admin” http extension, I get this error message (at the bottom). I’ve tried fixing it myself by deleting this file and re-downloading WordPress, but it fails every time.
Looking through the code of the “class-wp-walker.php” file, the code randomly cuts off in the middle of line 428. Looking through the code of the same file after downloading it from “wordpress.com/download” the file has code through line 472. So, I’m missing roughly 40 lines of code.
When I go to replace the broken file with the working one, it for some reason reverts back to the broken one. I’ve tried deleting the old (broken) one through FTP, copy and pasting the working code into the old php file through TextWrangler, and re-installing the entire wp-includes folder. So far, nothing has worked for me.
Any suggestions?
Here’s the error message:
Parse error: syntax error, unexpected end of file in /home/cameronj/public_html/wp-includes/class-wp-walker.php on line 428
- The topic ‘Corrupt Code In WordPress File’ is closed to new replies.