Title: PHP8 error
Last modified: January 23, 2023

---

# PHP8 error

 *  Resolved [Marco Schmoecker](https://wordpress.org/support/users/marcosf/)
 * (@marcosf)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php8-error-9/)
 * We’re seeing the following PHP (v8.0.x) error. Is this something you could address
   in a future plugin update? Thank you!
 *     ```wp-block-code
       PHP Fatal error:  Uncaught Error: Object of class WP_Error could not be converted to string in /.../wp-includes/pluggable.php:1436
       Stack trace:
       #0 /.../wp-includes/pluggable.php(1436): str_replace(' ', '%20', Object(WP_Error))
       #1 /.../wp-includes/pluggable.php(1512): wp_sanitize_redirect(Object(WP_Error))
       #2 /.../wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-api.php(728): wp_safe_redirect(Object(WP_Error), 302)
       #3 /.../wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php(291): WPML_WP_API->wp_safe_redirect(Object(WP_Error))
       #4 /../wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php(345): WPML_Query_Parser->maybe_redirect_to_translated_taxonomy(Object(WP_Query), 'ja')
       #5 /.../wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3310): WPML_Query_Parser->parse_query(Object(WP_Query))
       #6 /.../wp-includes/class-wp-hook.php(308): SitePress->parse_query(Object(WP_Query))
       #7 /.../wp-includes/ in /code/wp-includes/pluggable.php on line 1436
       ```
   

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

 *  [Dragos](https://wordpress.org/support/users/dragosvrejiu/)
 * (@dragosvrejiu)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php8-error-9/#post-16402796)
 * Hello,
   Thank you for reaching out to us!Are you using TranslatePress and WPML
   together? In case you do, please note that those two plugins do not work well
   one with another. Best wishes,
 *  Thread Starter [Marco Schmoecker](https://wordpress.org/support/users/marcosf/)
 * (@marcosf)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php8-error-9/#post-16405010)
 * Hi Dragos,
   Sorry, I did not realize that the error message is for/from WPML. 
   We’re not using them at the same time and that plugin got removed. Please disregard
   this message. I’ll open a new ticket when I see the error message related to 
   Translatepress.

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

The topic ‘PHP8 error’ 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: [Marco Schmoecker](https://wordpress.org/support/users/marcosf/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php8-error-9/#post-16405010)
 * Status: resolved