[wp-trac] [WordPress Trac] #17874: php warning
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 23 17:34:43 UTC 2011
#17874: php warning
-----------------------------------------+------------------------------
Reporter: SidHarrell | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2
Severity: trivial | Resolution:
Keywords: has-patch reporter-feedback |
-----------------------------------------+------------------------------
Comment (by SidHarrell):
I've been killing myself trying to figure out where Event Espresso would
be setting the global $post to NULL (what is it at the breakpoint I set on
line 1760) There is only one file where we use the global $post, and I set
breakpoints at the three spots in that file where it's declared, and when
it didn't hit any of them, I renamed the file and no effect. So I declared
global $post at the top of admin.php so I could watch it (I tried setting
a watch on it first) and it never gets set to anything (stays NULL)
throughout execution. I'm going to the plugin settings page, so it's
http://localhost/wordpress_trunk/wp-admin/admin.php?page=event_espresso
When I go to another plugin settings page that doesn't give the notice,
it's because it never gets to post.php line 1760.
Here's the call stack on the notice. Note the event espresso is calling
wp_tiny_mce() in /wp-admin/includes/post.php:1711
Call Stack: 0.0120 681896
1. {main}() /var/www/wordpress_trunk/wp-admin/index.php:0 0.0134 812712
2. require_once('/var/www/wordpress_trunk/wp-admin/admin.php')
/var/www/wordpress_trunk/wp-admin/index.php:10 0.4190 40215840
3. do_action() /var/www/wordpress_trunk/wp-admin/admin.php:155 0.4191
40218040
4. call_user_func_array() /var/www/wordpress_trunk/wp-
includes/plugin.php:405 0.4191 40218096
5. organization_config_mnu() /var/www/wordpress_trunk/wp-
includes/plugin.php:0 0.4191 40218768
6. wp_tiny_mce() /var/www/wordpress_trunk/wp-content/plugins/event-
espresso/includes/organization_config.php:8 0.4217 40241584
7. do_action() /var/www/wordpress_trunk/wp-admin/includes/post.php:1711
0.4217 40243632
8. call_user_func_array() /var/www/wordpress_trunk/wp-
includes/plugin.php:405 0.4217 40243688
9. wp_preload_dialogs() /var/www/wordpress_trunk/wp-includes/plugin.php:0
0.4314 40304264
10. wp_fullscreen_html() /var/www/wordpress_trunk/wp-
admin/includes/post.php:1732
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17874#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list