• Resolved elramos

    (@elramos)


    After our site auto-updated the terms and conditions plugin to 1.0.12 it began throwing the following error on the checkout page where terms & conditions are typically linked for viewing:

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method TACPP4_Terms_Conditions_Per_Product::add_checkout_per_product_terms() cannot be called statically in /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/class-wp-hook.php:307 Stack trace: #0 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #1 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #2 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/templates/checkout/payment.php(49): do_action('woocommerce_rev...') #3 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/usr/local/var/...') #4 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2357): wc_get_template('checkout/paymen...', Array) #5 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/class-wp-hook.php(307): woocommerce_checkout_payment('') #6 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #8 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/themes/flatsome-child/woocommerce/checkout/form-checkout.php(95): do_action('woocommerce_che...') #9 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/usr/local/var/...') #10 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(313): wc_get_template('checkout/form-c...', Array) #11 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(67): WC_Shortcode_Checkout::checkout() #12 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output('') #13 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper(Array, '') #14 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/shortcodes.php(356): WC_Shortcodes::checkout('', '', 'woocommerce_che...') #15 [internal function]: do_shortcode_tag(Array) #16 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(woocom...', 'do_shortcode_ta...', '[woocommerce_ch...') #17 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/class-wp-hook.php(307): do_shortcode('[woocommerce_ch...') #18 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters('[woocommerce_ch...', Array) #19 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/post-template.php(253): apply_filters('the_content', '<!-- wp:shortco...') #20 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/themes/flatsome-child/woocommerce/checkout/layouts/checkout.php(12): the_content() #21 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/template.php(772): require('/usr/local/var/...') #22 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/usr/local/var/...', false) #23 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-content/themes/flatsome/page-checkout.php(6): wc_get_template_part('checkout/layout...', false) #24 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/template-loader.php(106): include('/usr/local/var/...') #25 /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-blog-header.php(19): require_once('/usr/local/var/...') #26 /usr/local/var/www/Sites/created-by-couture.com/public_html/index.php(17): require('/usr/local/var/...') #27 {main} thrown in /usr/local/var/www/Sites/created-by-couture.com/public_html/wp-includes/class-wp-hook.php on line 307

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter elramos

    (@elramos)

    I’ve deactivated the plugin for now so that our customers can continue to check out their purchases.

    Plugin Author giannis4

    (@giannis4)

    Hi Elramos,

    Thank you for using our plugin and sorry for the inconvenience.

    Do you have a staging site I can see the problem in action?

    Thanks again,
    Giannis

    Thread Starter elramos

    (@elramos)

    I’ve created a staging version using the WP Staging plugin and re-enabled the plugin there. Accessing the staging site requires an Administrator login, however. I’ve created a guest Admin account for you to look at it. Please give me an email address to send you the login credentials.

    Thread Starter elramos

    (@elramos)

    I have emailed the login credentials to [email protected].

    Plugin Author giannis4

    (@giannis4)

    Hi Elramos,

    Please delete the staging site credentials. It is not allowed as per WordPress’s forum guidelines.

    Regarding the issue, I have managed to replicate it locally. It is caused by PHP 8.

    I’ll work on this and issue an update as soon as I have a stable working version.

    Best regards,
    Giannis

    Plugin Author giannis4

    (@giannis4)

    Hi Elramos,

    I have pushed an update that fixes the PHP 8 incompatibility (ver. 1.0.13).

    Please update your staging site to test if everything is working as needed and let me know.

    Best regards,
    Giannis

    Thread Starter elramos

    (@elramos)

    10.1.13 update works on the staging site! I have now re-enabled and updated the plugin on the live site, and all is well. Thank you!

    Staging site and its admin logins are now gone. Thanks again for the quick response!

    Plugin Author giannis4

    (@giannis4)

    Hi @elramos,

    Awesome! Great to hear that. I am glad I could help.

    I will mark this issue as resolved, and it would be really great if would add a rating to our plugin.

    Best regards,
    Giannis

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error with version 1.0.12’ is closed to new replies.