Title: Undefined array key &#8220;cbt-limits&#8221;
Last modified: December 21, 2022

---

# Undefined array key “cbt-limits”

 *  [theozsnowman](https://wordpress.org/support/users/theozsnowman/)
 * (@theozsnowman)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-cbt-limits/)
 * since the latest WooCommoerce and WordPress upgrade this plugin has started throwing
   the following error:
   Undefined array key “cbt-limits” in public_html/wp-content/
   plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.phpnow its
   only a warning but what needs to be done to resolve the warning?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Afterpay](https://wordpress.org/support/users/afterpayit/)
 * (@afterpayit)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-cbt-limits/#post-16311594)
 * Hi [@theozsnowman](https://wordpress.org/support/users/theozsnowman/),
 * Thank you for your message.
 * It looks like there is currently unchecked access of that array key in the plugin.
   A check will be added in a future version to ensure that the code is only reached
   if it exists. In the meantime, going to the plugin settings (**Dashboard** > **
   WooCommerce** > **Settings** > **Payments** > **Afterpay**) and clicking **Save
   Changes** should generate the array key and therefore remove the warning.
 * If the above does not resolve the challenge, the team would be more than willing
   to assist with an investigation. To facilitate this, please submit a support 
   request including a link to this post using the following web form: [https://help.afterpay.com/hc/requests/new?ticket_form_id=193406](https://help.afterpay.com/hc/requests/new?ticket_form_id=193406)
 * A member of the team will then reach out to you within 1 business day.
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Undefined array key “cbt-limits”’ is closed to new replies.

 * ![](https://ps.w.org/afterpay-gateway-for-woocommerce/assets/icon.svg?rev=3261877)
 * [Afterpay Gateway for WooCommerce](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Afterpay](https://wordpress.org/support/users/afterpayit/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-cbt-limits/#post-16311594)
 * Status: not resolved