---
title: PHP or JS Errors After Plugin Updates
description: PHP or JavaScript errors after updating WooCommerce payment rules? Steps to restore gateway filtering.
url: "https://wpfactory.com/docs/php-js-errors-or-compatibility-issues-after-plugin-updates/"
updated: "2026-09-27"
category: Troubleshooting
tags:
  - "Payment Methods by Product & Country for WooCommerce"
---

# PHP or JS Errors After Plugin Updates

If PHP or JavaScript errors appear after updating [Payment Methods by Product & Country for WooCommerce](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/) or WooCommerce, update to the latest plugin version, clear every cache, and check the browser console and the server log with WP_DEBUG on. If errors persist, disable other plugins or the theme one at a time on staging and contact support.

### Common symptoms

- Deprecation notices or warnings in the dashboard or in server logs.
- Gateways stop filtering, or checkout misbehaves, right after an update.

### Causes

- A WooCommerce or WordPress update changed an API the plugin (or another plugin) relies on.
- A caching or minification plugin is serving old JavaScript or CSS after the update.
- Another plugin or the theme depends on older checkout behavior.

### Solution

1. Update to the latest version of the plugin and confirm it lists your WooCommerce version as tested (check the changelog).
2. Clear every cache: server, CDN, caching plugin, and browser.
3. Check the browser console for JavaScript errors and the server log (with `WP_DEBUG` on) for PHP notices, and note the exact message.
4. If errors persist, test on a staging copy and disable other plugins or the theme one at a time to find the conflict.
5. Send WPFactory support the full error message, your WordPress and WooCommerce versions, and your active plugins and theme.

### Prerequisites

- A recent site backup before updating.
- Access to server logs or WordPress debug mode.

### Need a hand?

Always test updates on staging first, and reach our team on the [Payment Gateways per Products support forum](https://wpfactory.com/support/item/payment-gateways-per-product-for-woocommerce/).

Related articles

- [Custom or Third-Party Gateways Not Filtered Correctly](https://wpfactory.com/docs/custom-payment-gateways-issue/)
- [Checkout Shows No Payment Methods or Keeps Loading](https://wpfactory.com/docs/checkout-no-payment-methods/)
- [Checkout Fails for a Mixed-Category Cart](https://wpfactory.com/docs/mixed-cart-checkout-issue/)
- [Payment Gateways Not Showing for Assigned Products or Categories](https://wpfactory.com/docs/payment-gateways-not-showing/)
- [Payment Methods by Product & Country: Additional Tips](https://wpfactory.com/docs/payment-gateways-per-product-additional-tips/)

 

[![Payment Methods by Product & Country for WooCommerce](https://wpfactory.com/wp-content/uploads/Payment-Methods-by-Product-Country-for-WooCommerce.webp)](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/)
