Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bavatars Error

  • @brandon99

    Member

    Hello everyone.

    I just uploaded the Bavatars plugin for my bbPress forum. I uploaded it to the my-plugins directory, as instructed. But when I tried to activate the plugin, I got the following error:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/content/b/r/a/brandonreptile/html/forum/my-plugins/bavatars/bavatars-wp.php on line 28

    I searched the support forum for a similar thread on this particular error, but couldn’t find anything.

    Any insight would be much appreciated. Thanks in advance.

    -Brandon

Viewing 4 replies - 1 through 4 (of 4 total)
  • @chrishajer

    Participant

    Is your web server using PHP4? If so, I think using PHP5 will take care of that error.

    @brandon99

    Member

    Thanks for the tip Chris. Yes, my server was running PHP4. I just switched it to PHP5. I’ll wait until the changes take effect, and then I’ll try the Bavatars install again. I’ll update this post with the results, for the benefit of other readers.

    @brandon99

    Member

    Yep, that did the trick. Thanks again.

    @brewhousemedia

    Member

    If you’re unlucky like me and you still have some old php4 code that’s preventing you from flipping the switch to php5. Here’s what I did to fix bavatars.php, around line 48.

    //$id = bb_get_user( $id_or_email, array( 'by' => 'email' ) )->ID;

    // Fix for Fatal error: syntax error, unexpected T_OBJECT_OPERATOR

    $bb_get_user_object = bb_get_user( $id_or_email, array('by' => 'email'));

    $id = $bb_get_user_object->ID;

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar