Title: Getting Parse error: syntax error, unexpected T_VARIABLE
Last modified: August 20, 2016

---

# Getting Parse error: syntax error, unexpected T_VARIABLE

 *  Resolved [Kashif456](https://wordpress.org/support/users/kashif456/)
 * (@kashif456)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/)
 * I just tried installing WP with my own hosting and I am getting this error:
 * Parse error: syntax error, unexpected T_VARIABLE in /homepages/44/d175365316/
   htdocs/KashIndustries/wp-includes/option.php on line 225
 * First time with the install, any help is appreciated.

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

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854698)
 * Try re-uploading all files & folders from a **fresh** download of WordPress.
 *  Thread Starter [Kashif456](https://wordpress.org/support/users/kashif456/)
 * (@kashif456)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854760)
 * I tried again but same error. I am not exactly sure what’s going on. I even tried
   with another version 3.4.1 to 3.4.0 and I am seeing the same issue.
 * Any thoughts?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854765)
 * Please try another re-upload.
 *  Thread Starter [Kashif456](https://wordpress.org/support/users/kashif456/)
 * (@kashif456)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854769)
 * I tried again and here’s the error: Parse error: syntax error, unexpected T_VARIABLE
   in /homepages/44/d175365316/htdocs/KashIndustries/wp-includes/option.php on line
   225
 * Can you please explain what’s going on?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854771)
 * I’m sorry but it looks like you aren’t uploading all of the necessary files.
 *  Thread Starter [Kashif456](https://wordpress.org/support/users/kashif456/)
 * (@kashif456)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854774)
 * I have checked all the files and it does look like all the files are there.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854775)
 * Try re-downloading a copy of WordPress, extracting the wp-includes/option.php
   file and uploading that to the wp-includes folder.
 *  Thread Starter [Kashif456](https://wordpress.org/support/users/kashif456/)
 * (@kashif456)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854776)
 * This is really frustrating. I have tried doing this again and also tried uploading
   the file independently and it failed.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854779)
 * Let’s try another approach – try:
    – switching to the Twenty Eleven theme by 
   renaming your current theme’s folder inside wp-content/themes and adding “-old”
   to the end of the folder name using [FTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin.
 * – running the upgrade manually via wp-admin/upgrade.php
 *  [judijan](https://wordpress.org/support/users/judijan/)
 * (@judijan)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854806)
 * I’m having the exact same problem/error with the option.php. I’ve tried several
   fresh uploads.
 *  [judijan](https://wordpress.org/support/users/judijan/)
 * (@judijan)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854807)
 * OK, maybe this will help. I went all the way back to version 3.1 and did a manual
   install. It worked. When I tried to upgrade, I got this message:
 * You cannot update because WordPress 3.4.1 requires PHP version 5.2.4 or higher.
   You are running version 4.4.9.
 * So it looks like because the hosting provider is not up to date, it was causing
   this error.
    Kashif456, you might want to check if you have a similar situation.
 * Hope this was helpful.
 *  Thread Starter [Kashif456](https://wordpress.org/support/users/kashif456/)
 * (@kashif456)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854819)
 * Thanks for looking into this for me and commenting. I talked to my hosting company
   and they helped me figure this out. My hosting company does support php 5.2.4
   with the linux package however it required me to do the following:
 * Please create a .htaccess file or edit if you already have one by adding the 
   following code:
 * AddHandler x-mapp-php5 .php
 *  [twobib](https://wordpress.org/support/users/twobib/)
 * (@twobib)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854913)
 * A .htaccess with only this inside :
    SetEnv PHP_VER 5 And it solved the problem
 * Mettre un fichier .htaccess à la racine, avec seulement ceci à l’intérieur :
   
   SetEnv PHP_VER 5 Et hop, problème résolu !
 *  [Nathalie31820](https://wordpress.org/support/users/nathalie31820/)
 * (@nathalie31820)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854914)
 * I had the exact same problem with 1&1 and by just making sure php version was
   set to 5, it solves the problem immediatly!
 *  [rollingokie](https://wordpress.org/support/users/rollingokie/)
 * (@rollingokie)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/#post-2854918)
 * I also use 1&1 ( 1and1 ) and had to set the “global php version” to 5 in the 
   control panel. It worked like a charm after that.

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

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

The topic ‘Getting Parse error: syntax error, unexpected T_VARIABLE’ is closed to
new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 18 replies
 * 7 participants
 * Last reply from: [twobib](https://wordpress.org/support/users/twobib/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_variable/page/2/#post-2854922)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
