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

---

# Parse error: syntax error, unexpected T_OBJECT_OPERATOR

 *  [tschueller](https://wordpress.org/support/users/tschueller/)
 * (@tschueller)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/)
 * In a new install, I have added two widgets and in both cases I get a Parse error:
   syntax error, unexpected T_OBJECT_OPERATOR in different lines of different files
   for each. I have examined the code and do not see anything obvious.
 * Banner Rotator FX, Google Calendar Events
 * Any suggestions?

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624227)
 * Try decativating all plugins. If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, try switching to the Default theme (WordPress
   2.9) or the Twenty Ten theme (WordPress 3.0) to rule-out a theme-specific issue.
 *  Thread Starter [tschueller](https://wordpress.org/support/users/tschueller/)
 * (@tschueller)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624231)
 * No plugins are active… * All (4) | * Inactive (4)
 * Current theme is default: Twenty Ten 1.1 by the WordPress team
 * This happened immediately once I tried to activate either one of the two plugins.
 *  [tom_taylor_85](https://wordpress.org/support/users/tom_taylor_85/)
 * (@tom_taylor_85)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624232)
 * Ok, can you show us the lines it says is the error?
 *  Thread Starter [tschueller](https://wordpress.org/support/users/tschueller/)
 * (@tschueller)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624233)
 * I substituted —- for specific site info…
 * **Google Calendar Events**
 * Plugin could not be activated because it triggered a fatal error.
 * Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/——-/public_html/——-/
   wp-content/plugins/google-calendar-events/inc/gce-parser.php on line 136
 * **Banner Rotator FX**
 * Plugin could not be activated because it triggered a fatal error.
 * Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/——-/public_html/——-/
   wp-content/plugins/banner-rotator-fx/banner-rotator-fx.php on line 35
 *  Thread Starter [tschueller](https://wordpress.org/support/users/tschueller/)
 * (@tschueller)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624234)
 * I should also say that I have initially uploaded from within WP, but the later
   deleted them several times and FTP’d them up manually. I have also tried a previous
   version of one of them and not successful there either.
 *  [tom_taylor_85](https://wordpress.org/support/users/tom_taylor_85/)
 * (@tom_taylor_85)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624236)
 * What does **gce-parser.php on line 136**
 * and
 * **banner-rotator-fx.php on line 35 **
 * say?
 *  Thread Starter [tschueller](https://wordpress.org/support/users/tschueller/)
 * (@tschueller)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624238)
 * **gce-parser.php on line 136**
    Lines 132 – 140 //Create markup for display $
   events_markup = ‘<div class=”gce-event-info”>’;
 *  //If title option has been set for display, add it Below: this is rubbish, unsure
   of better alternative
    **_if(isset($this->title)) $events\_markup .= ‘<p class
   =”gce-tooltip-title”>’ . $this->title . ‘ ‘ . date\_i18n($event\_day[0]->get\
   _feed()->get\_date\_format(), $key) . ‘</p>’;_** $events_markup .= ‘
    - ‘;
 *  foreach($event_day as $event){
 * **banner-rotator-fx.php on line 35**
    This may be attributed to my installation
   methods and I will try this one again…
 *  [cortado](https://wordpress.org/support/users/cortado/)
 * (@cortado)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624446)
 * Same here: Tried to install “portfolio theme” on a freshWP 3.0.l with no plug
   ins installed. Cannot activate this theme because of this. Have to remove it 
   via ftp.
 *  [jllamosas](https://wordpress.org/support/users/jllamosas/)
 * (@jllamosas)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624478)
 * I have the same problem using the Theme P2.

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 5 participants
 * Last reply from: [jllamosas](https://wordpress.org/support/users/jllamosas/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_object_operator-1/#post-1624478)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
