• Resolved easycomtech

    (@easycomtech)


    Hi,

    i am getting the following error at the end of the import proccess.

    AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WCML_Synchronize_Product_Data does not have a method “delete_empty_post_meta_for_translations” in /var/www/vhosts//httpdocs/wp-includes/class-wp-hook.php:312\nStack trace:\n#0 /var/www/vhosts//httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#1 /var/www/vhosts//httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#2 /var/www/vhosts//httpdocs/wp-includes/meta.php(528): do_action()\n#3 /var/www/vhosts//httpdocs/wp-includes/post.php(2496): delete_metadata()\n#4 /var/www/vhosts//httpdocs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php(602): delete_post_meta()\n#5 /var/www/vhosts/****/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-data-store.php

    Could you help us?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @easycomtech,

    PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WCML_Synchronize_Product_Data does not have a method “delete_empty_post_meta_for_translations”

    This is likely caused by the WPML plugin because that’s where the “WCML_Synchronize_Product_Data” class comes from. Please contact their support team about this and let me know what you find out.

    Thread Starter easycomtech

    (@easycomtech)

    Hi,

    they suggested the solution in the following article:

    https://wpml.org/errata/wpml-all-import-and-php-8-fatal-error-uncaught-typeerror-call_user_func_array-when-importing-products/

    1. Open the …/wp-content/plugins/wpml-all-import/classes/WCML.php file.
    2. Look for line 35 and comment it out:1//remove_action( 'deleted_post_meta', [ $WCMLSynchronizeProductData, 'delete_empty_post_meta_for_translations' ], 10, 3 );
    3. Do the same with line 46:1//add_action( 'deleted_post_meta', [ $this->getWCMLSynchronizeProductData(), 'delete_empty_post_meta_for_translations'
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error after import wpallimport’ is closed to new replies.