• Resolved Thierry-81

    (@thierry-81)


    Hi,
    The topic “WordPress REST API problems with WC PayPal Payments” is tagged “resolved” but we have the same problem and we don’t use th WP RSS Aggregator plugin.
    From “Site Health” in WP :
    “The REST API encountered an unexpected result…
    REST API Response: (500) Internal Server Error”

    When your plugin is disabled, the REST API calls work fine

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

    (@joostvandevijver)

    Hello @thierry-81

    Thank you for opening this new thread, we are here to help.
    The previous thread, you mentioned, we opened by a merchant that got his situation resolved by deactivating the plugin, WP RSS Aggregator.

    In your case this is not the solution, so the issue is not the same. This is why we ask everybody to open a new thread if the issue is not 100% the same (this is also mentioned in our support guide).

    However, it seems indeed the case that something else is causing this issue, and we would like to take a look at your situation as well.
    Besides deactivating our plugin, did you perform any other tests? Did you try onboarding the account again to refresh the REST API? Have you done any further conflict testing? We would also like to see your system report and the full error you saw to check for known conflicts.

    If you don’t feel comfortable sharing those details on a public forum, please open a ticket with our service desk. 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)

    Pending your response.

    Kind regards,
    Joost

    Thread Starter Thierry-81

    (@thierry-81)

    Hi Joost,
    I tried a lot of things before opening this ticket.
    And it seems I’m not the only one in this case (look at the ticket marked as solved)
    Last try : I cleared the cache, opened a new session, and disabled everything except woocommerce and your plugin. The error is now present ( When testing the REST API, an unexpected result was returned: REST API endpoint: https://lafermedevers.fr/wp-json/wp/v2/types/post?context=edit
    REST API response: (500) Internal Server Error).
    This error disappears as soon as I disable your plugin…

    I will open a ticket on your site as suggested.
    Best regards,
    Thierry

    Thread Starter Thierry-81

    (@thierry-81)

    Hi,
    I found the origin of the problem: a modification in functions.php allowed not to display the means of payment for the departments (Corsica) not authorized.
    It worked well for 2 years but it seems that it does not work anymore after certainly a Woocommerce update.
    The error was logged in the system log of woocommerce, for information: “CRITICAL Uncaught Error: Call to a member function get_shipping_postcode() on null in …”
    I removed this change and your plugin is working again.
    Thanks for your responsiveness and sorry for the inconvenience.
    Best regards
    Thierry

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @thierry-81

    Ok, that sounds good, but I want to be sure about this: this change that caused this issue for you, was found in the WooCommerce plugin, not our plugin, correct?

    If you can confirm and provide any more details, we might be able to add this to the older/closed ticket, so others can benefit from your findings as well?

    Kind regards,
    Joost

    Thread Starter Thierry-81

    (@thierry-81)

    Hi,
    Not in the woocommerce plugin but in a function used in functions.php that allowed to hide the payment methods along with some zip codes.
    This function worked well until recently.
    I don’t know since when and why it conflicts with your plugin. So I prefer to remove it.
    So you can put this ticket as closed
    Best regards,
    Thierry

    Plugin Support Syde Joost

    (@joostvandevijver)

    Thank you @thierry-81

    I’ll discuss this internally to see if we need to take any further action on this. I will mark this thread as resolved.

    Kind regards,
    Joost

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress REST API problems’ is closed to new replies.