- Status
- Resolved
- Related plugin/theme
- Houzez
- Topic tags
- Compatibility
Overview of the issue
If your website is running on PHP 8 and you attempt to translate a page using Houzez Elementor widget, Houzez Icon Box, you will find the following error:
PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in ,,,/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-string-registration.php:95
Workaround
- Go to WPML > Configuration > Custom XML Configuration.
- Add the following code:
- Try to translate your page again.