• Resolved mbanta45

    (@mbanta45)


    Can someone help me to understand what these fatal errors are in my WooCommerce logs?

    2023-11-01T22:50:27+00:00 CRITICAL Uncaught WCPay\Vendor\League\Container\Exception\NotFoundException: Alias (WCPay\Internal\Service\DuplicatePaymentPreventionService) is not being managed by the container or delegates in /var/www/wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Container.php:194 Stack trace: #0 /var/www/wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Container.php(111): WCPay\Vendor\League\Container\Container->resolve('WCPay\\Internal\\...') #1 /var/www/wp-content/plugins/woocommerce-payments/src/Internal/DependencyManagement/ExtendedContainer.php(87): WCPay\Vendor\League\Container\Container->get('WCPay\\Internal\\...') #2 /var/www/wp-content/plugins/woocommerce-payments/src/Container.php(104): WCPay\Internal\DependencyManagement\ExtendedContainer->get('WCPay\\Internal\\...') #3 /var/www/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php(572): WCPay\Container->get('WCPay\\Internal\\...') #4 /var/www/wp-content/plugins/woocommerce-payments/woocommerce-payments.php(146): WC_Payments::init() #5 /var/www/wp-includes/class-wp-hook.php(310): wcpay_init('') #6 /var/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #7 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /var/www/wp-settings.php(495): do_action('plugins_loaded') #9 /var/www/wp-config.php(83): require_once('/var/www/wp-set...') #10 /var/www/wp-load.php(50): require_once('/var/www/wp-con...') #11 /var/www/wp-blog-header.php(13): require_once('/var/www/wp-loa...') #12 /var/www/index.php(17): require('/var/www/wp-blo...') #13 {main}

    Next WCPay\Vendor\League\Container\Exception\ContainerException: Alias (WCPay\Internal\Service\DuplicatePaymentPreventionService) is not being managed by the container or delegates in /var/www/wp-content/plugins/woocommerce-payments/src/Container.php:106 Stack trace: #0 /var/www/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php(572): WCPay\Container->get('WCPay\\Internal\\...') #1 /var/www/wp-content/plugins/woocommerce-payments/woocommerce-payments.php(146): WC_Payments::init() #2 /var/www/wp-includes/class-wp-hook.php(310): wcpay_init('') #3 /var/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #4 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /var/www/wp-settings.php(495): do_action('plugins_loaded') #6 /var/www/wp-config.php(83): require_once('/var/www/wp-set...') #7 /var/www/wp-load.php(50): require_once('/var/www/wp-con...') #8 /var/www/wp-blog-header.php(13): require_once('/var/www/wp-loa...') #9 /var/www/index.php(17): require('/var/www/wp-blo...') #10 {main} thrown in /var/www/wp-content/plugins/woocommerce-payments/src/Container.php on line 106

    2023-11-01T22:50:29+00:00 CRITICAL Uncaught WCPay\Vendor\League\Container\Exception\NotFoundException: Alias (WCPay\Internal\Service\DuplicatePaymentPreventionService) is not being managed by the container or delegates in /var/www/wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Container.php:194 Stack trace: #0 /var/www/wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Container.php(111): WCPay\Vendor\League\Container\Container->resolve('WCPay\\Internal\\...') #1 /var/www/wp-content/plugins/woocommerce-payments/src/Internal/DependencyManagement/ExtendedContainer.php(87): WCPay\Vendor\League\Container\Container->get('WCPay\\Internal\\...') #2 /var/www/wp-content/plugins/woocommerce-payments/src/Container.php(104): WCPay\Internal\DependencyManagement\ExtendedContainer->get('WCPay\\Internal\\...') #3 /var/www/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php(572): WCPay\Container->get('WCPay\\Internal\\...') #4 /var/www/wp-content/plugins/woocommerce-payments/woocommerce-payments.php(146): WC_Payments::init() #5 /var/www/wp-includes/class-wp-hook.php(310): wcpay_init('') #6 /var/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #7 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /var/www/wp-settings.php(495): do_action('plugins_loaded') #9 /var/www/wp-config.php(83): require_once('/var/www/wp-set...') #10 /var/www/wp-load.php(50): require_once('/var/www/wp-con...') #11 /var/www/wp-admin/admin.php(34): require_once('/var/www/wp-loa...') #12 {main}

    Next WCPay\Vendor\League\Container\Exception\ContainerException: Alias (WCPay\Internal\Service\DuplicatePaymentPreventionService) is not being managed by the container or delegates in /var/www/wp-content/plugins/woocommerce-payments/src/Container.php:106 Stack trace: #0 /var/www/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php(572): WCPay\Container->get('WCPay\\Internal\\...') #1 /var/www/wp-content/plugins/woocommerce-payments/woocommerce-payments.php(146): WC_Payments::init() #2 /var/www/wp-includes/class-wp-hook.php(310): wcpay_init('') #3 /var/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #4 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /var/www/wp-settings.php(495): do_action('plugins_loaded') #6 /var/www/wp-config.php(83): require_once('/var/www/wp-set...') #7 /var/www/wp-load.php(50): require_once('/var/www/wp-con...') #8 /var/www/wp-admin/admin.php(34): require_once('/var/www/wp-loa...') #9 {main} thrown in /var/www/wp-content/plugins/woocommerce-payments/src/Container.php on line 106

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mbanta45

    Thanks for reaching out!

    Can someone help me to understand what these fatal errors are in my WooCommerce logs?

    +

    CRITICAL Uncaught WCPay\Vendor\League\Container\Exception\NotFoundException: Alias (WCPay\Internal\Service\DuplicatePaymentPreventionService) is not being managed by the container or delegates in /var/www/wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Container.php:194

    This error message is related to a problem with the WooCommerce Payments plugin for WordPress.

    The error occurred because the system could not find a key service DuplicatePaymentPreventionService while trying to run. In this case, the not-found service’s job is likely to prevent double charging of customers, hence the name DuplicatePaymentPreventionService.

    The system is looking for this service in a Container (much like a toolbox for services and dependencies) and it’s saying that DuplicatePaymentPreventionService is either not there, or not being tracked properly by the container.

    The file path at the end of the error message /var/www/wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Container.php:194, is just showing the exact location of the error.

    I hope I’ve explained this clearly. Meanwhile, would you be able to share any more details about the issue that triggered this fatal error log? A step-by-step flow might help us identify any pain points.

    You could also provide us with a clear screenshot of the error you encountered as well.

    If you don’t already have a screenshot service installed, you can try https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Furthermore, please share with us the System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.

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

    Once we have more information, we’ll be able to further assist you.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help Understanding Fatal Error?’ is closed to new replies.