Title: Corrupt Code In WordPress File
Last modified: August 22, 2016

---

# Corrupt Code In WordPress File

 *  [cameronj](https://wordpress.org/support/users/cameronj/)
 * (@cameronj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/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

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/corrupt-code-in-wordpress-file/#post-5430248)
 * > downloading it from “wordpress.com/download”
 * “wordpress.com/download”?
 * You are here at wordpress.org NOT .com
 *  Thread Starter [cameronj](https://wordpress.org/support/users/cameronj/)
 * (@cameronj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/corrupt-code-in-wordpress-file/#post-5430251)
 * I apologize. I wrote “.com” above, but meant to say “.org”. The file was downloaded
   from “wordpress.org/download”.
 *  Thread Starter [cameronj](https://wordpress.org/support/users/cameronj/)
 * (@cameronj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/corrupt-code-in-wordpress-file/#post-5430410)
 * Update: I was able to (luckily) fix the problem with the “class-wp-walker.php”
   file. The problem has now been moved to do a different file. When I load up my
   website the following message appears:
 * Fatal error: Class ‘wpdb’ not found in /home/cameronj/public_html/wp-includes/
   load.php on line 352

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

The topic ‘Corrupt Code In WordPress File’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [cameronj](https://wordpress.org/support/users/cameronj/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/corrupt-code-in-wordpress-file/#post-5430410)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
