[wp-trac] Re: [WordPress Trac] #5860: Activating plugin that uses
upgrade functions (dbDelta) fails
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 15 01:26:24 GMT 2008
#5860: Activating plugin that uses upgrade functions (dbDelta) fails
----------------------------+-----------------------------------------------
Reporter: jhodgdon | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: Administration | Version: 2.5
Severity: critical | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------------------------
Comment (by darkdragon):
I feel like I'm back in C/C++.
I'm not seeing how the patch does anything that shouldn't already be
available. I'm not sure that the patch fixes anything. If $wpdb isn't
available then {{{global $wpdb}}} doesn't do anything except declare an
variable that was nonexistent. If it did exist, then global $wpdb; should
just acknowledge that the variable existed in global scope anyway.
That doesn't seem to be a solution and if it is, then you just turned
everything I think I know upside down and I should stop programming
completely because I don't know anything.
It seems unrelated, what is the execution flow? You said it includes your
plugin twice, which it should not do and even if it does, you only execute
the init once, so it should blow up on your function and not on the
require_once().
In the case that it did execute the function twice, then it should still
only include the file in require_once() one time, as would be the case
with require_once(). If not, then you have a PHP bug with require_once().
Both the solution and the problem seem completely mind boggling and my
brain is about to implode. Can you further explain, so that down is not up
and reality is real again?
--
Ticket URL: <http://trac.wordpress.org/ticket/5860#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list