Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings on Abstract Gateway #376

Closed
mischasigtermans opened this issue Jun 9, 2020 · 6 comments
Closed

Warnings on Abstract Gateway #376

mischasigtermans opened this issue Jun 9, 2020 · 6 comments

Comments

@mischasigtermans
Copy link

mischasigtermans commented Jun 9, 2020

Hi guys,

We're getting many errors on the latest version of WooCommerce (4.2) in combination with the latest version of Mollie.

Jun 9 09:54:46 192.168.149.83 apache2[31632]: [u2542] [our-clients-hostname.onpressidium.com] [49864f90b14eb4d2] [176.74.247.203] [error] [client 192.168.143.217:39562] AH01071: Got error 'PHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument su pplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /our-clients-hostname-www/wp-admin/includes/plugin.php on line 1732\n'

@AndreasWInpsyde
Copy link

Hello @mischasigtermans

we just tested it and for us, all is working fine. Can you please deactivate for testing only all other plugins. It's just to check if the issues aren't caused by other plugins.

Maybe you can give us more information about where do you get this error and your steps you did so we can better reproduce it.

I would be happy if you can send us log files, Woocommerce status reports, etc. to mollie@inpsyde.com so we can have a closer look at it.

Regards
Andreas

@mischasigtermans
Copy link
Author

mischasigtermans commented Jul 3, 2020

Hi Andreas,

We've checked this setup multiple times with all plugins disabled and found out that when we disable the Paazl plugin, the payments methods are showing again. I've been in contact with @rvmourik, the developer of the Paazl plugin, and we found that when we set use_cache to false on line 2129 in mollie-payments-for-woocommerce/src/Mollie/WC/Gateway/Abstract.php all the correct payment methods show up again.

Here's our WooCommerce status rapport:

### WordPress Environment ###

WordPress address (URL): https://client.nl
Site address (URL): https://client.nl
WC Version: 4.2.2
REST API Version: ✔ 1.0.8
WC Blocks Version: ✔ 2.5.16
Action Scheduler Version: ✔ 3.1.6
WC Admin Version: ✔ 1.2.4
Log Directory Writable: ✔
WP Version: 5.4.2
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: –
Language: nl_NL
External object cache: –

### Server Environment ###

Server Info: Apache/2.4.10 (Debian)
PHP Version: 7.2.29
PHP Post Max Size: 100 MB
PHP Time Limit: 120
PHP Max Input Vars: 3000
cURL Version: 7.52.1
OpenSSL/1.0.1t

SUHOSIN Installed: –
MySQL Version: 5.6.46-86.2-56-log
Max Upload Size: 100 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
Soapclient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

WC Database Version: 4.2.2
WC Database Prefix: wp_
Totale databasegrootte: 2080.89MB
Database datagrootte: 1266.63MB
Database index grootte: 814.26MB
wp_woocommerce_sessions: Data: 11.02MB + Index: 1.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 12.52MB + Index: 6.52MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 93.64MB + Index: 111.28MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 24.06MB + Index: 24.13MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 17.08MB + Index: 13.03MB + Engine InnoDB
wp_badgeos_achievements: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_badgeos_points: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_badgeos_ranks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_cart_notices: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 217.73MB + Index: 151.31MB + Engine InnoDB
wp_failed_jobs: Data: 15.55MB + Index: 0.00MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_mailchimp_carts: Data: 12.02MB + Index: 0.00MB + Engine InnoDB
wp_mailchimp_jobs: Data: 6.52MB + Index: 0.00MB + Engine InnoDB
wp_mollie_pending_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_options: Data: 6.09MB + Index: 1.11MB + Engine InnoDB
wp_p2p: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_p2pmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_postmeta: Data: 260.83MB + Index: 215.44MB + Engine InnoDB
wp_posts: Data: 87.33MB + Index: 42.92MB + Engine InnoDB
wp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_smack_statistics: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 1.06MB + Index: 2.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 197.84MB + Index: 186.42MB + Engine InnoDB
wp_users: Data: 7.52MB + Index: 8.55MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 7.52MB + Index: 7.02MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 21.55MB + Index: 18.06MB + Engine InnoDB
wp_wc_order_stats: Data: 10.52MB + Index: 7.55MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 5.52MB + Index: 5.03MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.19MB + Index: 0.34MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 1.52MB + Index: 0.33MB + Engine InnoDB
wp_woocommerce_orders: Data: 62.63MB + Index: 11.52MB + Engine InnoDB
wp_wpjf3_mr_access_keys: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpjf3_mr_unrestricted_ips: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpmelon_advbedit_temp: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
wp_xc_woo_cloud_print_logs: Data: 185.52MB + Index: 0.00MB + Engine InnoDB

### Post Type Counts ###

achievement-type: 1
attachment: 1161
ct_size_guide: 11
custom_css: 1
customize_changeset: 1
nav_menu_item: 21
page: 13
product: 273
product_variation: 879
revision: 159
shop_coupon: 8
shop_order: 78898
shop_order_refund: 1396

### Security ###

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

### Active Plugins (26) ###

