Title: T Object Operator
Last modified: August 19, 2016

---

# T Object Operator

 *  [spazowham](https://wordpress.org/support/users/spazowham/)
 * (@spazowham)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/t-object-operator/)
 * Just installed p2 on my blog and am getting this whenever I try to get to my 
   blog:
 * _Parse error: syntax error, unexpected T\_OBJECT\_OPERATOR in /nfs/c01/h09/mnt/
   10381/domains/domainname.com/html/blog/wp-content/themes/p2/functions.php on 
   line 50
    
   
    Here’s what line 50 looks like:
 * `$username = get_userdata( $values['id'] )->user_login;`
 * Anybody else get this error and resolve it?

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

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704225)
 * First thing to do is reupload a fresh copy of the theme; the first one didn’t
   completely upload.
 *  Thread Starter [spazowham](https://wordpress.org/support/users/spazowham/)
 * (@spazowham)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704226)
 * I should mention that reuploading the theme was the first thing I did.
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704229)
 * A fresh copy from the authors site or the theme repository?
 * The theme may not be compatible with your version of wordpress. What’s the theme
   support page say?
 *  Thread Starter [spazowham](https://wordpress.org/support/users/spazowham/)
 * (@spazowham)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704335)
 * 3.0.1 is supported.
 * Looks like there’s a more serious problem with my install – undergoing this process
   now: [http://codex.wordpress.org/Restoring_Your_Database_From_Backup](http://codex.wordpress.org/Restoring_Your_Database_From_Backup)
 * Thanks for staying on this thread – your help is appreciated.
 *  [inspiraven](https://wordpress.org/support/users/inspiraven/)
 * (@inspiraven)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704587)
 * I’ve got the same situation.
    I reverted back but am hoping someone can help 
   me fix the functions.php
 * When I update p2 my site crashes and I get this error:
    I’ve tried it automatically
   and manually, same error message:
 * _Parse error: syntax error, unexpected T\_OBJECT\_OPERATOR in _
 * ***\wp-content\themes\p2\functions.php on line 50
 *  [Lance Willett](https://wordpress.org/support/users/lancewillett/)
 * (@lancewillett)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704588)
 * The `T_OBJECT_OPERATOR` error is most likely a PHP4 compatibility issue. I’d 
   strongly suggest updating to PHP5 since WordPress will be dropping support for
   PHP4 in the coming year ([more info here](http://codex.wordpress.org/Switching_to_PHP5)).
 * In the meantime if anyone wants to patch this and other PHP5 object notations
   in P2 I’m sure people unable to switch from PHP4 will be grateful.
 *  [inspiraven](https://wordpress.org/support/users/inspiraven/)
 * (@inspiraven)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704598)
 * 🙁 Yeah, I’m stuck with PHP4. I too would love to see a patch for compatibility
 *  [Lance Willett](https://wordpress.org/support/users/lancewillett/)
 * (@lancewillett)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704600)
 * [@inspiraven](https://wordpress.org/support/users/inspiraven/) I’d strongly suggest
   upgrading to PHP5 since WordPress will soon be dropping support for PHP4 (see
   my reply above).
 * To be clear: if someone is willing to patch P2 for backwards compatibility we’ll
   be willing to update the theme. Otherwise we don’t have plans to add the support
   as it’s in everyone’s best interest to upgrade to the latest stable version of
   PHP (5.2.x as of today).

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

The topic ‘T Object Operator’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [Lance Willett](https://wordpress.org/support/users/lancewillett/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/t-object-operator/#post-1704600)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
