Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

#5424 closed defect (bug) (fixed)

WordPress 3.8.1 & upgrading to BuddyPress 2.0

Reported by: imath's profile imath Owned by: boonebgorges's profile boonebgorges
Milestone: 2.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch
Cc:

Description

I've just met an upgrade trouble in WordPress 3.8.1 due to the 'last_activity' new management introduced in r7860. This doesn't happen in WordPress 3.9 alpha, that's why i haven't noticed it earlier.

Problem is that WordPress triggers a database error :

WordPress database error: [Field 'action' doesn't have a default value]
INSERT INTO wp_bp_activity (user_id,component,type,date_recorded) VALUES (1,'members','last_activity','2014-02-24 19:16:57')

my MySQL version is 5.6.14.

Adding "default" values on mysql insert functions seems to solve the trouble.

Attachments (1)

5424.diff (1.6 KB) - added by imath 11 years ago.

Download all attachments as: .zip

Change History (2)

@imath
11 years ago

#1 @boonebgorges
11 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 7989:

Insert default values when updating last activity

This prevents errors on certain configs.

Fixes #5424

Props imath

Note: See TracTickets for help on using tickets.