Critical Uncaught TypeError: call_user_func_array() Argument #1 ($callback) must
-
Hello,
I’ve been using Fluid Checkout for a little over a year now with no issues. Today, I customer contacted me and reported that our checkout page was broken. It was showing HTTP status code 500 near the bottom of the page and checkout was not loading correctly.
Upon inspecting the WooCommerce logs, I found the following critical messages. After thinking it may be related to Fluid Checkout, I disabled Fluid Checkout and was able to continue placing an order without issue.
I have not installed any new plugins. The issue has been occurring for 3 days, which may coincide with the version 3.2.0 version release. Using version 6.6.1 of WordPress and version 8.9.3 of WooCommerce. I cannot upgrade to version 9+ because our printing partners don’t support WooCommerce 9 yet. Do I need to revert to an older version of your plugin and disable automatic updates, or is this an unrelated issue?
Thank you!
Here is the logs from WooCommerce. It’s flooded the logs over and over. Disabling Fluid checkout makes it stop.
2024-08-05T00:09:06+00:00 Critical Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class Automattic\WooCommerce\Internal\Orders\OrderAttributionController does not have a method "stamp_checkout_html_element_once" in /home/*****/web/*****/public_html/wp-includes/class-wp-hook.php:324 ?
Additional context
{
? ? "error": {
? ? ? ? "type": 1,
? ? ? ? "file": "\/home\/*****\/web\/*****\/public_html\/wp-includes\/class-wp-hook.php",
? ? ? ? "line": 324
? ? },
? ? "backtrace": [
? ? ? ? "",
? ? ? ? "#0 \/home\/*****\/web\/*****\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()",
? ? ? ? "#1 \/home\/*****\/web\/*****\/public_html\/wp-includes\/plugin.php(517): WP_Hook->do_action()",
? ? ? ? "#2 \/home\/*****\/web\/*****\/public_html\/wp-content\/plugins\/fluid-checkout\/templates\/fc\/checkout-steps\/checkout\/form-checkout.php(73): do_action()",
? ? ? ? "#3 \/home\/*****\/web\/*****\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(345): include('\/home\/******/...')",
? ? ? ? "#4 \/home\/*****\/web\/*****\/public_html\/wp-content\/plugins\/woocommerce\/includes\/shortcodes\/class-wc-shortcode-checkout.php(372): wc_get_template()",
? ? ? ? "#5 \/home\/*****\/web\/*****\/public_html\/wp-content\/plugins\/woocommerce\/includes\/shortcodes\/class-wc-shortcode-checkout.php(69): WC_Shortcode_Checkout::checkout()",
? ? ? ? "#6 \/home\/*****\/web\/*****\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output()",
? ? ? ? "#7 \/home\/*****\/web\/*****\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper()",
? ? ? ? "#8 \/home\/*****\/web\/*****\/public_html\/wp-includes\/shortcodes.php(434): WC_Shortcodes::checkout()",
? ? ? ? "#9 [internal function]: do_shortcode_tag()",
? ? ? ? "#10 \/home\/*****\/web\/*****\/public_html\/wp-includes\/shortcodes.php(273): preg_replace_callback()",
? ? ? ? "#11 \/home\/*****\/web\/*****\/public_html\/wp-includes\/class-wp-hook.php(324): do_shortcode()",
? ? ? ? "#12 \/home\/*****\/web\/*****\/public_html\/wp-includes\/plugin.php(205): WP_Hook->apply_filters()",
? ? ? ? "#13 \/home\/*****\/web\/*****\/public_html\/wp-includes\/post-template.php(256): apply_filters()",
? ? ? ? "#14 \/home\/*****\/web\/*****\/public_html\/wp-content\/plugins\/fluid-checkout\/templates\/fc\/checkout-page-template\/checkout\/page-checkout.php(42): the_content()",
? ? ? ? "#15 \/home\/*****\/web\/*****\/public_html\/wp-includes\/template-loader.php(106): include('\/home\/******/...')",
? ? ? ? "#16 \/home\/*****\/web\/*****\/public_html\/wp-blog-header.php(19): require_once('\/home\/******/...')",
? ? ? ? "#17 \/home\/*****\/web\/*****\/public_html\/index.php(17): require('\/home\/******/...')",
? ? ? ? "#18 {main}",
? ? ? ? "thrown"
? ? ]
}
- The topic ‘Critical Uncaught TypeError: call_user_func_array() Argument #1 ($callback) must’ is closed to new replies.