Title: Uncaught TypeError
Last modified: November 27, 2023

---

# Uncaught TypeError

 *  [rbrynest](https://wordpress.org/support/users/rbrynest/)
 * (@rbrynest)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-84/)
 * Got this Error message in the WordPress backend when I tried to click on the **
   Set up** button next to the BitPay Payment methods:
 * Uncaught TypeError: strtoupper(): Argument #1 ($string) must be of type string,
   null given in /var/www/norskmynthandel.no/htdocs/wp-content/plugins/bitpay-checkout-
   for-woocommerce/build/BitPayLib/class-bitpaypaymentsettings.php:91
   Stack trace:#
   0 /var/www/norskmynthandel.no/htdocs/wp-content/plugins/bitpay-checkout-for-woocommerce/
   build/BitPayLib/class-bitpaypaymentsettings.php(91): strtoupper()#1 /var/www/
   norskmynthandel.no/htdocs/wp-content/plugins/bitpay-checkout-for-woocommerce/
   build/BitPayLib/class-bitpaypluginsetup.php(64): BitPayVendor\BitPayLib\BitPayPaymentSettings-
   >check_token()#2 /var/www/norskmynthandel.no/htdocs/wp-includes/class-wp-hook.
   php(324): BitPayVendor\BitPayLib\BitPayPluginSetup->bitpay_checkout_check_token()#
   3 /var/www/norskmynthandel.no/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook-
   >apply_filters()#4 /var/www/norskmynthandel.no/htdocs/wp-includes/plugin.php(
   517): WP_Hook->do_action()#5 /var/www/norskmynthandel.no/htdocs/wp-admin/admin-
   header.php(303): do_action()#6 /var/www/norskmynthandel.no/htdocs/wp-admin/admin.
   php(239): require_once(‘…’)#7 {main}thrown
 * I’ using WordPress 6.4.1, Bricks 1.9.2, BitPay Checkout for WooCommerce 5.3.1.
 * PHP version is 8.1.25
 * Could you please look into this error so I can use the plugin?
 * Thanks in advance.
 * Kind regards
   Rune
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-84%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [BitPay](https://wordpress.org/support/users/bitpay/)
 * (@bitpay)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-84/#post-17234140)
 * Thanks for reaching out [@rbrynest](https://wordpress.org/support/users/rbrynest/)–
   could you also share the following?
    - Which version of WooCommerce you’re running
    - Which PHP extensions are installed
    - All other plugins and their versions
 * Finally, did you enable the method prior to clicking `Finish set up`?
 * Thanks again!

Viewing 1 replies (of 1 total)

The topic ‘Uncaught TypeError’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [BitPay](https://wordpress.org/support/users/bitpay/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-84/#post-17234140)
 * Status: not resolved