Title: error in debug log
Last modified: November 6, 2019

---

# error in debug log

 *  Resolved [Stingraynut](https://wordpress.org/support/users/stingraynut/)
 * (@stingraynut)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-in-debug-log-10/)
 * Woocommerce support found an entry in the debug log in wp-content, during checkout,
   that mentions this plugin, Flexible Shipping. They are investigating another 
   problem, and have suggested I contact this plugin’s support to investigate this
   error entry.
    Here is the relevant entry – [29-Oct-2019 13:03:34 UTC] PHP Warning:
   array_keys() expects parameter 1 to be array, null given in /home/aawcomau/public_html/
   stage1/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 
   468 [29-Oct-2019 13:03:34 UTC] PHP Warning: array_keys() expects parameter 1 
   to be array, null given in /home/aawcomau/public_html/stage1/wp-content/plugins/
   woocommerce/includes/wc-cart-functions.php on line 439 [29-Oct-2019 13:03:34 
   UTC] PHP Warning: current() expects parameter 1 to be array, null given in /home/
   aawcomau/public_html/stage1/wp-content/plugins/woocommerce/includes/wc-cart-functions.
   php on line 440 [29-Oct-2019 13:03:34 UTC] PHP Fatal error: Uncaught TypeError:
   Argument 2 passed to Flexible_Shipping_Plugin::woocommerce_default_shipment_method()
   must be of the type array, null given, called in /home/aawcomau/public_html/stage1/
   wp-includes/class-wp-hook.php on line 286 and defined in /home/aawcomau/public_html/
   stage1/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.
   php:381 Stack trace: #0 /home/aawcomau/public_html/stage1/wp-includes/class-wp-
   hook.php(286): Flexible_Shipping_Plugin->woocommerce_default_shipment_method(
   NULL, NULL, ‘flexible_shippi…’) #1 /home/aawcomau/public_html/stage1/wp-includes/
   plugin.php(208): WP_Hook->apply_filters(NULL, Array) #2 /home/aawcomau/public_html/
   stage1/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(453): apply_filters(‘
   woocommerce_shi…’, NULL, NULL, ‘flexible_shippi…’) #3 /home/aawcomau/public_html/
   stage1/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(417): wc_get_default_shipping_method_for_package(
   0, Array, ‘flexible_shippi…’) #4 /home/aawcomau/publ in /home/aawcomau/public_html/
   stage1/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.
   php on line 381
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-debug-log-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Grzegorz Rola](https://wordpress.org/support/users/grola/)
 * (@grola)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-in-debug-log-10/#post-12101616)
 * Which plugin version do you have? In the currently available version, the code
   on the indicated line is different.
    Please update the plugin. If the problem
   persists, please let us know.
 *  Plugin Support [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * (@martapaw)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-in-debug-log-10/#post-12131850)
 * As we haven’t got any replies, I’m marking this topic as resolved for now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘error in debug log’ is closed to new replies.

 * ![](https://ps.w.org/flexible-shipping/assets/icon.svg?rev=2737045)
 * [Weight Based Shipping Table Rate for WooCommerce – Flexible Shipping](https://wordpress.org/plugins/flexible-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-shipping/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/error-in-debug-log-10/#post-12131850)
 * Status: resolved