Skip to content Skip to sidebar

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

Problem:
If you're receiving deprecation warnings like 'Creation of dynamic property wpml_cms_nav_cache::$cache_to_option is deprecated' in your WordPress site using WPML CMS Nav plugin, this might be due to a conflict with PHP versions 8.3 and 8.2.
Solution:
We recommend setting the debug mode to false to temporarily resolve this issue. You can do this by adding or modifying the following line in your wp-config.php file:

define('WP_DEBUG', false);

Please ensure to back up your site before making this change. This workaround will suppress the warnings until a permanent fix is released in future updates of the WPML CMS Nav plugin.

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. Should you need further assistance, 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 2 replies, has 1 voice.

Last updated by Andrey 6 days, 20 hours ago.

Assisted by: Andrey.

Author Posts
August 16, 2024 at 2:43 pm #16078660

vickiW-2

Background of the issue:
not get deprecation warnings from the site

Symptoms:
Creation of dynamic property wpml_cms_nav_cache::$cache_to_option is deprecated
…at /var/www/com_fabtechexpo/wp-content/plugins/wpml-cms-nav/inc/cms-navigation.class.php

Questions:
why am i getting these warnings if everything is updated to the latest.

August 16, 2024 at 6:04 pm #16078973

Bigul

Hello,

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

This has already been escalated to our developers and will be fixed in the future version of WPML CMS Nav. This notification happens because of a conflict with the PHP 8.3 and 8.2 versions.

This alert won't affect the normal functioning of your site. 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

September 18, 2025 at 2:10 pm #17413752

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Just a follow-up on this issue: it will be addressed in future updates of the WPML CMS Nav plugin. The warnings are harmless to your site. You can continue using the workaround suggested earlier.

If you're not utilizing the features of the WPML CMS Nav plugin, you might consider deactivating it.