• Resolved collectiblenentertainment

    (@collectiblenentertainment)


    Got an email from WordPress saying that this plugin is no longer working. Need help addressing the issue, I am inexperienced in handling stuff like this.

    “WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Braintree for WooCommerce Payment Gateway.

    First, visit your website (https://collectibleentertainment.com/) and check for any visible issues. Next, visit the page where the error was caught (https://collectibleentertainment.com/wp-admin/admin-ajax.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    When seeking help with this issue, you may be asked for some of the following information:

    WordPress version 6.6.2

    Active theme: Primary Child Theme (version 1.7.12.1.1697127012)

    Current plugin: Braintree for WooCommerce Payment Gateway (version 3.2.0)

    PHP version 8.1.29″

    Error Details
    =============
    An error of type E_ERROR was caused in line 51 of the file /srv/htdocs/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-blocks-support.php. Error message: Uncaught Error: Call to a member function is_available() on null in /srv/htdocs/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-blocks-support.php:51
    Stack trace:
    #0 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/Payments/PaymentMethodRegistry.php(28): WC_Gateway_Braintree_Blocks_Support->is_active()
    #1 [internal function]: Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->Automattic\WooCommerce\Blocks\Payments\{closure}(Object(WC_Gateway_Braintree_PayPal_Blocks_Support))
    #2 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/Payments/PaymentMethodRegistry.php(29): array_filter(Array, Object(Closure))
    #3 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/Payments/PaymentMethodRegistry.php(40): Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_active_registered()
    #4 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/Payments/Api.php(65): Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_active_payment_method_script_dependencies()
    #5 /wordpress/core/6.6.2/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_dependencies(Array, 'wc-cart-block')
    #6 /wordpress/core/6.6.2/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #7 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/Assets/Api.php(275): apply_filters('woocommerce_blo...', Array, 'wc-cart-block')
    #8 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/BlockTypes/AbstractBlock.php(141): Automattic\WooCommerce\Blocks\Assets\Api->register_script('wc-cart-block', 'assets/client/b...', Array, true)
    #9 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/BlockTypes/Cart.php(270): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->register_block_type_assets()
    #10 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/BlockTypes/AbstractBlock.php(125): Automattic\WooCommerce\Blocks\BlockTypes\Cart->register_block_type_assets()
    #11 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/BlockTypes/Cart.php(34): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->initialize()
    #12 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/BlockTypes/AbstractBlock.php(71): Automattic\WooCommerce\Blocks\BlockTypes\Cart->initialize()
    #13 /wordpress/plugins/woocommerce/9.3.1/src/Blocks/BlockTypesController.php(153): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->__construct(Object(Automattic\WooCommerce\Blocks\Assets\Api), Object(Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry), Object(Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry))
    #14 /wordpress/core/6.6.2/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks('')
    #15 /wordpress/core/6.6.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #16 /wordpress/core/6.6.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #17 /wordpress/core/6.6.2/wp-settings.php(700): do_action('init')
    #18 /srv/htdocs/wp-config.php(73): require_once('/wordpress/core...')
    #19 /wordpress/core/6.6.2/wp-load.php(55): require_once('/srv/htdocs/wp-...')
    #20 /wordpress/core/6.6.2/wp-admin/admin-ajax.php(22): require_once('/wordpress/core...')
    #21 {main}
    thrown
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @collectiblenentertainment

    The error message indicates a problem in the file class-wc-gateway-braintree-blocks-support.php on line 51, where a function calls a method on a null object. I tried replicating the error on my testing site using WooCommerce 9.3.1 and Braintree for WooCommerce Payment Gateway 3.2.0, but I couldn’t. I tested using PHP 8.1.27, 8.2.15, Storefront, and the Twenty Twenty-four theme.

    However, this could be due to several reasons, such as a conflict with another plugin, an issue with your theme, or the plugin not being compatible with the version of PHP your site is using.

    Here are a few steps you can take to resolve this issue:

    • Ensure that you’re using the latest version of the Braintree for WooCommerce Payment Gateway plugin. Plugin updates often include bug fixes that might resolve the issue you’re experiencing.
    • Disable and Re-enable the Plugin. Sometimes, simply deactivating and reactivating the plugin can fix the issue.
    • Deactivate all other plugins on your site, then reactivate them one by one, checking each time to see if the issue reoccurs. This can help you identify if another plugin is causing a conflict.
    • Temporarily switch your theme to a default WordPress theme like Twenty Twenty-Four. If the issue doesn’t occur on the default theme, the problem might be with your current theme.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter collectiblenentertainment

    (@collectiblenentertainment)

    Hello there,

    Thank you for your detailed response. I will be trying those options.

    Will update with results.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @collectiblenentertainment

    That sounds like a plan. Great to hear! Feel free to follow up if you still need help.

    Have a good one!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin no longer working’ is closed to new replies.