WordPress.org

Ready to get started?Download WordPress

Forums

Admin Menu Tree Page View
PHP Warning on Batch Edit (1 post)

  1. serendipitic
    Member
    Posted 2 years ago #

    Hi!

    I just stumbled upon a problem with your plugin when using the batch edit functionality of WordPress (Pages > All Pages > Check one or more Pages > Change Bulk Actions to Edit > Apply). When I save the changes, a blank page appears with lots of PHP warnings:

    Warning: Illegal offset type in isset or empty in /XXX/wp-includes/cache.php on line 356

    Warning: Illegal offset type in isset or empty in /XXX/wp-includes/cache.php on line 364

    Warning: Illegal offset type in /XXX/wp-includes/cache.php on line 367

    It seems that the cache::get method of WordPress is called using an array as ID:

    #0 WP_Object_Cache->get(Array ([0] => 13), posts) called at [/XXX/wp-includes/cache.php:305]
    #1 WP_Object_Cache->delete(Array ([0] => 13), posts) called at [/XXX/wp-includes/cache.php:60]
    #2 wp_cache_delete(Array ([0] => 13), posts) called at [/XXX/wp-content/plugins/admin-menu-tree-page-view/index.php:130]
    #3 admin_menu_tree_page_view_get_pages(Array ([echo] => 0,[sort_order] => ASC,[sort_column] => menu_order,[parent] => 0)) called at [/XXX/wp-content/plugins/admin-menu-tree-page-view/index.php:230]
    #4 admin_menu_tree_page_view_admin_menu() called at [(null):0]
    #5 call_user_func_array(admin_menu_tree_page_view_admin_menu, Array ([0] => )) called at [/XXX/wp-includes/plugin.php:405]
    #6 do_action(admin_menu, ) called at [/XXX/wp-admin/includes/menu.php:97]
    #7 require_once(/XXX/wp-admin/includes/menu.php) called at [/XXX/wp-admin/menu.php:262]
    #8 require(/XXX/wp-admin/menu.php) called at [/XXX/wp-admin/admin.php:106]
    #9 require_once(/XXX/wp-admin/admin.php) called at [/XXX/wp-admin/edit.php:10]

    I hope that helps to fix that bug!

    Best regards

    http://wordpress.org/extend/plugins/admin-menu-tree-page-view/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic