The client is experiencing a PHP deprecation warning on custom post type pages when using the WPML SEO plugin with PHP version 8.3.19. The error message appears under the header, as indicated in the debug log.
Solution:
We have identified that this issue stems from a compatibility problem with PHP 8.3.19. Although this warning does not affect the functionality of the plugin or the site, it can be visually disruptive. We recommend disabling the debug mode in WordPress to prevent such warnings from being displayed. You can do this by editing your wp-config.php file and ensuring the following line is included:
define('WP_DEBUG_DISPLAY', false);
For more details on managing debug mode in WordPress, please refer to this article: Debugging in WordPress.
Please note that this solution might become irrelevant if it's outdated or not applicable to your specific case. 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.