Title: PHP Warning
Last modified: March 28, 2022

---

# PHP Warning

 *  Resolved [debra15](https://wordpress.org/support/users/debra15/)
 * (@debra15)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/)
 * I got the PHP Warning:
    current() expects parameter 1 to be array, null given
   in wp-content/plugins/woo-order-export-lite/classes/formats/storage/class-woe-
   formatter-storage-summary-session.php on line 82
 * Is it possible that you fix that in the next version?
 * Thanks in advance.

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

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15501464)
 * hi
 * Do you see this message if you use button “Export without progressbar” ?
 * Does your hosting use load balancer ?
 * thanks, Alex
 *  Thread Starter [debra15](https://wordpress.org/support/users/debra15/)
 * (@debra15)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15501930)
 * I use Kinsta hosting, and it seems not to use load balancer.
    When I tested two
   export buttons today, for both the “Export without progress bar” and “Export”
   buttons, I saw the Error notice below but no PHP warning : Notice: Undefined 
   variable: dp in /wp-content/plugins/woo-order-export-lite/classes/core/class-
   wc-order-export-engine.php(350) : eval()’d code on line 3
 * And actually, I just found I got three other warnings simultaneously, and it 
   did not happen again today.
    Warning: current() expects parameter 1 to be array,
   null given in /www/leaderkid_808/public/wp-content/plugins/woo-order-export-lite/
   classes/formats/storage/class-woe-formatter-storage-summary-session.php on line
   82 Warning: Invalid argument supplied for foreach() in /wp-content/plugins/woo-
   order-export-lite/classes/formats/class-woe-formatter-xls.php on line 318 Warning:
   Invalid argument supplied for foreach() in /wp-content/plugins/woo-order-export-
   lite/classes/formats/class-woe-formatter-xls.php on line 282 Warning: reset()
   expects parameter 1 to be array, null given in /wp-content/plugins/woo-order-
   export-lite/classes/formats/storage/class-woe-formatter-storage-summary-session.
   php on line 78`
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15501956)
 * please, open section “Misc Settings”, copy PHP code and paste it here .
 *  Thread Starter [debra15](https://wordpress.org/support/users/debra15/)
 * (@debra15)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15502182)
 * add_filter(‘woe_get_order_value_custom_subtotal’,function ($value, $order,$fieldname){
 *  $value =wc_format_decimal($order->get_subtotal(), $dp) + wc_format_decimal($
   order->get_cart_tax(), $dp) – wc_format_decimal($order->get_total_discount(),
   $dp);
    return $value; },10,3);
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15502642)
 * please, edit your code and replace $dp with 2 .
 * if you still see the warning — please, submit your settings as new ticket to 
   [https://algolplus.freshdesk.com/](https://algolplus.freshdesk.com/) . Use tab
   Tools to get them.
 *  Thread Starter [debra15](https://wordpress.org/support/users/debra15/)
 * (@debra15)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15508701)
 * Thank you!!
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15508934)
 * You’re welcome

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

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/php-warning-350/#post-15508934)
 * Status: resolved