Support » Plugin: Product Addons & Fields 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)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error with Export Plugin’ is closed to new replies.