Title: parse error
Last modified: August 19, 2016

---

# parse error

 *  Resolved [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/)
 * Today a visitor to my blog ([http://www.scifidimensions.com](http://www.scifidimensions.com))
   pointed out that it gives the following error message:
 * Parse error: syntax error, unexpected ‘<‘ in /export/home/sc/scifid71/public_html/
   main/wp-config.php on line 66
 * Is this a WordPress error or something else? Any ideas on a fix?
 * Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/parse-error-43/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-43/page/2/?output_format=md)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234869)
 * You have a damaged/corrupted config file. I suggest you download and examine 
   wp-config.php asap.
 *  Thread Starter [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234901)
 * I wouldn’t know what to look for if I did examine it. What would I be looking
   for?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234906)
 * Sudden parse errors can be a sign of hacking.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234907)
 * What to do if you think you’ve been hacked:
    [http://wordpress.org/support/topic/268083#post-1065779](http://wordpress.org/support/topic/268083#post-1065779)
 *  Thread Starter [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234925)
 * What do I do if I can’t log in? Visiting the site yields the error I first listed.
   So if I can’t log in as admin how do I even begin to fix the problem?
 * Finally, let me say that I’m no coder. I’m really just a user of WordPress, and
   lately it seems like it’s waaay too easy to get hacked. I already reinstalled
   WordPress 2.8.4 from the ground up and changed my password, but it still (apparently)
   didn’t fix the problem.
 *  Thread Starter [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234927)
 * P.S. I was able to open the wp-config.php via my FTP Explorer, and there are 
   a lot of spam links and other gobbledygook. Trouble is, I don’t know what to 
   delete, what to keep, and what to change. What a mess.
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234930)
 * You don’t have to be a coder to use the self hosted version of WordPress, but
   it certainly helps if you’re prepared to get your hands dirty and are willing
   to learn a bit about how it works in order to get the best out of it.
 * If you don’t want to bother with any of that, or if you don’t want the hassle
   of keeping it up to date or managing it, then the WordPress.com version is for
   you. It’s ease of use vs a more customisable blogging solution.
 * But anyway…
 * Start by downloading a fresh copy of WordPress:
    [http://wordpress.org/download/](http://wordpress.org/download/)…
   and unzip it onto your hard drive.
 * Then grab your wp-config.php from your webspace and save it onto your hard drive
   as wp-config-hacked.php (or something). Close it.
 * Download another copy of the wp-config.php file and open it.
 * In the unzipped fresh version of WordPress you’ve now got on your hard drive,
   find and open the wp-config-sample.php file.
 * You should be able to fill in the relevant details on the wp-config-sample.php
   file, using the hacked wp-config.php file as your source. You should find the
   database username and password that you can insert (it goes in the “usernamehere”
   and the “yourpasswordhere” space).
 * Then you can fill in the four Authentication keys lines, using this page – just
   copy and paste them into your wp-config-sample.php in the relevant space:
    [https://api.wordpress.org/secret-key/1.1/](https://api.wordpress.org/secret-key/1.1/)
 * Once you’re done, save it as wp-config.php, then upload that to your webspace
   and see what happens.
 * Phew.
 *  Thread Starter [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234937)
 * alism,
 * OK, I’ve downloaded and unzipped WP2.8.4 on my laptop. I’ve also saved the corrupted
   file to my laptop. Now, in the files I downloaded, there’s no “wp-config.php”
   but there is something called “wp-config-sample.php.” Is that the right file?
 * Thanks,
    John
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234938)
 * ^^^ answered above…
 *  Thread Starter [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234941)
 * Got it. Now…what’s the deal with the code you said to copy for the four Authentication
   keys lines? What is that stuff?
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234946)
 * Good to see you getting curious… best way to learn. 🙂
 * Each time you load this page:
    [https://api.wordpress.org/secret-key/1.1/](https://api.wordpress.org/secret-key/1.1/)…
   it’ll generate four random strings. You don’t have to use it, you can make up
   your own if you like. It’s just an easy copy and paste, that’s all.
 * WordPress then uses those random strings to encrypt cookies from your site. In
   a nutshell, it’s a security thing:
    [http://codex.wordpress.org/Editing_wp-config.php#Security_Keys](http://codex.wordpress.org/Editing_wp-config.php#Security_Keys)
 *  Thread Starter [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234947)
 * OK, I did it and now I can pull up my site.
 * What’s the next thing I need to do? Change my password?
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234954)
 * Yay!
 * Yep, change your passwords. FTP and WordPress. Also check there’s no extra administrators
   listed on the Users page when you log into your wordpress admin.
 * Take a back up of your site and database.
 * It would probably be good idea to do a complete re-install of WordPress too, 
   just in case any of the core files have been altered aswell.
 * Then read the links at the bottom of this page:
    [http://wordpress.org/support/topic/307660?replies=1](http://wordpress.org/support/topic/307660?replies=1)
 * There’s plenty of documentation on the forums about how to clean/check your site
   after a hack.
 * Best of luck. 🙂
 *  Thread Starter [johncsnider](https://wordpress.org/support/users/johncsnider/)
 * (@johncsnider)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234960)
 * Changed my admin password, made an SQL backup.
 * Now, if I reinstall wordpress, is that just a matter of uploading the files I
   just downloaded an unzipped, then making sure the wp-config.php has all the IDs
   and passwords? Do any other files need to be modified for this to work?
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/#post-1234961)
 * Pretty much.
 * Delete the wp-admin and wp-includes directories and the WordPress files inside
   the root folder — except the wp-config.php file that you’ve already done. Don’t
   touch the wp-contents folder either.
 * Then re-upload those files/folders you’ve just deleted with the ones in that 
   zip (but once again, don’t try to upload the wp-contents folder).

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/parse-error-43/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-43/page/2/?output_format=md)

The topic ‘parse error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 5 participants
 * Last reply from: [apsara](https://wordpress.org/support/users/apsara/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/parse-error-43/page/2/#post-1234986)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
