Title: Plugin throws errors
Last modified: January 11, 2025

---

# Plugin throws errors

 *  [ttodua](https://wordpress.org/support/users/ttodua/)
 * (@ttodua)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/plugin-throws-errors/)
 *     ```wp-block-code
       on php 8.2+ (latest WP version) we get this error after plugin activation (se WP_DEBUG & WP_DEBUG_DISPLAY to enabled):Warning: Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php on line 42 Warning: Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php on line 53 Warning: Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php on line 54 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/vendor/checkout/checkout-sdk-php/lib/Checkout/AbstractStaticKeysCheckoutSdkBuilder.php on line 42 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php:42) in /var/www/html/wp-admin/includes/misc.php on line 1438 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php:42) in /var/www/html/wp-includes/functions.php on line 7137 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php:42) in /var/www/html/wp-admin/admin-header.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php:42) in /var/www/html/wp-includes/option.php on line 1715 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/checkout-com-unified-payments-api/lib/class-checkout-sdk.php:42) in /var/www/html/wp-includes/option.php on line 1716
       ```
   
 * ![](https://i0.wp.com/i.imgur.com/wjGi0Rk.png?ssl=1)

Viewing 1 replies (of 1 total)

 *  Thread Starter [ttodua](https://wordpress.org/support/users/ttodua/)
 * (@ttodua)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/plugin-throws-errors/#post-18238447)
 * in lib/class-chechout.php in construct>get_option, there is no default, so it
   gets empty value. to workaround that, you should go to plugin’s settings page
   once and click save, so it would save some default options. then refresh page

Viewing 1 replies (of 1 total)

The topic ‘Plugin throws errors’ is closed to new replies.

 * ![](https://ps.w.org/checkout-com-unified-payments-api/assets/icon.svg?rev=3423692)
 * [Checkout.com Payment Gateway](https://wordpress.org/plugins/checkout-com-unified-payments-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/checkout-com-unified-payments-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/checkout-com-unified-payments-api/)
 * [Active Topics](https://wordpress.org/support/plugin/checkout-com-unified-payments-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/checkout-com-unified-payments-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/checkout-com-unified-payments-api/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ttodua](https://wordpress.org/support/users/ttodua/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/plugin-throws-errors/#post-18238447)
 * Status: not resolved