The SEO Framework: door The SEO Framework Team – 4.0.7
Klassieke editor: door WordPress-bijdragers – 1.5
Cookie Notice: door dFactory – 1.3.2
createIT Size Guide Plugin: door createIT – 3.0 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
Disable Cart Fragments: door Optimocha – 1.21 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
Maintenance Redirect: door Peter Hardy-vanDoorn since 03/18; based on the original by Jack Finch – 1.6
WPBakery Page Builder: door Michael M - WPBakery.com – 6.0.5
Loco Translate: door Tim Whitlock – 2.4.0
Mailchimp voor WooCommerce: door MailChimp – 2.4.1 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
MC4WP: Mailchimp for WordPress: door ibericode – 4.7.8
Theme Extender: door Pixelstart – 1.3.8
Metorik Helper: door Metorik – 1.4.0 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
Mollie Payments for WooCommerce: door Mollie – 5.7.2 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
Paazl: door Webstack B.V. – 2.1.3
Pixeltools: door Pixelstart – 1.8.10
PixelYourSite PRO: door PixelYourSite – 7.6.0
Trustpilot-reviews: door Trustpilot – 2.5.808 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce NL Postcode Checker: door Ewout Fernhout – 2.4.1 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce Advanced Bulk Edit: door George Iron – 4.4.2 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce Cart Notices: door SkyVerge – 1.8.5 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce - Custom Orders Table: door Liquid Web – 1.0.0-rc3 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce Email Customizer: door cxThemes – 3.33 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce Sequential Order Numbers Pro: door SkyVerge – 1.12.2 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce Shipment Tracking: door WooCommerce – 1.6.12 – Geïnstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2
WooCommerce: door Automattic – 4.2.2
Woocommerce Google Cloud Print: door Xperts Club – 3.1

### Inactive Plugins (3) ###

Advanced Cron Manager: door BracketSpace – 2.3.10
WP Crontrol: door John Blackbourn & crontributors – 1.8.5
WP Sticky Sidebar: door Premio – 1.3.4

### Dropin Plugins (1) ###

db.php: LudicrousDB (Database)

### Must Use Plugins (3) ###

Enforce Strong Password: door Zaantar – 1.3.5
Limit Login Attempts: door Johan Eenfeldt – 1.7.1
Pressidium(R) Agent: door Pressidium – 1.8.3

### Settings ###

API Enabled: ✔
Force SSL: –
Currency: EUR (€)
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 ###

Winkelbasis: #5 - /
Winkelmand: #364 - /wagentje/
Afrekenen: #7 - /afrekenen/
Mijn account: ❌ Pagina bevat niet de shortcode.
Algemene voorwaarden: #1534 - /algemene-voorwaarden/

### Theme ###

Name: Client
Version: 1.0
Author URL: https://pixelstart.io
Child Theme: ✔
Parent Theme Name: Client
Parent Theme Version: 1.9.14
Parent Theme Author URL: https://pixelstart.io
WooCommerce Support: ✔

### Templates ###

Overrides: client-child/woocommerce/archive-product.php
client/woocommerce/cart/cart.php
client/woocommerce/checkout/form-checkout.php
client/woocommerce/checkout/form-pay.php
client/woocommerce/content-product.php
client/woocommerce/content-product_cat.php
client/woocommerce/content-single-product.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/admin-cancelled-order.php versie 3.7.0 is verouderd. De hoofdversie is 4.1.0
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/admin-failed-order.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/admin-new-order.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-completed-order.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-invoice.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-new-account.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-note.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-on-hold-order.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-processing-order.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-refunded-order.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-reset-password.php versie 3.7.0 is verouderd. De hoofdversie is 4.0.0
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-addresses.php versie 3.5.4 is verouderd. De hoofdversie is 3.9.0
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-customer-details.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-downloads.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-footer.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-header.php versie 2.4.0 is verouderd. De hoofdversie is 4.0.0
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-order-details.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-order-items.php
/client-www/wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-styles.php versie 3.3.0 is verouderd. De hoofdversie is 4.0.0
client/woocommerce/loop/loop-end.php
client/woocommerce/loop/loop-start.php
client/woocommerce/loop/no-products-found.php
client/woocommerce/myaccount/form-login.php
client/woocommerce/product-searchform.php
client/woocommerce/single-product/product-image.php
client/woocommerce/single-product/product-thumbnails.php
client/woocommerce/single-product/rating.php
client-child/woocommerce/single-product.php

Outdated Templates: ❌


### Action Scheduler ###

Geannuleerd: 688
Oldest: 2020-06-02 18:41:39 +0200
Newest: 2020-07-03 13:45:04 +0200

Afgerond: 71.131
Oldest: 2020-06-02 15:38:23 +0200
Newest: 2020-07-03 15:12:28 +0200

Mislukt: 22
Oldest: 2019-03-08 18:40:39 +0100
Newest: 2019-12-04 05:51:27 +0100

In afwachting: 1
Oldest: 2020-08-15 11:56:19 +0200
Newest: 2020-08-15 11:56:19 +0200

@mischasigtermans
Copy link
Author

mischasigtermans commented Aug 5, 2020

Hi @AndreasWInpsyde. We fixed his issue by setting $use_cache to false in src/Mollie/WC/Gateway/Abstract.php on line 2129:

$methods = $data_helper->getApiPaymentMethods( $test_mode, $use_cache = false, $filters);

@mischasigtermans
Copy link
Author

mischasigtermans commented Sep 14, 2020

Hi guys, please look at this issue. The plugin has been updated and the issue persists. We had to change the same $use_cache to false on line 2139 in order to get the checkout to work again. cc @AndreasWInpsyde

@vincent8balls
Copy link

Have the same issue as @mischasigtermans . Can you please fix this? After every update I have to overwrite this line in the code. @mischasigtermans are you using Open Litespeed as caching as well?

@InpsydeNiklas
Copy link
Collaborator

This has been fully refactored in Mollie v7, so it shouldn't be needed anymore to make special adjustments for cases where this issue occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants