Title: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected T_OBJECT_OPERATOR

 *  [bjrolston](https://wordpress.org/support/users/bjrolston/)
 * (@bjrolston)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-2/)
 * Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/35/d348543434/
   htdocs/wp-content/themes/p2/functions.php on line 50
 * Any suggestions?

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

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-2/#post-1800747)
 * Reupload the theme.
 *  [inspiraven](https://wordpress.org/support/users/inspiraven/)
 * (@inspiraven)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-2/#post-1800811)
 * I had the same thing when I tried to update to the latest P2. I found no solution
   but was told that it does not work if your server still has PHP4.
    If (like me)
   you are stuck with php4, you can still use the old theme but as wordpress is 
   going only php5 you’ll have more and more troubles w/ other updates too See [this thread ](http://wordpress.org/support/topic/t-object-operator?replies=9)
 *  Thread Starter [bjrolston](https://wordpress.org/support/users/bjrolston/)
 * (@bjrolston)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-2/#post-1800816)
 * inspiraven .. THANK YOU for your response. You helped me solve the problem. I
   use 1and1 for hosting and found the following information so that I could make
   sure that my site uses php5. Hope you can use the same information where you 
   host your site(s).
 * You may choose to simply name the script with the .php5 file extension if there
   are only a few scripts that require PHP5. If you don’t want to rename all your
   scripts to .php5, you can do the create a .htaccess file (or edit the existing.
   htaccess file, if you already have one). You can create this file using a text
   editor such as Notepad, WordPad, vi, nano, etc. and place the following line 
   in the text file:
 * AddType x-mapp-php5 .php
 * Save the text file as .htaccess in the folder where you need to use PHP5 (or 
   upload the file to the correct folder). The settings specified in the .htaccess
   file are recursive meaning that the settings will apply to the current folder
   where the file is saved as well as all subfolders.

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

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

 * 3 replies
 * 3 participants
 * Last reply from: [bjrolston](https://wordpress.org/support/users/bjrolston/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-2/#post-1800816)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
