Neobabs:
Thanks for giving my plugin a whirl.
This is a good catch. I’ve been able to reproduce this and I’m looking into it. I’ll get back to you shortly.
-Peter
Interesting – bp-gallery beta/release candidates are having the same problem. Is this a bp issue? Or something plug-in authors are missing?
I think it’s the change to GMT time functions in BuddyPress. Something we all need to start taking notice of
yep and bbPress will have the same issue if you use it externally but sharing the same tables (unique circumstances)
https://trac.buddypress.org/ticket/1727
https://bbpress.org/forums/topic/buddypress-12-bbpress-102-freshness-in-gmt
In my plugin’s case it’s something more drastic. I was using UNIX Timestamp function instead of a MySQL DateTime one (Whoops!). Upon insert, it was getting converted to 0000-00-00 00:00:00. Thus, since it’s now 2010, the date was just over 10 years old (which is a little Y2Kish, as it should be 2010 years old). However, I haven’t figured out why things are being shown twice.
@peter-anselmo
is it not cause of this in line 106 in classes.php ? :
” $this->user_id,
$this->group_id,
time(),
time(),
$this->file,
$this->name,
$this->description
“
Hey, have you find where was this pb ?
thanks.
Neo –
It’s line 70 in activity.php
Deleting this line:'recorded_time' => time(), // Optional completely will solve the 10 year problem. What I haven’t figured out is why the activity meta is being duplicated.
Neo-
Just figured out the duplication problem – 1.2 uses the activity stream’s ‘action’ field for what used to be in the ‘content’ field. I’ve updated my activity posts to reflect the new standard, and that fixed the problem. I’ll have an update out in the next few days, once I debug the new document folder.
PLEASE NOTE: BACK UP YOUR DOCUMENTS BEFORE UPGRADING!!!
No Seriously, anyone reading this: go download wp-content/plugins/buddypress-group-documents/documents and make a copy of it.
The next version of the plugin will use the main uploads folder (for this very reason), but using the 1-click update will delete all of your documents. You’ll need to re-upload them if this happens.
Good that you find the problem.
Thanks you