Title: Type error when running PHP 8.1
Last modified: November 28, 2023

---

# Type error when running PHP 8.1

 *  Resolved [Clayton Collie](https://wordpress.org/support/users/claytoncollie/)
 * (@claytoncollie)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/type-error-when-running-php-8-1/)
 * Hello. I am running into an error when running WP 6.4.1, TP latest, and PHP 8.1.
   Can you see if there is something I need to dow ith my configuration or or if
   you can push up a code fix?
 * Uncaught TypeError (500): count(): Argument #1 ($value) must be of type Countable
   |array, null given in /var/www/html/wordpress/wp-content/plugins/translatepress-
   multilingual/includes/class-editor-api-regular-strings.php:140

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

 *  Plugin Support [Anca](https://wordpress.org/support/users/ancavictoria/)
 * (@ancavictoria)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/type-error-when-running-php-8-1/#post-17239341)
 * Hello,
 * Thank you for reaching out to us!
 * Can you please tell me when this error appears for you? Or do you only see it
   in the log?
 * Kind Regards,
 * Anca
 *  Thread Starter [Clayton Collie](https://wordpress.org/support/users/claytoncollie/)
 * (@claytoncollie)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/type-error-when-running-php-8-1/#post-17239782)
 * Only the logs.

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

The topic ‘Type error when running PHP 8.1’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Clayton Collie](https://wordpress.org/support/users/claytoncollie/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/type-error-when-running-php-8-1/#post-17239782)
 * Status: resolved