Issues with PPEC and IPNs
-
Hey Guys, I’m running into this issue:
I’ve installed Woocommerce and the PPEC plugin, and everything works fine when purchasing, and it looks like when a purchase is automatically approved, then IPNs are not needed and the order shows as processing.
But when the IPN is needed, I get this error:
2020-08-26T14:05:31+00:00 CRITICAL Uncaught Error: Cannot instantiate abstract class WC_Gateway_PPEC in …/plugins/woocommerce/includes/class-wc-payment-gateways.php:94
I’ve done some research, and I found out that the PPEC plugin doesn’t add a WC_Gateway_PPEC class, but something else is doing it (in fact the string says wc_gateway_ppec).
Can you confirm this is the case? Can it be that something else is adding that string to the filter so then the script tries to load an inexistent WC_Gateway?
Thank you so much!
-
Howdy!
The
WC_Gateway_PPEC
class is indeed added by the PayPal Checkout plugin.Errors like this are usually a result of outdated code on the site.
Could you please send me a copy of your site’s System Status? You can find it via
WooCommerce > Status
.Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here. Thanks!
### WordPress Environment ### WordPress address (URL): https://melisasantilli.com Site address (URL): https://melisasantilli.com WC Version: 4.4.1 REST API Version: ? 1.0.15 WC Blocks Version: ? 3.1.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.4.0 Log Directory Writable: ? WP Version: 5.5 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: es_ES External object cache: ? ### Server Environment ### Server Info: nginx/1.18.0 PHP Version: 7.4.9 PHP Post Max Size: 128 MB PHP Time Limit: 300 PHP Max Input Vars: 3000 cURL Version: 7.58.0 OpenSSL/1.1.1g SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.24-MariaDB-1:10.3.24+maria~bionic Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.4.1 WC Database Prefix: wp_ Tama?o total de la base de datos: 13.17MB Tama?o de los datos de la base de datos: 10.96MB Tama?o del índice de la base de datos: 2.21MB wp_woocommerce_sessions: Datos: 1.02MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_woocommerce_order_items: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_order_itemmeta: Datos: 0.06MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_actionscheduler_actions: Datos: 0.13MB + índice: 0.11MB + Motor InnoDB wp_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_actionscheduler_logs: Datos: 0.08MB + índice: 0.03MB + Motor InnoDB wp_as3cf_items: Datos: 0.08MB + índice: 0.09MB + Motor InnoDB wp_commentmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_comments: Datos: 0.05MB + índice: 0.09MB + Motor InnoDB wp_defender_lockout: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_defender_lockout_log: Datos: 0.08MB + índice: 0.00MB + Motor InnoDB wp_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_mailchimp_carts: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_mailchimp_jobs: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_mailerlite_checkouts: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_mailerlite_forms: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_ms_snippets: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_options: Datos: 3.20MB + índice: 0.06MB + Motor InnoDB wp_postmark_log: Datos: 0.06MB + índice: 0.00MB + Motor InnoDB wp_postmeta: Datos: 1.52MB + índice: 0.25MB + Motor InnoDB wp_posts: Datos: 3.27MB + índice: 0.06MB + Motor InnoDB wp_redirection_404: Datos: 0.05MB + índice: 0.06MB + Motor InnoDB wp_redirection_groups: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_redirection_items: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB wp_redirection_logs: Datos: 0.03MB + índice: 0.08MB + Motor InnoDB wp_smush_dir_images: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_snippets: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_termmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_term_relationships: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_usermeta: Datos: 0.08MB + índice: 0.03MB + Motor InnoDB wp_users: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_wc_admin_notes: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wc_admin_note_actions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_wc_product_meta_lookup: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB wp_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_wc_zapier_history: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_wpforms_tasks_meta: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_yoast_indexable: Datos: 0.16MB + índice: 0.08MB + Motor InnoDB wp_yoast_indexable_hierarchy: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_yoast_migrations: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_yoast_primary_term: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_yoast_seo_links: Datos: 0.05MB + índice: 0.02MB + Motor InnoDB wp_yoast_seo_meta: Datos: 0.06MB + índice: 0.00MB + Motor InnoDB ### Post Type Counts ### acf-field: 5 acf-field-group: 2 attachment: 132 avada_faq: 9 course: 1 custom_css: 1 customize_changeset: 8 fusion_element: 7 fusion_tb_layout: 2 fusion_tb_section: 4 lesson: 1 nav_menu_item: 9 page: 25 post: 28 product: 4 product_variation: 3 quiz: 1 resource: 3 restriction: 1 revision: 39 shop_coupon: 43 shop_order: 41 shop_order_refund: 2 slide: 4 wdf_scan: 1 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (24) ### Advanced Custom Fields PRO: por Elliot Condon – 5.9.0 Code Snippets: por Code Snippets Pro – 2.14.0 Contact Form 7: por Takayuki Miyoshi – 5.2.2 WooCommerce Coupon Generator: por Jeroen Sormani – 1.1.0 – Versión instalada no está probada con la versión activa de WooCommerce 4.4.1 Custom Post Type UI: por WebDevStudios – 1.8.0 Yoast Duplicate Post: por Enrico Battocchi & Team Yoast – 3.2.5 Enable Media Replace: por ShortPixel – 3.4.2 Avada Builder: por ThemeFusion – 3.0.2 Avada Core: por ThemeFusion – 5.0.2 Members: por MemberPress – 3.0.10 Postmark (Official): por Andrew Yates & Matt Gibbs – 1.12.5 Redirection: por John Godley – 4.8 String Locator: por Clorith – 2.4.1 WooCommerce - MailerLite: por MailerLite – 1.4.8 – Versión instalada no está probada con la versión activa de WooCommerce 4.4.1 WooCommerce PayPal Checkout Gateway: por WooCommerce – 2.0.3 – Versión instalada no está probada con la versión activa de WooCommerce 4.4.1 Mercado Pago payments for WooCommerce: por Mercado Pago – 4.2.2 – Versión instalada no está probada con la versión activa de WooCommerce 4.4.1 WooCommerce Price Based on Country (Basic): por Oscar Gare – 2.0.10 – Versión instalada no está probada con la versión activa de WooCommerce 4.4.1 WooCommerce: por Automattic – 4.4.1 Yoast SEO: por Team Yoast – 14.8.1 Defender Pro: por WPMU DEV – 2.3.1 Hummingbird Pro: por WPMU DEV – 2.5.3 Smush Pro: por WPMU DEV – 3.6.3 WP-Sweep: por Lester 'GaMerZ' Chan – 1.1.3 WPMU DEV Dashboard: por WPMU DEV – 4.10.1 ### Inactive Plugins (2) ### Restrict User Access: por Joachim Jensen - DEV Institute – 2.0 Sensei LMS: por Automattic – 3.5.0 ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php object-cache.php: WPMU DEV Hummingbird Object Cache ### Must Use Plugins (1) ### WPMU DEV Hosting: por WPMU DEV – 0.1 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Base de la tienda: ? La visibilidad de la página debe ser pública Carrito: #450 - /carro/ Finalizar compra: #451 - /checkout/ Mi cuenta: #452 - /mi-cuenta/ Términos y condiciones: ? Página sin definir ### Theme ### Name: Avada Version: 7.0.2 Author URL: https://themeforest.net/user/ThemeFusion Child Theme: ? – Si estás modificando WooCommerce en un tema padre que no has creado personalmente te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo WooCommerce Support: ? ### Templates ### Overrides: Avada/woocommerce/cart/cart.php Avada/woocommerce/checkout/form-pay.php Avada/woocommerce/checkout/review-order.php Avada/woocommerce/checkout/thankyou.php Avada/woocommerce/loop/loop-start.php Avada/woocommerce/single-product/add-to-cart/variable.php Avada/woocommerce/single-product/short-description.php Avada/woocommerce/single-product/tabs/additional-information.php Avada/woocommerce/single-product/tabs/description.php ### Geolocation debug info ### Default customer location: geolocation MaxMind GeoIP database: ? MaxMind GeoIP license: ? MM_COUNTRY_CODE: ? GEOIP_COUNTRY_CODE: ? HTTP_CF_IPCOUNTRY: ? HTTP_X_COUNTRY_CODE: ? HTTP_X_REAL_IP: ? HTTP_X_FORWARDED_FOR: ? REMOTE_ADDR: 190.113.178.253 Real external IP: 190.113.178.253 WCPBC_USE_REMOTE_ADDR: – Geolocation Test: ? ### PBC Settings ### Version: 2.0.10 Base location: AR:M Base currency: USD Price Based On: billing Shipping: – Test mode: – Test country: – Load products price in background: ? Prices entered with tax: – Calculate tax based on: shipping Display prices in the shop: excl ### Zone Pricing Argentina ### zone_id: argentina name: Argentina countries: AR currency: ARS exchange_rate: 120 auto_exchange_rate: no disable_tax_adjustment: no ### Zone Pricing Unión Europea ### zone_id: union-europea name: Unión Europea countries: DE | AD | AT | BE | CY | VA | SK | SI | ES | EE | FI | FR | GR | GP | GF | IE | AX | IT | LV | LT | LU | MT | MQ | YT | MC | ME | NL | PT | RE | BL | SM | MF | PM | TF currency: EUR exchange_rate: 1.14 auto_exchange_rate: no disable_tax_adjustment: no ### Action Scheduler ### Completo: 256 Oldest: 2020-08-13 15:36:19 +0000 Newest: 2020-08-28 19:54:52 +0000 Pendiente: 1 Oldest: 2020-08-29 00:48:46 +0000 Newest: 2020-08-29 00:48:46 +0000
Thanks! Everything looks pretty good here.
This kind of problem is usually caused by either a conflict with your theme or with another plugin. It looks like your “Avada” theme could possibly be the cause. I also see you have the “Code Snippets” plugin (although it could be anything).
?
The best way to determine this is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
If you still have issues after that, try resetting the API information here: https://docs.woocommerce.com/document/paypal-express-checkout/#section-4
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
- The topic ‘Issues with PPEC and IPNs’ is closed to new replies.