Forum Replies Created
-
In reply to: Bavatars Error
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;
Thanks for the tip, that’s much better.
Thanks for the tip, that’s much better.
That’s because there’s a bug in the plugin. Or rather the plugin was probably written for an earlier version of bbpress.
To fix the “redirect” issue, you need to edit avatar-upload.php and change line 7 from:
bb_auth(); // logged in?
to:
bb_auth( 'logged_in' ); // logged in?
Now it’s off to do more testing.
That’s because there’s a bug in the plugin. Or rather the plugin was probably written for an earlier version of bbpress.
To fix the “redirect” issue, you need to edit avatar-upload.php and change line 7 from:
bb_auth(); // logged in?
to:
bb_auth( 'logged_in' ); // logged in?
Now it’s off to do more testing.