Skip to:
Content

BuddyPress.org

Opened 18 years ago

Closed 18 years ago

#47 closed defect (bug) (fixed)

Plugins not installing tables on fresh installation

Reported by: sollaires Owned by:
Priority: major Milestone:
Component: Version:
Severity: Keywords: $bpplugin install problem
Cc:

Description

In SVN revision 252, plugins do not seem to be installing themselves correctly. In my fresh install, the only plugin that gets properly initialized is groups.

So far, I think it is related to the initialization of the $bp variables. From some code traces, it looks like the *_add_admin_menu() functions that call the install hooks are being called before *_setup_globals(). The result is that the SQL that tries to determine if the table exists or not is actually using an empty variable for the table name so the like chunk simply ends up being '%%' matching anything.

In some limited testing so far, changing the *_setup_globals() function to be added to the 'plugins_loaded' hook instead of the 'wp' hook fixes this for some of the plugins (friends is what has been tested so far).

More info as I debug it further.

Change History (1)

#1 @apeatling
18 years ago

  • Resolutionfixed
  • Status newclosed

fixed in rev 309.

Note: See TracTickets for help on using tickets.