WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Shop Manager Role Error (2 posts)

  1. purplesea
    Member
    Posted 2 years ago #

    I installed Woocommerce and assigned Shop Manager role to an user ID, but when logging in with Shop Manager role, I see bunch of errors in header of admin page and I see WooComerce menu on left but I don't see Product menu. So I can't manage products with "Shop Manager Role".

    Errors are as below. Does anyone know how to fix this issue?
    I haven't changed anything with wordpress and Woocommerce and both of them are the latest versions.

    -----------------------------------------------------------------------
    Warning: array_search() expects parameter 2 to be array, null given in C:....\wp-content\plugins\woocommerce\admin\woocommerce-admin-init.php on line 378

    1 0.0006 734656 {main}( ) ..\index.php:0
    2 0.0013 851928 require_once( 'C:\...\wp-admin\admin.php' ) ..\index.php:10
    3 0.5792 60749768 require( 'C:...\wp-admin\menu.php' ) ..\admin.php:106
    4 0.9374 61136920 require_once( 'C:...\wp-admin\includes\menu.php' ) ..\menu.php:233
    5 1.0331 61370728 apply_filters( ) ..\menu.php:192
    6 1.0388 61372208 call_user_func_array ( ) ..\plugin.php:170
    7 1.0388 61372240 woocommerce_admin_menu_order( ) ..\plugin.php:170
    8 1.0388 61372584 array_search ( ) ..\woocommerce-admin-init.php:378

    Warning: array_search() expects parameter 2 to be array, null given in C:...\wp-content\plugins\woocommerce\admin\woocommerce-admin-init.php on line 381
    Call Stack
    # Time Memory Function Location
    1 0.0011 865880 {main}( ) ..\edit.php:0
    2 0.0017 983152 require_once( 'C:...\wp-admin\admin.php' ) ..\edit.php:10
    3 0.5858 61001656 require( 'C:...\wp-admin\menu.php' ) ..\admin.php:106
    4 0.6271 61319056 require_once( 'C:...\wp-admin\includes\menu.php' ) ..\menu.php:233
    5 0.7411 61561648 apply_filters( ) ..\menu.php:192
    6 0.7471 61563128 call_user_func_array ( ) ..\plugin.php:170
    7 0.7471 61563160 woocommerce_admin_menu_order( ) ..\plugin.php:170
    8 0.7474 61563560 array_search ( ) ..\woocommerce-admin-init.php:381

    Warning: Invalid argument supplied for foreach() in C:...\wp-content\plugins\woocommerce\admin\woocommerce-admin-init.php on line 384
    Call Stack
    # Time Memory Function Location
    1 0.0011 865880 {main}( ) ..\edit.php:0
    2 0.0017 983152 require_once( 'C:...\wp-admin\admin.php' ) ..\edit.php:10
    3 0.5858 61001656 require( 'C:\...\wp-admin\menu.php' ) ..\admin.php:106
    4 0.6271 61319056 require_once( 'C:\...\wp-admin\includes\menu.php' ) ..\menu.php:233
    5 0.7411 61561648 apply_filters( ) ..\menu.php:192
    6 0.7471 61563128 call_user_func_array ( ) ..\plugin.php:170
    7 0.7471 61563160 woocommerce_admin_menu_order( ) ..\plugin.php:170

    -----------------------------------------------------------------------

    http://wordpress.org/extend/plugins/woocommerce/

  2. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in 1.6.2

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic