• Resolved debra15

    (@debra15)


    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

    (@algolplus)

    hi

    Do you see this message if you use button “Export without progressbar” ?

    Does your hosting use load balancer ?

    thanks, Alex

    Thread Starter debra15

    (@debra15)

    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

    (@algolplus)

    please, open section “Misc Settings”, copy PHP code and paste it here .

    Thread Starter debra15

    (@debra15)

    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

    (@algolplus)

    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/ . Use tab Tools to get them.

    Thread Starter debra15

    (@debra15)

    Thank you!!

    Plugin Author algol.plus

    (@algolplus)

    You’re welcome

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Warning’ is closed to new replies.