Fatal error trying to activate this plugin
-
i setup the woocommerce block for the checkout page once i activate this plugin it crashes with fatal error. see below. I cant even edit the page either now as i get the same error. this is on php 7 and php 8
let me know thanks!
Fatal error: Uncaught TypeError: strtolower(): Argument #1 ($string) must be of type string, null given in /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1453 Stack trace: #0 /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(1453): strtolower(NULL) #1 /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(909): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->intent() #2 /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(831): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->url_params() #3 /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-blocks/src/PayPalPaymentMethod.php(184): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->script_data() #4 /wp-content/plugins/woocommerce/src/Blocks/Payments/PaymentMethodRegistry.php(62): WooCommerce\PayPalCommerce\Blocks\PayPalPaymentMethod->get_payment_method_data() #5 /wp-content/plugins/woocommerce/src/Blocks/Payments/Api.php(92): Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_registered_script_data() #6/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_data(”) #7 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #8 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php(548): do_action(‘woocommerce_blo…’) #10 /wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(405): Automattic\WooCommerce\Blocks\BlockTypes\Checkout->enqueue_data(Array) #11 /plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php(204): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets(Array, ‘\n<div class=”wp…’, Object(WP_Block)) #12 /wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(96): Automattic\WooCommerce\Blocks\BlockTypes\Checkout->enqueue_assets(Array, ‘\n<div class=”wp…’, Object(WP_Block)) #13 /wp-includes/class-wp-block.php(586): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, ‘\n<div class=”wp…’, Object(WP_Block)) #14 /wp-includes/blocks.php(2358): WP_Block->render() #15 /wp-includes/blocks.php(2410): render_block(Array) #16 /wp-includes/class-wp-hook.php(324): do_blocks(‘<!– wp:woocomm…’) #17 /wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<!– wp:woocomm…’, Array) #18 /wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<!– wp:woocomm…’) #19 /wp-content/themes/Wordpress Theme/template-parts/content-page.php(33): the_content() #20 /wp-includes/template.php(812): require(‘/…’) #21 /wp-includes/template.php(745): load_template(‘/home/…’, false, Array) #22 /wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #23wp-content/themes/Wordpress Theme/page.php(31): get_template_part(‘template-parts/…’, ‘page’) #24 wp-includes/template-loader.php(106): include(‘/home//…’) #25 /wp-blog-header.php(19): require_once(‘/home//…’) #26 /index.php(17): require(‘/home//…’) #27 {main} thrown in /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1453
The page I need help with: [log in to see the link]
The topic ‘Fatal error trying to activate this plugin’ is closed to new replies.