Title: SQL error after update plugin
Last modified: February 1, 2024

---

# SQL error after update plugin

 *  Resolved [Fabrizio Miranda (EfestoDev Srl)](https://wordpress.org/support/users/efestodev/)
 * (@efestodev)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/sql-error-after-update-plugin/)
 * 
   Hello, since we updated the plugin version, we get the following error every
   time we try to activate the plugin. If we activate it, the entire site crashes.
 * Here is the error from the log:
   [14-Jan-2024 14:44:17 UTC] WordPress database
   error You have an error in your SQL syntax; check the manual that corresponds
   to your MariaDB server version for the right syntax to use near ‘WHERE payment_method
   = ‘ppec_paypal” at line 1 for query SELECT 1 FROM WHERE payment_method = ‘ppec_paypal’
   made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘
   wp-config.php’), require_once(‘wp-settings.php’), do_action(‘plugins_loaded’),
   WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce\PayPalCommerce\{closure},
   WooCommerce\PayPalCommerce\init, {closure}, WooCommerce\PayPalCommerce\Compat\
   CompatModule->run, WooCommerce\PayPalCommerce\Compat\CompatModule->initialize_ppec_compat_layer,
   WooCommerce\PayPalCommerce\Compat\PPEC\SubscriptionsHandler->maybe_hook, WooCommerce\
   PayPalCommerce\Compat\PPEC\PPECHelper::use_ppec_compat_layer_for_subscriptions,
   WooCommerce\PayPalCommerce\Compat\PPEC\PPECHelper::site_has_ppec_subscriptions

Viewing 1 replies (of 1 total)

 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/sql-error-after-update-plugin/#post-17391150)
 * Hello [@efestodev](https://wordpress.org/support/users/efestodev/)
   We have identified
   this issue previously, and a fix has been made available in the latest RC version.
   You can download the fixed version from the following link: [WooCommerce PayPal Payments 2.5.3-rc1](https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/2.5.3-rc1).
 * If you encounter any further issues after installation, please do not hesitate
   to contact us.
 * Kind Regards,
 * Krystian

Viewing 1 replies (of 1 total)

The topic ‘SQL error after update plugin’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/sql-error-after-update-plugin/#post-17391150)
 * Status: resolved