Payment page error
-
Nothing works anymore, I cannot edit and save pages in the gutenberg editor. I thought it was the theme so I installed a new test site with only the hello theme and woocommerce and I still have the problem. It is working only when I disable woocommerce. “In this case, WordPress caught an error with one of your plugins, WooCommerce.”
For what I see the problem is in the page /wp-admin/admin.php?page=wc-settings&tab=checkout
in php 7.4
<b>Warning</b>: A non-numeric value encountered in <b>/wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php</b> on line <b>88</b><br />
in php 8.0 / 8.1 / 8.2
php 8.0 / 8.1 / 8.2
<b>Fatal error</b>: Uncaught TypeError: Unsupported operand types: string - int in /wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php:88
Stack trace:
#0 /wp-includes/class-wp-hook.php(326): Automattic\WooCommerce\Internal\Admin\WCPayPromotion\Init::set_gateway_top_of_list()
#1 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /wp-includes/option.php(247): apply_filters()
#3 /wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(97): get_option()
#4 /wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(76): WC_Payment_Gateways->init()
#5 /wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(49): WC_Payment_Gateways->__construct()
#6 /wp-content/plugins/woocommerce/includes/class-woocommerce.php(1059): WC_Payment_Gateways::instance()
#7 /wp-content/plugins/woocommerce/includes/class-woocommerce.php(189): WooCommerce->payment_gateways()
#8 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(89): WooCommerce->__get()
#9 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(67): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Payments::has_gateways()
#10 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/WooCommercePayments.php(106): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Payments->is_complete()
#11 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(305): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments->can_view()
#12 [internal function]: Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->Automattic\WooCommerce\Admin\Features\OnboardingTasks\{closure}()
#13 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(306): array_filter()
#14 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(240): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->get_viewable_tasks()
#15 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php(412): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->is_complete()
#16 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php(434): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists::setup_tasks_remaining()
#17 /wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists::menu_task_count()
#18 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#19 /wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /wp-admin/includes/menu.php(161): do_action()
#21 /wp-admin/menu.php(422): require_once('...')
#22 /wp-admin/admin.php(158): require('...')
#23 {main}
thrown in <b>/wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php</b> on line <b>88</b><br />I tried adding also the woopayment plugin but same issue.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.