• Resolved tuomonurkkala

    (@tuomonurkkala)


    Hi there! I just updated my site to wordpress 6.2.2 and my site crashed and I got these error logs from your plugin:

    2023-05-23T23:37:32+00:00 CRITICAL Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object in /home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumCalculatedProps.php:479
    Stack trace: 0 /home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumCalculatedProps.php(479): call_user_func() 1 /home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Inc/Helpers.php(2054): Atum\Components\AtumCalculatedProps::maybe_update_variable_calc_prop() 2 /home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumCalculatedProps.php(281): Atum\Inc\Helpers::get_product_stock_on_hold() 3 /home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumCalculatedProps.php(182): Atum\Components\AtumCalculatedProps::update_atum_sales_calc_props() 4 [internal function]: Atum\Components\AtumCalculatedProps::update_atum_sales_calc_props_deferred_hook() 5 /home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumQueues.php(543): call_user_func() 6 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(308): Atum\Components\AtumQueues->handle_async_hooks() 7 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 8 /home2/sukkianet/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 9 /home2/sukkianet/public_html/wp-admin/admin-ajax.php(203): do_action() 10 {main} thrown t?ss? /home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumCalculatedProps.php rivill? 479

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Salva Machi

    (@salvamb)

    Hi @tuomonurkkala

    At first sight, it seems there is something wrong in your database.
    In order to fix that issue asap, please follow these steps:

    1. Open the file “/home2/sukkianet/public_html/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumCalculatedProps.php”
    2. Go to line 479
    3. Replace that line with this code:
    if ( $variation_product instanceof \WC_Product && is_callable( array( $variation_product, "get_$prop" ) ) ) {
        $variable_value += call_user_func( array( $variation_product, "get_$prop" ) );
    }

    I hope this helps.

    Best Regards,
    Salva.

    Thread Starter tuomonurkkala

    (@tuomonurkkala)

    Thank you! At the same time I got Fatal errors from Google listings & ads so I will wait for their answers as well. When I get more information from them I will test these codes.

    Plugin Author Salva Machi

    (@salvamb)

    OK. No problem

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Atum Fatal errors’ is closed to new replies.