• Resolved gb24

    (@gb24)


    When the WC Paypal Payments plugin is activated, basic calls to the WordPress REST API such as those below fail with the message “There has been a critical error on this website.”

    https://mydomaincom/wp-json
    https://mydomaincom/wp-json/wp/v2/posts

    If I deactivate the Paypal Payments plugin, these REST API calls succeed.

    I’ve also tried deactivating all plugins except WooCommerce and Paypal Payments with the same results.

    There are no PHP errors in the error log.

    WooCommerce 7.0.0
    WooCommerce Paypal Payments 1.9.4
    WordPress 6.0.3

    Is there any way to debug what is happening?

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gb24

    this could be related to a conflict we have seen with WooCommerce. Please confirm this by checking logs and see if you also have this entry show up:

    CRITICAL Declaration of Dhii\Container\ProxyContainer::has($key) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /html/wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/ProxyContainer.php on line 50

    There seems to be a compatibility issue between WooCommerce and PayPal that we believe was introduce by WooCommerce. We are trying to find a workaround so that this can work until we work out a permanent fix with WooCommerce.

    I have linked this ticket to the bug, so you should get updates if any fix becomes available. Please confirm if your issue is related.

    Kind regards,
    Joost

    Thread Starter gb24

    (@gb24)

    Thank you for your reply. I do not see these or other errors in the logs.

    Note also that I get the “critical error on this website” message on the WooCommerce > System status tab.

    Could you provide a public link to your bug report on this issue?

    Thank you.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gb24

    We do not yet have a public GitHub case open for this, and are working on our internal Jira ticket for the time being. If you want, you can open a ticket with us and provide screenshot and logs related to this issue, and we can review and compare this for you with our known issues?

    You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/ (please add the URL of this thread in the ticket as well)

    Kind regards,
    Joost

    Thread Starter gb24

    (@gb24)

    Hello @joostvandevijver

    I have traced this issue to a conflicting plugin. When that plugin is disabled, the REST API calls work fine. I am working with that plugin support contact.

    Please consider this issue resolved.

    Thank you.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gb24

    Good to hear this is resolved, and thank you for letting us know. Could you still let us know what plugin was the cause, so we can add it to our knowledge base?

    Kind regards,
    Joost

    Thread Starter gb24

    (@gb24)

    Hello @joostvandevijver

    There seems to be a conflict with the WP RSS Aggregator plugin on our multisite which affects the WordPress REST API. When that plugin is disabled, REST API calls work fine.

    Note that I am unable to re-create this issue on another multisite environment.

    Thank you.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gb24

    Ok, thank you for the details. I will add this plugin to our known conflict list.
    Let me know if you find out other details or workarounds for this issue in the future.

    Thanks again!

    Kind regards,
    Joost

    I have the same conflict , but I don’t have WP RSS Aggregator plugin. WordPress REST API problems with WC PayPal Payments in on, when a same a post or page “Publishing Failed” error in WordPress!

    From Site Health:

    The REST API encountered an unexpected resultPerformance

    The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.

    When testing the REST API, an unexpected result was returned:

    REST API Endpoint: https://www.staging2.airemotions.com/wp-json/wp/v2/types/post?context=edit
    REST API Response: (500) Internal Server Error

    With WooCommerce plugin activated plus WC PayPal Payments lat upgrade, the result is = REST API Response: (500) Internal Server Error

    Hi,

    Same problem REST API Response: (500) Internal Server Error when your plugin is activated
    Help please
    Best regards
    Thierry

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WordPress REST API problems with WC PayPal Payments’ is closed to new replies.