[wp-hackers] WP and Plugins DB connection conflicts
yahgrp at poplarware.com
Tue Jun 26 13:36:27 GMT 2007
Peter Adams wrote:
> I've been seeing some odd database connection conflicts between various
> plugin combinations and have narrowed the issue down to the fact that WP
> does not force a new database link to be created when it initiates its
> connection in wp-db.php. this is a problem if a plugin creates it's own
> db connection with the same user credentials as those used by WP and
> then closes the connection or produces errors on the link.
I believe the usual thing for a plugin is to use $wpdb to do database
queries, rather than creating its own database connections. Is there
some reason these plugins cannot be rewritten to do that? It might
mean adding a require() line somewhere, to make sure $wpdb has been
initialized, but then there would be no conflict.
More information about the wp-hackers