This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate your site using WPML and WPBakery but encountered a PHP Fatal error: Uncaught TypeError related to the
substr()
function in the WPML plugin. Solution: We recommend updating your WPBakery Page Builder plugin to version 8.6.1. You can find the release notes and update instructions here: https://kb.wpbakery.com/docs/preface/release-notes/ If updating does not resolve the issue, try temporarily disabling all plugins except WPML and WPBakery Page Builder to isolate the problem. Ensure you take a full backup of your site before making any changes.
If these steps do not resolve your issue, or if the solution provided here becomes outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us for further assistance.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to translate my site using WPML and WPBakery. I expected to see the translation page to translate my strings.
Symptoms:
Instead, I got a PHP Fatal error: Uncaught TypeError: substr(): Argument #1 ($string) must be of type string, array given in /var/www/vhosts/cambratgn360.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Divi/dynamic-content.php:81.
Questions:
How can I resolve the PHP Fatal error related to substr() in the WPML plugin?
I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated, if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.
If I need to debug the problem further, I would like to ask if it's possible to replicate your site locally. I'll need to install a "Duplicator" temporarily or "All In One Migration" plugin on your site. This will allow me to create a copy of your site and your content. If you prefer to do it independently, you can provide the snapshot and send me the zipped package you downloaded.