Skip to:
Content

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#608 closed defect (bug) (fixed)

Wire DB tables not being created

Reported by: DJPaul Owned by:
Milestone: Priority: blocker
Severity: Version:
Component: Keywords: has-patch
Cc:

Description

Installed DB/site from scratch. Thanks to burtadsit for spending time going through this with me.

bp-xprofile.php, xprofile_add_admin_menu(). BP_XPROFILE_DB_VERSION = 948.

The call to xprofile_install() will block xprofile_wire_install() from being called as BP_XPROFILE_DB_VERSION is 948, which is the same value as get_site_option('bp-xprofile-db-version') has.
This bug was introduced with the changes to bp-xprofile.php introduced in rev 1225 of this file.

Attachments (1)

608.patch (1.3 KB) - added by DJPaul 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 DJPaul5 years ago

To clarify the wp_bp_xprofile_wire table isn't being created. Quite possibly there are other similar bugs with the other similar DB_VERSION variables around the place but haven't checked.

comment:2 apeatling5 years ago

This is because the xprofile table upgrade is run, and then the new db version is updated before the wire upgrade version check is done. Stupid, I'll fix.

comment:3 burtadsit5 years ago

djpaul would have found this if he had not been tired. End of the day for him. He was willing and able but got sidetracked by lack of sleep.

DJPaul5 years ago

comment:4 DJPaul5 years ago

  • Keywords has-patch added

See attached. I also found the same problem occurring in bp-groups.php, so both fixes in this patch. Hope patch is appropiate.

comment:5 apeatling5 years ago

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

(In [1255]) Fixes #608

comment:6 apeatling5 years ago

The patch would have updated the DB version without running the check, so I did it slightly differently. Thanks for finding this.

comment:7 anonymous5 years ago

  • Milestone Wire 1.0 deleted

Milestone Wire 1.0 deleted

Note: See TracTickets for help on using tickets.