• Resolved liananov

    (@liananov)


    Hello,
    I’ve updated the PHP version to 8.2, the WordPress version to 6.8.1, and the “WooCommerce PayPal Payments” plugin to version 3.0.7.
    After the update, an error started occurring when creating new posts.
    Here is the error:

    [03-Jul-2025 15:20:46 UTC] PHP Fatal error:  Uncaught LogicException: No PPCP container, probably called too early when the plugin is not initialized yet. in /wp-content/plugins/woocommerce-paypal-payments/src/PPCP.php:34
    Stack trace:
    #0 /wp-content/plugins/woocommerce-paypal-payments/woocommerce-paypal-payments.php(75): WooCommerce\PayPalCommerce\PPCP::container()
    #1 /wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\{closure}()
    #2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /wp-settings.php(727): do_action()
    #5 /wp-config.php(249): require_once('...')
    #6 /wp-load.php(50): require_once('...')
    #7 /wp-blog-header.php(13): require_once('...')
    #8 /index.php(18): require('...')
    #9 {main}
    thrown in /wp-content/plugins/woocommerce-paypal-payments/src/PPCP.php on line 34

    What might be causing this error?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @liananov

    Thanks for reporting this. It’s a bit strange, as the same error can also be triggered if WooCommerce is disabled and only PayPal Payments is enable, something that normally shouldn’t happen but is possible in certain edge cases.

    To narrow this down, please try the following:

    1. Disable all plugins except WooCommerce and PayPal Payments.
      Then try creating a new post again. Most likely, the problem won’t occur.
    2. If everything works fine, start re-enabling the other plugins one by one.
      After enabling each plugin, try to create a new post. When the error returns, you’ll know which plugin is triggering it.
    3. Once you find the conflicting plugin, let us know which one it is. We’ll take a closer look and suggest next steps or pass it to the developers if needed.

    Let me know what you find.

    Kind Regards,
    Krystian

    Thread Starter liananov

    (@liananov)

    Thank you very much for your quick reply.
    We’re using the ‘Plugin Organizer’ plugin and have disabled some plugins in our posts, including WooCommerce.
    The strange thing is that the error is triggered only on new posts, even though they use the same settings as the old ones.
    Anyway, thanks again for your help!

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @liananov

    No worries, happy to help, and glad I could share some tips to sort it out.

    Kind regards,
    Krystian

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught Exception: No PPCP container’ is closed to new replies.