• Resolved kowabungawp

    (@kowabungawp)


    Hi Karolina,
    First of all, thank you for this great plugin.

    I just noticed the following error on my site when trying to get to the settings section of any payment method.

    Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /www/htdocs/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php:233
    Stack trace:
    #0 /www/htdocs/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php(233): array_merge(NULL, Array)
    #1 /www/htdocs/wp-includes/class-wp-hook.php(303): Pay4Pay_Admin->add_payment_options('')
    #2 /www/htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(0, Array)
    #3 /www/htdocs/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #4 /www/htdocs/wp-settings.php(600): do_action('wp_loaded')
    #5 /www/htdocs/wp-config.php(96): require_once('/www/...')
    #6 /www/htdocs/wp-load.php(50): require_once('/www/...')
    #7 /www/htdocs/wp-admin/admin.php(34): require_once('/www/...')
    #8 {main}

    It was working ok a few weeks ago. I believe it might be related to the last update on Mercado Pago payments for WooCommerce plugin. If I deactivate that plugin it works ok again, but the fee should be applied to Mercado Pago.

    I checked the forum and the same problem was solved last year with the following line (233):
    $gateway->form_fields = array_merge($gateway->form_fields, $form_fields); // Fix Mercadopago integration
    But it is not working anymore.

    It is possible something changed by then? Any suggestions on how to fix it?

    Kind regards,

    System status report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://distribuidoravientosdelsur.com.ar
    Site address (URL): https://distribuidoravientosdelsur.com.ar
    WC Version: 5.5.2
    REST API Version: ✔ 5.5.2
    WC Blocks Version: ✔ 5.3.3
    Action Scheduler Version: ✔ 3.2.1
    WC Admin Version: ✔ 2.4.4
    Log Directory Writable: ✔
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: es_ES
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.5
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.76.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.18
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ❌ wp_remote_post() falló. Contacta con to proveedor de alojamiento.
    Remote Get: ❌ wp_remote_get() falló. Contacta con to proveedor de alojamiento.
    
    ### Database ###
    
    WC Database Version: 5.5.2
    WC Database Prefix: wds_
    Tamaño total de la base de datos: 23.26MB
    Tamaño de los datos de la base de datos: 21.36MB
    Tamaño del índice de la base de datos: 1.90MB
    wds_woocommerce_sessions: Datos: 0.01MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_api_keys: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_attribute_taxonomies: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_downloadable_product_permissions: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_order_items: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_order_itemmeta: Datos: 0.01MB + Índice: 0.01MB + Motor MyISAM
    wds_woocommerce_tax_rates: Datos: 0.00MB + Índice: 0.01MB + Motor MyISAM
    wds_woocommerce_tax_rate_locations: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_shipping_zones: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_shipping_zone_locations: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_shipping_zone_methods: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_payment_tokens: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_payment_tokenmeta: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_woocommerce_log: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_actionscheduler_actions: Datos: 0.05MB + Índice: 0.04MB + Motor MyISAM
    wds_actionscheduler_claims: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_actionscheduler_groups: Datos: 0.00MB + Índice: 0.01MB + Motor MyISAM
    wds_actionscheduler_logs: Datos: 0.03MB + Índice: 0.03MB + Motor MyISAM
    wds_commentmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wds_comments: Datos: 0.02MB + Índice: 0.09MB + Motor InnoDB
    wds_duplicator_packages: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wds_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wds_options: Datos: 2.16MB + Índice: 0.08MB + Motor InnoDB
    wds_postmeta: Datos: 16.48MB + Índice: 0.47MB + Motor InnoDB
    wds_posts: Datos: 1.52MB + Índice: 0.19MB + Motor InnoDB
    wds_termmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wds_terms: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wds_term_relationships: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wds_term_taxonomy: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wds_usermeta: Datos: 0.05MB + Índice: 0.03MB + Motor InnoDB
    wds_users: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
    wds_wc_admin_notes: Datos: 0.02MB + Índice: 0.00MB + Motor MyISAM
    wds_wc_admin_note_actions: Datos: 0.01MB + Índice: 0.00MB + Motor MyISAM
    wds_wc_category_lookup: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_wc_customer_lookup: Datos: 0.00MB + Índice: 0.01MB + Motor MyISAM
    wds_wc_download_log: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_wc_order_coupon_lookup: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_wc_order_product_lookup: Datos: 0.00MB + Índice: 0.01MB + Motor MyISAM
    wds_wc_order_stats: Datos: 0.00MB + Índice: 0.01MB + Motor MyISAM
    wds_wc_order_tax_lookup: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_wc_product_meta_lookup: Datos: 0.01MB + Índice: 0.02MB + Motor MyISAM
    wds_wc_reserved_stock: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_wc_tax_rate_classes: Datos: 0.00MB + Índice: 0.01MB + Motor MyISAM
    wds_wc_webhooks: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_wpforms_tasks_meta: Datos: 0.00MB + Índice: 0.00MB + Motor MyISAM
    wds_yoast_indexable: Datos: 0.16MB + Índice: 0.08MB + Motor InnoDB
    wds_yoast_indexable_hierarchy: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
    wds_yoast_migrations: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wds_yoast_primary_term: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wds_yoast_seo_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wds_yoast_seo_meta: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wpstg0_commentmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wpstg0_comments: Datos: 0.02MB + Índice: 0.08MB + Motor InnoDB
    wpstg0_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wpstg0_options: Datos: 0.11MB + Índice: 0.02MB + Motor InnoDB
    wpstg0_postmeta: Datos: 0.13MB + Índice: 0.03MB + Motor InnoDB
    wpstg0_posts: Datos: 0.11MB + Índice: 0.06MB + Motor InnoDB
    wpstg0_termmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wpstg0_terms: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wpstg0_term_relationships: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wpstg0_term_taxonomy: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wpstg0_usermeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wpstg0_users: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
    wpstg0_yoast_seo_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wpstg0_yoast_seo_meta: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    
    ### Post Type Counts ###
    
    attachment: 135
    client: 4
    customize_changeset: 2
    elementor_library: 2
    nav_menu_item: 5
    page: 10
    post: 6
    product: 66
    product_variation: 55
    revision: 490
    shop_order: 10
    slider: 4
    team: 6
    work: 8
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (12) ###
    
    Autoptimize: por Frank Goossens (futtta) – 2.9.1
    Click to Chat: por HoliThemes – 3.3.7
    Duplicator: por Snap Creek – 1.4.2
    Elementor: por Elementor.com – 3.3.1
    Site Kit by Google: por Google – 1.38.1
    Loco Translate: por Tim Whitlock – 2.5.3
    Mercado Pago payments for WooCommerce: por Mercado Pago – 5.3.1
    Pay for Payment for WooCommerce: por Karolína Vyskočilová – 2.1.0
    WooCommerce: por Automattic – 5.5.2
    Yoast SEO: por Equipo Yoast – 16.9
    WP Super Cache: por Automattic – 1.7.4
    WPForms Lite: por WPForms – 1.6.8.1
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: ARS ($)
    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: #301 - /tienda/
    Carrito: #302 - /carrito/
    Finalizar compra: #303 - /finalizar-compra/
    Mi cuenta: #304 - /mi-cuenta/
    Términos y condiciones: ❌ Página sin definir
    
    ### Theme ###
    
    Name: Vientos del Sur
    Version: 1.0.0
    Author URL: https://www.waterloop.studio/
    Child Theme: ✔
    Parent Theme Name: Open Shop
    Parent Theme Version: 1.3.0
    Parent Theme Author URL: https://www.themehunk.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Archive Template: Tu tema tiene un archivo woocommerce.php
    no podrás sobreescribir la plantilla personalizada woocommerce/archive-product.php ya que woocommerce.php tiene prioridad sobre archive-product.php. Esto es intencionado para prevenir problemas de visualización.
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Completo: 193
    Oldest: 2021-07-30 12:39:04 +0000
    Newest: 2021-08-13 20:35:49 +0000
    
    Pendiente: 5
    Oldest: 2021-08-14 16:33:50 +0000
    Newest: 2021-08-19 16:05:50 +0000
    
    ### Status report information ###
    
    Generated at: 2021-08-13 17:56:33 -03:00
    
    • This topic was modified 2 years, 8 months ago by kowabungawp.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Mercado Pago compatibility’ is closed to new replies.