• 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

    (@macmanx)

    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

    (@tschueller)

    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.

    Ok, can you show us the lines it says is the error?

    Thread Starter tschueller

    (@tschueller)

    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

    (@tschueller)

    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.

    What does gce-parser.php on line 136

    and

    banner-rotator-fx.php on line 35

    say?

    Thread Starter tschueller

    (@tschueller)

    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…

    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.

    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.