This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing a deprecated error message when editing the Elementor Header using the WPML SEO plugin. The error message indicates an issue with the 'urlencode()' function in the 'class-wpml-wpseo-filters.php' file. Solution: We recommend disabling the debug mode in WordPress to prevent this warning from being displayed. This can be done by editing the
wp-config.php
file and ensuring the following line is included:
define('WP_DEBUG_DISPLAY', false);
For more details on debugging in WordPress, please visit: https://wordpress.org/documentation/article/debugging-in-wordpress/ Additionally, updating the WPML SEO plugin to the latest version (2.2.3 or higher) might resolve the issue. Updates can be checked and applied from the 'My Account → Downloads' section on our site or through the 'Plugins → Add New Plugin → Commercial' tab in WordPress.
If this solution does not apply to your case, or if it seems 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 issue persists, please open a new support ticket at WPML support forum 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.
Symptoms:
I received the following error message: 'Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /…/public/wp-content/plugins/wp-seo-multilingual/classes/YoastSEO/class-wpml-wpseo-filters.php on line 131'.
Questions:
How can I resolve the deprecated error message when editing the Elementor Header?
Is this issue related to WPML or another plugin?
This warning will not affect the functionality of the plugin or your site — it’s simply an alert. It will be fixed in a future version of the WPML SEO plugin.
In the meantime, to prevent unwanted warnings or errors from being displayed to your visitors, we recommend disabling debug mode in WordPress. This helps ensure a smoother user experience. You can do this by editing your wp-config.php file and adding or modifying the following line:
Can I kindly ask you for access so I can double-check this warning message?
Have you also tested this on your staging site by temporarily deactivating all plugins except WPML and your SEO plugin to see if the warning still appears?
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.