Opened 6 months ago
Last modified 6 months ago
#50796 new defect (bug)
Call to a member function add_node() on string
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.4.2 |
Component: | Toolbar | Keywords: | |
Focuses: | Cc: |
Description
when using woocommerce beta tester, we get the following 2 notices in wp core.
core needs handling for this to avoid notices.
Call to a member function add_node() on string File: /wp-includes/admin-bar.php on line 921 Error URL: /wp-admin/post-new.php?post_type=page Referrer: /wp-admin/post.php?post=1494&action=edit Trace: #0 /wp-includes/class-wp-hook.php (287): wp_admin_bar_comments_menu( $wp_admin_bar = WP_Admin_Bar Object ) #1 /wp-includes/class-wp-hook.php (311): WP_Hook->apply_filters( $value = NULL, $args = Array( [0] => WP_Admin_Bar Object ) ) #2 /wp-includes/plugin.php (544): WP_Hook->do_action( $args = Array( [0] => WP_Admin_Bar Object ) ) #3 /wp-includes/admin-bar.php (97): do_action_ref_array( $tag = admin_bar_menu, $args = Array( [0] => WP_Admin_Bar Object ) ) #4 /wp-includes/class-wp-hook.php (287): wp_admin_bar_render() #5 /wp-includes/class-wp-hook.php (311): WP_Hook->apply_filters( $value = EMPTY STRING, $args = Array( [0] => ) ) #6 /wp-includes/plugin.php (478): WP_Hook->do_action( $args = Array( [0] => ) ) #7 /wp-admin/admin-header.php (245): do_action( $tag = in_admin_header ) #8 /wp-admin/edit-form-blocks.php (420): require_once( /wp-admin/admin-header.php ) #9 /wp-admin/post-new.php (72): require( /wp-admin/edit-form-blocks.php ) Warning: wp.data.select( "core/editor" ).getBlocks is deprecated. Please use wp.data.select( "core/block-editor" ).getBlocks instead. URL: /wp-admin/post-new.php?post_type=page File: /wp-includes/js/dist/deprecated.min.js?ver=224 Line: 2
Note: See
TracTickets for help on using
tickets.