Support » Plugin: PPOM for WooCommerce » Error with Export Plugin

  • Resolved marketfresh

    (@marketfresh)


    I have another plugin called Advanced Order Export For WooCommerce (Pro). The PPOM plugin is causing this other plugin to have an error. I got support from the developer of the Advanced Order Export For WooCommerce plugin and this is what he said:

    They declared filter with with THREE parameters ( in file /classes/plugin.class.php)
    add_filter(‘ppom_order_display_value’, ‘ppom_hooks_format_order_value’, 999, 3);

    But they call it with one parameter only (file /inc/hooks.php)
    $row[$key] = apply_filters(‘ppom_order_display_value’, $value);

    This is the error output:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function ppom_hooks_format_order_value(), 1 passed in /home/traillif/public_html/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /home/traillif/public_html/wp-content/plugins/woocommerce-product-addon/inc/hooks.php:108 Stack trace: #0 /home/traillif/public_html/wp-includes/class-wp-hook.php(286): ppom_hooks_format_order_value(‘TL NON:TL29-RED…’) #1 /home/traillif/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘TL NON:TL29-RED…’, Array) #2 /home/traillif/public_html/wp-content/plugins/woocommerce-product-addon/inc/hooks.php(666): apply_filters(‘ppom_order_disp…’, ‘TL NON:TL29-RED…’) #3 /home/traillif/public_html/wp-includes/class-wp-hook.php(286): ppom_hooks_convert_option_json_to_string(Array, Object(WC_Order)) #4 /home/traillif/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #5 /home/traillif/public_html/wp-content/plugins/woocommerce-order-export/classes/core/class-wc-order-export-dat in /home/traillif/public_html/wp-content/plugins/woocommerce-product-addon/inc/hooks.php on line 108

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

    Ok we just fixed it in version 14.3 and releasing it today.

    Awesome!
    Thanks!

    marketfresh

    (@marketfresh)

    I haven’t seen that update come through yet. Is it still coming?

    linkasobi

    (@linkasobi)

    Any update?

    webdude20

    (@webdude20)

    We are experiencing the same issue. Uncaught ArgumentCountError: Too few arguments to function ppom_hooks_format_order_value. Any update?

    • This reply was modified 10 months ago by  webdude20.
    webdude20

    (@webdude20)

    I commented out in the PPOM Plugin the following: add_filter(‘ppom_order_display_value’, ‘ppom_hooks_format_order_value’, 999, 3); and it works, I don’t see it affecting anything else. The problem is filters and export fields, it does not recognize them as a Meta Key to export or to filter.

    Plugin Author N-Media

    (@nmedia)

    Hi,

    Sorry to delay, we have released version 14.3

    webdude20

    (@webdude20)

    How do we download it? It’s not showing as an upgrade to the plugin. We have the pro version.

    Plugin Author N-Media

    (@nmedia)

    It’s only change in Free version, you can update directly within Dashboard. Pro version no need updates.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error with Export Plugin’ is closed to new replies.