Skip to:

Opened 7 years ago

Closed 7 years ago

Last modified 6 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


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 7 years ago.

Download all attachments as: .zip

Change History (8)

#1 @DJPaul
7 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.

#2 @apeatling
7 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.

#3 @burtadsit
7 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.

7 years ago

#4 @DJPaul
7 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.

#5 @apeatling
7 years ago

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

(In [1255]) Fixes #608

#6 @apeatling
7 years ago

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

#7 @anonymous
6 years ago

  • Milestone Wire 1.0 deleted

Milestone Wire 1.0 deleted

Note: See TracTickets for help on using tickets.