Title: PHP errors
Last modified: May 18, 2022

---

# PHP errors

 *  [Michael Sumner](https://wordpress.org/support/users/xmic/)
 * (@xmic)
 * [4 years ago](https://wordpress.org/support/topic/php-errors-271/)
 * Hello,
 * I’m unable to view the post meta due to some PHP 7+ issues encountered.
 * Could you push an update to resolve the following?
 * `Fatal error: Uncaught ValueError: mb_strlen(): Argument #2 ($encoding) must 
   be a valid encoding, "utf8mb4" given in /wp-content/plugins/tdd-debug-bar-post-
   meta/class-debug-bar-post-meta.php on line 54`
 * This was solved by returning the public function…
 * `Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type
   Countable|array, string given in /wp-content/plugins/tdd-debug-bar-post-meta/
   class-debug-bar-post-meta.php on line 40`
 * This was solved by using `boolval($key)`
 * Kind regards,
    Mike

The topic ‘PHP errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tdd-debug-bar-post-meta_e2e2e2.svg)
 * [Debug Bar Post Meta](https://wordpress.org/plugins/tdd-debug-bar-post-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tdd-debug-bar-post-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tdd-debug-bar-post-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/tdd-debug-bar-post-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tdd-debug-bar-post-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tdd-debug-bar-post-meta/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Michael Sumner](https://wordpress.org/support/users/xmic/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/php-errors-271/)
 * Status: not resolved