Title: PHP Warning: Undefined array key &#8220;hide_order_lines&#8221;
Last modified: May 10, 2026

---

# PHP Warning: Undefined array key “hide_order_lines”

 *  [niburu](https://wordpress.org/support/users/niburu/)
 * (@niburu)
 * [1 week, 6 days ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-hide_order_lines/)
 * Iam getting this PHP Warning:
 * PHP Warning: Undefined array key “hide_order_lines” in mollie-payments-for-woocommerce/
   src/Payment/Request/Middleware/OrderLinesMiddleware.php:44
 * Any idea how to fx this?

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

 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [1 week, 6 days ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-hide_order_lines/#post-18904150)
 * Hello [@niburu](https://wordpress.org/support/users/niburu/)
 * This is a bit of a pain task, but fortunately, it should be a quick fix. Please
   go to: `/wp-admin/admin.php?page=wc-settings&tab=mollie_settings&section=mollie_payment_methods`
 * Then open _manage payment method_ one by one. You do not need to actually change
   the configuration, but you need to trigger the “Save changes” action for each
   method. For example:
    - add an “x” in the description field
    - remove it
    - click “Save changes”
 * Repeat this for each payment method. This forces WooCommerce to rewrite the full
   settings array to the database, including the `hide_order_lines` key. After that
   should return a proper array, and the PHP warning should disappear.
 * Kind Regards,
   Krystian
 *  Thread Starter [niburu](https://wordpress.org/support/users/niburu/)
 * (@niburu)
 * [6 days, 16 hours ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-hide_order_lines/#post-18910206)
 * [@inpsydekrystian](https://wordpress.org/support/users/inpsydekrystian/)
 * I tried it several times. Sadly the error is not gone.
 * [17-May-2026 08:08:50 UTC] PHP Warning: Undefined array key “hide_order_lines”
   in ************************/plugins/mollie-payments-for-woocommerce/src/Payment/
   Request/Middleware/OrderLinesMiddleware.php on line 44
 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [5 days, 22 hours ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-hide_order_lines/#post-18910646)
 * Hello [@niburu](https://wordpress.org/support/users/niburu/)
 * To keep you updated. I created an issue for this and forwarded it to the developers.
   We’re currently waiting for feedback, and I’ll update you as soon as I hear back.
 * Kind regards,
   Krystian

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-undefined-array-key-hide_order_lines%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/mollie-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3090580)
 * [Mollie Payments for WooCommerce](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * Last activity: [5 days, 22 hours ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-hide_order_lines/#post-18910646)
 * Status: not resolved