• Resolved jatinder1987

    (@jatinder1987)


    This page is broken when I updated PHP from 7.4 to 8.0

    I checked the error logs and error is =====> PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "po_checkout_field" not found or invalid function name in /nas/content/live/rocknarbordev/wp-includes/class-wp-hook.php:307\nStack trace:\n#0 /nas/content/live/rocknarbordev/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)\n#1 /nas/content/live/rocknarbordev/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#2 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/templates/checkout/form-billing.php(44): do_action('woocommerce_aft...', Object(WC_Checkout))\n#3 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/nas/content/li...')\n#4 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(296): wc_get_template('checkout/form-b...', Array)\n#5 /nas/content/live/rocknarbordev/wp-includes/class-wp-hook.php(307): WC_Checkout->checkout_form_billing('')\n#6 /nas/content/live/rocknarbordev/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)\n#7 /nas/content/live/rocknarbordev/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#8 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/templates/checkout/form-checkout.php(40): do_action('woocommerce_che...')\n#9 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/nas/content/li...')\n#10 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(313): wc_get_template('checkout/form-c...', Array)\n#11 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(67): WC_Shortcode_Checkout::checkout()\n#12 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output('')\n#13 /nas/content/live/rocknarbordev/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper(Array, '')\n#14 /nas/content/live/rocknarbordev/wp-includes/shortcodes.php(356): WC_Shortcodes::checkout('', '', 'woocommerce_che...')\n#15 [internal function]: do_shortcode_tag(Array)\n#16 /nas/content/live/rocknarbordev/wp-includes/shortcodes.php(228): preg_replace_callback('/\\\\[(\\\\[?)(woocom...', 'do_shortcode_ta...', '[woocommerce_ch...')\n#17 /nas/content/live/rocknarbordev/wp-includes/class-wp-hook.php(307): do_shortcode('[woocommerce_ch...')\n#18 /nas/content/live/rocknarbordev/wp-includes/plugin.php(191): WP_Hook->apply_filters('[woocommerce_ch...', Array)\n#19 /nas/content/live/rocknarbordev/wp-includes/post-template.php(253): apply_filters('the_content', '[woocommerce_ch...')\n#20 /nas/content/live/rocknarbordev/wp-content/themes/piconsulting-child/page-strech-template.php(15): the_content()\n#21 /nas/content/live/rocknarbordev/wp-includes/template-loader.php(106): include('/nas/content/li...')\n#22 /nas/content/live/rocknarbordev/wp-blog-header.php(19): require_once('/nas/content/li...')\n#23 /nas/content/live/rocknarbordev/index.php(17): require('/nas/content/li...')\n#24 {main}\n thrown in /nas/content/live/rocknarbordev/wp-includes/class-wp-hook.php on line 307, referer: https://rocknarbordev.wpengine.com/cart/

    Can you please check the compatibility issue of woocommerce with PHP 8.0.

    Thnaks

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t think this is a PHP 8 issue.

    The error message tells us that a file in your child theme:
    page-strech-template.php
    is calling for a function: po_checkout_field
    which does not exist.

    To confirm, temporarily switch to your parent theme. I would expect the problem will not recur.

    Without access to the custom code in your child theme, its unlikely forum users can help. You’ll need to ask the developer of the functions in your child theme.

    Hi @jatinder1987

    Thank you for reaching out!

    This kind of problem is usually caused by a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Check if you are still getting the error.

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing the conflict. You can find a more detailed explanation on how to do a conflict test here.

    Before you start

    • First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    • Second, I would suggest installing a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community, and it allows you to disable plugins without affecting your current site visitors.
    • I hope this helps!

    Thread Starter jatinder1987

    (@jatinder1987)

    Thanks guys,

    There was conflict with 1 of the custom plugin developed by 1 of my team member.

    Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @jatinder1987 ,

    Glad you were able to locate the conflict. I’ll set this thread to resolved now, feel free to open a new thread if you need any more help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce Checkout Issue’ is closed to new replies.