[Bb-trac] [bbPress] #1051: Integration bugs during 1.0 install with custom user table

bbPress bb-trac at lists.bbpress.org
Sun Mar 15 12:43:55 GMT 2009


#1051: Integration bugs during 1.0 install with custom user table
----------------------------------+-----------------------------------------
 Reporter:  Denis-de-Bernardy     |       Owner:                  
     Type:  defect                |      Status:  new             
 Priority:  normal                |   Milestone:  1.0-beta        
Component:  Installation/Upgrade  |     Version:  1.0-beta (trunk)
 Severity:  normal                |    Keywords:                  
----------------------------------+-----------------------------------------
 I ran into two bugs when seeking to integrate bbpress 1.0-beta (trunk) and
 a WP 2.7.1:

 If you configure both the wp_ prefix and custom user/usermeta tables,
 bbpress proceeds to create the wp_users and wp_usermeta tables instead of
 using the ones provided. You then end up trying to log in with the
 user/pass provided by bbpress, which correctly fails. And upon logging in
 with the correct user/pass, the user role is not set.

 Related bug: BB didn't show a dropdown to select the keymaster, as show in
 the integration screencast -- presumably, because it ignored the custom
 user/usermeta tables.

 To work around the bug, I ended up fixing the database manually, i.e.:

 {{{
 insert into usermeta(user_id, meta_key, meta_value) select user_id,
 meta_key, meta_value from wp_usermeta;
 }}}


 I suppose the other bug is a little trickier to nail down, but most I
 trust it is at least partially related. Initially, I sought to force the
 correct settings directly by creating the correct bb-config.php file
 directly. Settings:

  - WP and BB sharing the same database settings
  - Custom salts and keys defined in WP and propagated to BB
  - WP using wp_ and bb using bb_
  - users/usermeta table set as users/usermeta
  - sites in blog.domain.com and forum.domain.com
  - (I actually have other WP sites with the same users table, but it's not
 relevant to the bug)

 When running the installer, I incorrectly assumed that BB would integrate
 in spite of my not toggling the WP integration checkbox in the installer
 (since the settings were already entered). So there's one issue.

 Even after toggling that, the install would end with an error message
 (user exists already), and then the site would proceed to try to redirect
 me to who knows where (as described in a few forum posts).

-- 
Ticket URL: <http://trac.bbpress.org/ticket/1051>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list