• Resolved Vulcain

    (@guaranis)


    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-&gt;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-&gt;init()
    #5 /wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(49): WC_Payment_Gateways-&gt;__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-&gt;payment_gateways()
    #8 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(89): WooCommerce-&gt;__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-&gt;is_complete()
    #11 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(305): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments-&gt;can_view()
    #12 [internal function]: Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList-&gt;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-&gt;get_viewable_tasks()
    #15 /wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php(412): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList-&gt;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-&gt;apply_filters()
    #19 /wp-includes/plugin.php(517): WP_Hook-&gt;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)
  • Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @guaranis,

    Thank you for reaching out to WooCommerce.com Support!

    The error log you’ve shared indicates that there is a conflict, either by a custom code, plugin, or your active theme. The best way to determine this is to:

    • Temporarily switch your theme to Storefront or Twenty Twenty-Four
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    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 conflict.?You can find a more detailed explanation of how to do a conflict test here.

    Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or consider using a service like?Jetpack. If something goes wrong, you will be able to restore it.

    If you’ve tried all these steps and the problem persists, we would appreciate it if you could share a copy of the following:

    • System Status Report?which you can find via WooCommerce > Status > Get system report > Copy for support.
    • Fatal error logs?(if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via?https://gist.github.com/?and send the link here.?

    Let us know how that goes.

    Thanks!?

    Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hi,

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.