• Hi there,

    seems like your plugins is causing some issues whenever capabilities are updated via $wp_roles->add_cap(). Stack:

    PHP Fatal error:  Uncaught TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given in /xxx/wp-includes/l10n.php:229
    Stack trace:
    #0 /xxx/wp-includes/l10n.php(229): strrpos(Array, '|')
    #1 /xxx/l10n.php(1353): before_last_bar(Array)
    #2 /xxx/wp-content/plugins/cleverreach-wc/Components/Services/BusinessLogic/Tag/class-tag-service.php(131): translate_user_role(Array)
    #3 /xxx/wp-content/plugins/cleverreach-wc/Components/HookHandlers/class-option-changed-handler.php(95): CleverReach\WooCommerce\Components\Services\BusinessLogic\Tag\Tag_Service->get_origin_tags_by_roles(Array)
    #4 /xxx/wp-content/plugins/cleverreach-wc/Components/HookHandlers/class-option-changed-handler.php(53): CleverReach\WooCommerce\Components\HookHandlers\Option_Changed_Handler->handle_roles_change(Array, Array)
    #5 /xxx/wp-includes/class-wp-hook.php(308): CleverReach\WooCommerce\Components\HookHandlers\Option_Changed_Handler->handle('Lg5uT_user_role...', Array, Array)
    #6 /xxx/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #7 /xxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #8 /xxx/wp-includes/option.php(526): do_action('update_option', 'Lg5uT_user_role...', Array, Array)
    #9 /xxx/wp-includes/class-wp-roles.php(217): update_option('Lg5uT_user_role...', Array)
    #10 /xxx/wp-content/plugins/woocommerce-germanized-pro/includes/class-wc-gzdp-install.php(76): WP_Roles->add_cap('shop_manager', 'edit_commercial...')

    Could you please fix this error as it causes errors, e.g. while updating our core plugin.

    Best,
    Dennis

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP fatal error during capability update’ is closed to new replies.