Title: Uncaught TypeError on PodsInit.php (PHP 8.1)
Last modified: April 3, 2023

---

# Uncaught TypeError on PodsInit.php (PHP 8.1)

 *  Resolved [edshare](https://wordpress.org/support/users/edshare/)
 * (@edshare)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-on-podsinit-php-php-8-1/)
 * In the code block with the comment _// Clean up and sanitize all of the labels
   since WP will take them exactly as is._ there should be a validation if a label
   is an array
 *     ```wp-block-code
       Fatal error: Uncaught TypeError: htmlspecialchars_decode(): Argument #1 ($string) must be of type string, array given in /var/app/current/wp-content/plugins/pods/classes/PodsInit.php:2330
       ```
   

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

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-on-podsinit-php-php-8-1/#post-16632327)
 * Hi [@edshare](https://wordpress.org/support/users/edshare/)
 * This looks like it’s an installation issue since it shouldn’t not be an array.
   This is an array loop and it should only contain string values.
 * Can you provide more info on the exact label this occurs?
 * Cheers, Jory
 *  Thread Starter [edshare](https://wordpress.org/support/users/edshare/)
 * (@edshare)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-on-podsinit-php-php-8-1/#post-16632470)
 * Yes, you are correct. After running the tool to fix fields I removed It seems
   the error is no longer present. This is probably related to us upgrading from
   an way older version of Pods to the latest one.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-on-podsinit-php-php-8-1/#post-16632499)
 * Check, thank you for confirming!

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

The topic ‘Uncaught TypeError on PodsInit.php (PHP 8.1)’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-on-podsinit-php-php-8-1/#post-16632499)
 * Status: resolved