Title: Error in server log
Last modified: December 14, 2023

---

# Error in server log

 *  Resolved [t.tousif](https://wordpress.org/support/users/ttousif/)
 * (@ttousif)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-in-server-log-2/)
 * Got this error in server logs
   AH01071: Got error ‘PHP message: 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 activate_plugin, do_action(‘activate_woocommerce-paypal-payments/woocommerce-
   paypal-payments.php’), 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 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-in-server-log-2/#post-17276688)
 * Hello [@ttousif](https://wordpress.org/support/users/ttousif/),
 * Thank you for reaching out to us, we are here to help.
 * From the error log you’ve shared, it seems that the problem is related to the
   PayPal Checkout Gateway migration layer, specifically the PPEC (PayPal Express
   Checkout) Helper. This issue can be complex and may be caused by a conflict with
   another plugin.
 * You may want to perform a full conflict test to rule out eventual issues with
   the theme or a different plugin. We recommend temporarily activating the [default theme Storefront](https://wordpress.org/themes/storefront/)
   and disabling all other plugins except for WooCommerce and PayPal Payments to
   see if the behaviour persists. Here’s a guide that explains the steps in more
   detail: [How to test for conflicts](https://woocommerce.com/document/how-to-test-for-conflicts/)
 * The other alternative is to disable the PayPal Checkout Gateway migration layer.
   This can be done using a filter, which is detailed in our documentation here:
   [Disable PayPal Checkout Gateway Migration Layer (PPEC Helper)](https://github.com/woocommerce/woocommerce-paypal-payments/wiki/Actions-and-Filters#disable-paypal-checkout-gateway-migration-layer-ppec-helper).
   Please note, that if you are currently managing subscriptions from the previous
   integration with PayPal Express Checkout, disabling this layer might affect those
   subscriptions. Therefore, it’s important to verify whether your site is maintaining
   such subscriptions.
 * If this all does not help you resolve this issue, let us know. If you need to
   share details that you rather not share on this public forum, you can also open
   a ticket with our service desk privately. You can find the instruction for this
   here: [https://paypal.inpsyde.com/docs/request-support/](https://paypal.inpsyde.com/docs/request-support/)
   (
   please add the URL of this thread in the ticket as well).
 * Kind regards,
   Joost
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-in-server-log-2/#post-17303857)
 * This error can be ignored and will be resolved in a future update. The only scenario
   under which it would be relevant is when the site contains old legacy [PayPal Checkout](https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/)
   subscriptions which highly likely will not be the case as this error usually 
   only happens on new website setups and not with existing ones.

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

The topic ‘Error in server log’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/error-in-server-log-2/#post-17303857)
 * Status: resolved