Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:

The debug log is showing multiple notices indicating that the creation of dynamic property wpml_cms_nav_cache::$cache_to_option is deprecated.

Solution:

If you're experiencing this issue, we recommend deactivating the WPML CMS Nav plugin as it is not essential for the operation of WPML or String Translation.

Alternatively, you can set the debug mode to false to temporarily resolve the issue. To do this, add or modify the following code in your wp-config.php file:

define('WP_DEBUG', false);

Please ensure to back up your site before making these changes.

If this solution does not apply to your case, or if it 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 further assistance is needed, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Bigul 1 year, 1 month ago.

Assisted by: Bigul.

Author Posts
March 21, 2025 at 8:41 am #16843155

wannesD

The debug log is showing the following notices serval times

PHP Deprecated: Creation of dynamic property wpml_cms_nav_cache::$cache_to_option is deprecated in ***\wp-content\plugins\wpml-cms-nav\inc\cache.class.php on line 37

March 21, 2025 at 9:04 am #16843324

Bigul

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

This alert won't affect the normal functioning of your site. The best option is you can deactivate the WPML CMS Nav plugin. Becuase it is not required for your site and it is not mandatory for the working of WPML or String translation.

Or as a temporary workaround, we recommend setting debug mode to false by adding or changing the following code in your wp-config.php file, located at the root of your WordPress installation:

define('WP_DEBUG', false);

This should help to resolve the issue until a permanent solution is implemented in future releases. Please try it after a site backup and let us know your feedback.

--
Thanks!

Bigul