Title: Parse error: syntax error, unexpected &#039;define&#039; (T_STRING)
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected 'define' (T_STRING)

 *  [karolaina](https://wordpress.org/support/users/karolaina/)
 * (@karolaina)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-define-t_string-1/)
 * Hello,
    Something bad happened with my website ;/ When I go to it, I get the 
   message
 * > Parse error: syntax error, unexpected ‘define’ (T_STRING) in /home1/karolina/
   > public_html/wp-config.php on line 1
 *  . My website is here [http://www.livelusty.com/](http://www.livelusty.com/) .
   
   If honestly I am not exactly sure what to do. Please help ;/ Here is my wp-config.
   php file:
 * _removed by mod, this is private information that should not be shared_
 * Thank you a lot for your time.
 * – Karolina

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

 *  [jitendrajoshi](https://wordpress.org/support/users/jitendrajoshi/)
 * (@jitendrajoshi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-define-t_string-1/#post-5057675)
 * Karolina,
 * You just need a space after the opening php tag. The code is shown below:
 * _removed by mod, this is private information that should not be shared_
 *  [dskanth](https://wordpress.org/support/users/dskanth/)
 * (@dskanth)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-define-t_string-1/#post-5057809)
 * It is not safe to give all the content of wp-config.php file, esp. the database
   credentials. You must have given some default values like xxxxx.
 * Just kidding, is your site still safe, and not hacked by someone? 🙂
    If everything
   is ok, i recommend you to change the credentials asap.
 *  [abow09](https://wordpress.org/support/users/abow09/)
 * (@abow09)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-define-t_string-1/#post-5057811)
 * Please help!! The same thing happened to me and I am completely locked out of
   my site! How do I fix this??
 * Thank you!!
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-define-t_string-1/#post-5057812)
 * Please create a new thread [https://wordpress.org/support/forum/how-to-and-troubleshooting#postform](https://wordpress.org/support/forum/how-to-and-troubleshooting#postform)

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

The topic ‘Parse error: syntax error, unexpected 'define' (T_STRING)’ 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/)
 * 4 replies
 * 5 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-define-t_string-1/#post-5057812)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
