Title: PHP Fatal error: Uncaught TypeError: unserialize()
Last modified: August 17, 2023

---

# PHP Fatal error: Uncaught TypeError: unserialize()

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unserialize/)
 * Hi, This came up today:
 * [17-Aug-2023 10:59:06 UTC] PHP Fatal error: Uncaught TypeError: unserialize():
   Argument #1 ($data) must be of type string, array given in /home/wp-content/plugins/
   basepress/includes/class-basepress-utils.php:1125
 * It only occurs if I use a persistent object cache (or more specifically, I am
   using Docket Cache. Apparently, the values of the options as stored in the cache
   get unserialized while still being linked/referenced to the cache or are stored
   before being serialized or something.
 * Thanks

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

 *  Plugin Author [BasePress](https://wordpress.org/support/users/codesavory/)
 * (@codesavory)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unserialize/#post-17000381)
 * We are working on an update asap. Will revert to this thread again once the update
   is deployed.
 * [Sorry, due to technical reasons, email alerts were not delivered to us. Hence
   to delay in reverting]
 *  Plugin Author [BasePress](https://wordpress.org/support/users/codesavory/)
 * (@codesavory)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unserialize/#post-17000558)
 * An update to the plugin is released today. Please update to latest version and
   these errors should be resolved. ​

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

The topic ‘PHP Fatal error: Uncaught TypeError: unserialize()’ is closed to new 
replies.

 * ![](https://ps.w.org/basepress/assets/icon-256x256.gif?rev=2817400)
 * [Knowledge Base documentation & wiki plugin - BasePress Docs](https://wordpress.org/plugins/basepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basepress/)
 * [Active Topics](https://wordpress.org/support/plugin/basepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basepress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [BasePress](https://wordpress.org/support/users/codesavory/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unserialize/#post-17000558)
 * Status: resolved