• AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “_update_posts_count_on_transition_post_status” not found or invalid function name in?/var/www/vhosts/******.gr/httpdocs/wp-includes/class-wp-hook.php:308\

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter easycomtech

    (@easycomtech)

    Hi, this error is created where, i run the wp all import

    Could you help me?

    Plugin Author WP All Import

    (@wpallimport)

    Hey @easycomtech,

    Inside of:

    All Import -> Manage Imports -> Settings -> Configure Advanced Settings

    Please try enabling “Increase speed by disabling do_action calls in wp_insert_post during import” for this import & running it again:

    Thread Starter easycomtech

    (@easycomtech)

    This error exists in both conditions ( checked or not checked).

    Thread Starter easycomtech

    (@easycomtech)

    Hi,

    if I comment the line add_action( ‘transition_post_status’, ‘_update_posts_count_on_transition_post_status’, 10, 3 ); in pmxi_after_xml_import.php the error is not appread anymore.

    Is it safe to comment out this action?

    Thank you

    Hello,

    I have the same problem, both checked and unchecked.

    Any ideas?

    Thanks

    I got the same error, is this still being investigated ? Exact same line erroring.

    Hello,

    I’m also having this issue, my import is running once a day and in the logs I see that I get this error everyday. The import is also adding a blank proudct for some reason, the timestamp is exactly the same as the error time when the product is being created. The blank products are being put as “published” (real new products are set to draft) automatically everyday so that is quite annoying. How can I fix this?

    We also get the one “blanc” Product after each run

    Plugin Author WP All Import

    (@wpallimport)

    Hi @easycomtech,

    My apologies for missing this one.

    if I comment the line add_action( ‘transition_post_status’, ‘_update_posts_count_on_transition_post_status’, 10, 3 ); in pmxi_after_xml_import.php the error is not appread anymore.

    Is it safe to comment out this action?

    I would suggest that we look into a more permanent fix for this.

    That said, I’m not able to replicate the issue on my test sites, so can you please open a support request at https://www.wpallimport.com/support/ with more details about this issue? We’ll have to run tests in an environment where this is happening in order to understand what’s going on. Also, in the support request, please include a link to this forum thread for reference.

    Thread Starter easycomtech

    (@easycomtech)

    Hi,

    I found the function which appearing the error:

    function after_xml_import( $import_id, $import ) {
    $admin = new WooCommerce_Single_Variations_Admin(‘plugin’, ‘1.3.19’);
    $admin->update_variations(false, true);
    $admin->reset_transients(false);
    }
    add_action( ‘pmxi_after_xml_import’, ‘after_xml_import’, 10, 2 );

    Related to this article: https://www.welaunch.io/en/knowledge-base/faq/init-variations-after-wp-all-import/

    Could you help us?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘AH01071: Got error ‘PHP message: PHP Fatal error’ is closed to new replies.