Title: Uncaught TypeError
Last modified: September 5, 2021

---

# Uncaught TypeError

 *  Resolved [zimmerx](https://wordpress.org/support/users/zimmerx/)
 * (@zimmerx)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-53/)
 * Hi,
    Can you help me to resolve this issue?
 * I’m running WordPress on PHP 8.0
 * Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array,
   int given in wp-content/plugins/gbi-buy-now/funciones/funciones.php:42
 *     ```
       Stack trace:
       #0 /wp-includes/class-wp-hook.php(303): gbibn_comprobar_sesion()
       #1 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
       #2 /wp-includes/plugin.php(470): WP_Hook->do_action()
       #3 /wp-includes/template-loader.php(13): do_action()
       #4 /wp-blog-header.php(19): require_once('...')
       #5 /index.php(17): require('...')
       #6 {main}
         thrown, file: /wp-content/plugins/gbi-buy-now/funciones/funciones.php, line: 42
       ```
   

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

 * ![](https://s.w.org/plugins/geopattern-icon/gbi-buy-now_6b8089.svg)
 * [Garber Buy Now Button](https://wordpress.org/plugins/gbi-buy-now/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gbi-buy-now/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gbi-buy-now/)
 * [Active Topics](https://wordpress.org/support/plugin/gbi-buy-now/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gbi-buy-now/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gbi-buy-now/reviews/)

## Tags

 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * 0 replies
 * 1 participant
 * Last reply from: [zimmerx](https://wordpress.org/support/users/zimmerx/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-53/)
 * Status: resolved