Title: Parse error: syntax error, unexpected T_STRING
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected T_STRING

 *  [Liezleb](https://wordpress.org/support/users/liezleb/)
 * (@liezleb)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-66/)
 * My site has been hacked I installed site scanners on the 21 and got hacked on
   the 23 now I cannot access my site. I am trying to reconfigure my wp_config.php
   but keep getting this error.
    Parse error: syntax error, unexpected T_STRING 
   in /home/content/83/11367183/html/wp-config.php on line 28. It is the last line
   of the code. I have entered the db fields one by one. If I start with the DB_HOST
   it is fine, as soon as I add my username and password it goes wrong.
 * Please help
 * TIA
 *     ```
       <?php
       /**
        * The base configurations of the WordPress.
        *
        * This file has the following configurations: MySQL settings, Table Prefix,
        * Secret Keys, and ABSPATH. You can find more information by visiting
        * {@link http://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php}
        * Codex page. You can get the MySQL settings from your web host.
        *
        * This file is used by the wp-config.php creation script during the
        * installation. You don't have to use the web site, you can just copy this file
        * to "wp-config.php" and fill in the values.
        *
        * @package WordPress
        */
   
       // ** MySQL settings - You can get this info from your web host ** //
       /** The name of the database for WordPress */
       define('DB_NAME', '');
   
       /** MySQL database username */
       define('DB_USER', '');
   
       /** MySQL database password */
       define('DB_PASSWORD', ‘’);
   
       /** MySQL hostname */
       define('DB_HOST', '');
       ```
   

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

 *  [wslade](https://wordpress.org/support/users/wslade/)
 * (@wslade)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-66/#post-5941717)
 * Hello,
 * I’m sorry your site is damaged. Is your site showing anything at the home page?
   Is anything about can’t establish a database connection visable? What happens
   when you try to login?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-66/#post-5941720)
 * Don’t post your passwords. I removed them from the post.
 * Check your quote marks, make sure they’re normal single quotes, not something
   weird looking.
 *  [Dominykas](https://wordpress.org/support/users/dominykasgel/)
 * (@dominykasgel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-66/#post-5941727)
 * Hi there,
 * The problem is with
 *     ```
       /** MySQL database password */
       define('DB_PASSWORD', ‘’);
       ```
   
 * You need to use normal quotes. Working code:
 *     ```
       /** MySQL database password */
       define('DB_PASSWORD', '');
       ```
   
 *  Thread Starter [Liezleb](https://wordpress.org/support/users/liezleb/)
 * (@liezleb)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-66/#post-5941941)
 * Thank you. I have now realised the problem with the DB_PASSWORD godaddy has the
   password rule special characters and as soon as I add !@# it says : syntax error
   line 28

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

The topic ‘Parse error: syntax error, unexpected T_STRING’ 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/)
 * 4 replies
 * 4 participants
 * Last reply from: [Liezleb](https://wordpress.org/support/users/liezleb/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-66/#post-5941941)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
