Title: Fatal error: Uncaught TypeError: count(): Argument #1 ($value)
Last modified: April 11, 2023

---

# Fatal error: Uncaught TypeError: count(): Argument #1 ($value)

 *  Resolved [t.yme1111](https://wordpress.org/support/users/tyme1111/)
 * (@tyme1111)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-count-argument-1-value/)
 * Suddenly getting fatal error with UpdraftPlus v.2.11.21.1 (see full site specs
   below). Error occurs on the Existing Backups (tabs shows 6), which shows no backups
   only the fatal error. Nothing loads for the following tabs: Settings, Advanced
   Tools, Premium/Extensions.
 * Nothing seems of concern in the log file. PHP incompatability?
 * `**Fatal error**: Uncaught TypeError: count(): Argument #1 ($value) must be of
   type Countable|array, string given in /home/equipafrica/e-quipafrica.org/wp-content/
   plugins/updraftplus/class-updraftplus.php:1207 Stack trace: #0 /home/equipafrica/
   e-quipafrica.org/wp-content/plugins/updraftplus/admin.php(4283): UpdraftPlus-
   >printfile('Database', Array, 'db', Array, Array, true) #1 /home/equipafrica/
   e-quipafrica.org/wp-content/plugins/updraftplus/admin.php(4363): UpdraftPlus_Admin-
   >raw_backup_info(Array, 1677279503, '8d3321f47d35') #2 /home/equipafrica/e-quipafrica.
   org/wp-content/plugins/updraftplus/admin.php(2955): UpdraftPlus_Admin->existing_backup_table(
   Array) #3 /home/equipafrica/e-quipafrica.org/wp-content/plugins/updraftplus/admin.
   php(2579): UpdraftPlus_Admin->settings_downloadingandrestoring(Array) #4 /home/
   equipafrica/e-quipafrica.org/wp-includes/class-wp-hook.php(308): UpdraftPlus_Admin-
   >settings_output('') #5 /home/equipafrica/e-quipafrica.org/wp-includes/class-
   wp-hook.php(332): WP_Hook->apply_filters('', Array) #6 /home/equipafrica/e-quipafrica.
   org/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/equipafrica/
   e-quipafrica.org/wp-admin/admin.php(259): do_action('settings_page_u...') #8 /
   home/equipafrica/e-quipafrica.org/wp-admin/options-general.php(10): require_once('/
   home/equipafri...') #9 {main} thrown in **/home/equipafrica/e-quipafrica.org/
   wp-content/plugins/updraftplus/class-updraftplus.php** on line **1207**`
 * Specs:
 *     ```wp-block-code
       UpdraftPlus WordPress backup plugin (https://updraftplus.com): 2.11.21.1 
       WP: 6.2 
       PHP: 8.1.9 (Linux bull-brogin 5.4.32-grsec-grsec-plus+ #1 SMP 
       Sat Apr 18 03:13:45 UTC 2020 x86_64) 
       MySQL: 8.0.28 
       Server: Apache safe_mode: 0 max_execution_time: 900 memory_limit: 256M (used: 8.9M | 10M) multisite: N mcrypt: N LANG:  ZipArchive::addFile: Y
       ```
   

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

 *  Plugin Contributor [bcrodua](https://wordpress.org/support/users/bcrodua/)
 * (@bcrodua)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-count-argument-1-value/#post-16647382)
 * Hi,
 * Please update the plugin to latest version **1.23.3**.
 * Thanks,
 * Bryle
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-count-argument-1-value/#post-16648159)
 * Your installed version of UpdraftPlus was released in December 2015 – it’s definitely
   time for an update! The version of PHP that you’re trying to run it on – PHP 
   8.1 – didn’t exist until November 2021, and has a lot of changes since versions
   that were current in December 2015 (at that time PHP 5.4 was the latest version).
 *  Thread Starter [t.yme1111](https://wordpress.org/support/users/tyme1111/)
 * (@tyme1111)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-count-argument-1-value/#post-16650307)
 * So, there has been a bigger issue, then: the installed UpdraftPlus has NOT been
   alerting to updates (or auto updating). What would cause that, for future reference?
 * I update this site within a day or two of any update notices for all plugins —
   at least weekly. Sure, lazy: I rely upon the WP updates prompt, rather than going
   to the individual plugin pages.
 * Guess a delete and reinstall is in order. Fixed.
    -  This reply was modified 3 years, 2 months ago by [t.yme1111](https://wordpress.org/support/users/tyme1111/).
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-count-argument-1-value/#post-16656768)
 * > What would cause that, for future reference?
 * Versions of UpdraftPlus beginning with 2.X are paid versions, purchased from 
   updraftplus.com. I believe that back in 2015, you only got notified of new versions
   if you kept your subscription up to date. (Though you would get emails when your
   subscription was ending – presumably at some point in 2016). Versions today will
   let you know that newer versions are available even if your subscription has 
   expired – that feature was added at some point in the intervening years.

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

The topic ‘Fatal error: Uncaught TypeError: count(): Argument #1 ($value)’ is closed
to new replies.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-count-argument-1-value/#post-16656768)
 * Status: resolved