2017-01-26 266 views
0

在WordPress WooCommerce中,啓用最小/最大數量擴展或測量計算器擴展工作。但是,如果您同時啓用了這兩項功能,並將「測量計算器」設置爲「分區」並顯示以下錯誤。WooCommerce:致命錯誤:未捕獲ArgumentCountError:函數參數太少

看起來有一個擴展名與另一個擴展名衝突的問題。從錯誤中可以分辨哪個是罪魁禍首,然後我可以聯繫到特定的擴展開發人員。

甚至更​​好,如果從錯誤的人可以扣除問題和解決方案。大概會需要在其中一個插件中硬編碼一個臨時修補程序,但在擴展程序開發人員修復衝突之前會有所幫助。

任何幫助,將不勝感激!

Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Min_Max_Quantities::update_quantity_args(), 1 passed in /html/wp-includes/class-wp-hook.php on line 298 and exactly 2 expected in /html/wp-content/plugins/woocommerce-min-max-quantities/min-max-quantities.php:561 Stack trace: #0 /html/wp-includes/class-wp-hook.php(298): WC_Min_Max_Quantities->update_quantity_args(Array) #1 /html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #2 /html/wp-content/plugins/woocommerce-measurement-price-calculator/classes/class-wc-price-calculator-product.php(501): apply_filters('woocommerce_qua...', Array) #3 /Us in /html/wp-content/plugins/woocommerce-min-max-quantities/min-max-quantities.php on line 561 

回答

0

已更新至WordPress 4.7.2,剛剛發佈且錯誤消失。因此,在使用4.7.1時,這兩個插件似乎可以與某些設置結合使用。

相關問題