• The plugin causes woocommerce admin’s dashboard to go blank with the error message:

    react-dom.min.js?ver=16.9.0:103 TypeError: Cannot read property ‘classList’ of null

    I’ve tried changing the load order of the plugins and setting a different priority in admin-menu.php since commenting out this line fixes it.

    add_filter( ‘parent_file’, ‘amg_organize_menu’, 10, 1 );

    It seems the plugin is either clearing an array that wca needs or one of those global vars share the same name

    • This topic was modified 4 years, 11 months ago by hookedg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hookedg

    (@hookedg)

    Update:

    I’ve had some success by replacing line 4 in admin-menu.php from:

    add_filter( ‘parent_file’, ‘amg_organize_menu’, 10, 1 );

    to:

    add_filter('custom_menu_order', '__return_true');
    add_filter('menu_order', 'amg_organize_menu', 10, 1);

    and line 129 to:

    return $menu[0];

    Just need to fix the permissions error on some pages now. I guess we need to attach an array of permissions aswell. If you return the $menu array before you unset some of it’s keys the permissions error goes away

    • This reply was modified 4 years, 11 months ago by hookedg.
    • This reply was modified 4 years, 11 months ago by hookedg.
    • This reply was modified 4 years, 11 months ago by hookedg.
    • This reply was modified 4 years, 11 months ago by hookedg.
    Thread Starter hookedg

    (@hookedg)

    Update2:

    Found the missing menu item permissions in the $submenu array. Need to know how to combine these in the correct format.

    • This reply was modified 4 years, 11 months ago by hookedg.
    • This reply was modified 4 years, 11 months ago by hookedg.
    • This reply was modified 4 years, 11 months ago by hookedg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘conflict with woocommerce admin’ is closed to new replies.