Opened 17 years ago
Closed 16 years ago
#47 closed defect (bug) (fixed)
Plugins not installing tables on fresh installation
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | ||
Component: | 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.
fixed in rev 309.