• I tried to duplicate a WooCommerce product, and it produced the following fatal error:

    PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /var/www/vhosts/ah/html/wp-content/plugins/multisite-post-duplicator/addons/bulkaction-mpd-addon.php:101
    Stack trace: 0 /var/www/vhosts/ah/html/wp-content/plugins/multisite-post-duplicator/addons/bulkaction-mpd-addon.php(101): array_map() 1 /var/www/vhosts/ah/html/wp-includes/class-wp-hook.php(324): mpd_bulk_action() 2 /var/www/vhosts/ah/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 3 /var/www/vhosts/ah/html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /var/www/vhosts/ah/html/wp-admin/admin.php(385): do_action() 5 /var/www/vhosts/ah/html/wp-admin/edit.php(10): require_once(‘…’) 6 {main}

    thrown in /var/www/vhosts/ah/html/wp-content/plugins/multisite-post-duplicator/addons/bulkaction-mpd-addon.php on line 101

    Only after deactivating multisite post duplicator, I could duplicate my product within the same site.

  • The topic ‘Fatal error when duplicating WooCommerce Product’ is closed to new replies.