Title: Parse Error Unexpected T_VARIABLE in wp_config ????
Last modified: August 18, 2016

---

# Parse Error Unexpected T_VARIABLE in wp_config ????

 *  [maxman](https://wordpress.org/support/users/maxman/)
 * (@maxman)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_variable-in-wp_config/)
 * Dear Forum members,
 * I moved to a new HOST and decided to export my database and import it back into
   MySQL on the new HOST. Manually created a sub-domain. Moved the files over. Made
   sure all the settings were right in the wp_config file. Now when I try and run
   the blog I get the following error:
 * Parse error: parse error, unexpected T_VARIABLE in /mnt/Target01/332200/332272/
   blog.xxxxx.com/web/content/wp-config.php on line 10
 * I have replaced the actual website name with xxxxx.
 * Any help is greatly appreciated.

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

 *  Thread Starter [maxman](https://wordpress.org/support/users/maxman/)
 * (@maxman)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_variable-in-wp_config/#post-525267)
 * BTW the line that is giving the error reads:
 * $table_prefix = ‘wp_’;
 * Now if I comment this line out, the error simply moves along to the next line
   etc etc..
 * Help help
 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_variable-in-wp_config/#post-525270)
 * What’s on the line _before_ that?
 * Check the line that contains your hostname:
 * `define('DB_HOST', 'localhost'); `
 * Make sure the quote marks are there and that there is a semi-colon at the end
   of the line.
 *  Thread Starter [maxman](https://wordpress.org/support/users/maxman/)
 * (@maxman)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_variable-in-wp_config/#post-525272)
 * OK whilst I was checking the host name as indicated by Les, I noticed that a ‘;’
   was missing at the end of the line.
 * All is well now.
 * Thanks

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

The topic ‘Parse Error Unexpected T_VARIABLE in wp_config ????’ is closed to new
replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 2 participants
 * Last reply from: [maxman](https://wordpress.org/support/users/maxman/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/parse-error-unexpected-t_variable-in-wp_config/#post-525272)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
