[Resolved] Menu don't save and delete all my entries
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to save changes to their menus, and menu language synchronization was not working. They encountered an error code indicating an issue with a regular expression in a WPML file.
Solution: 1. We asked the client to follow the steps provided in a previous support topic, which can be found here: https://wpml.org/forums/topic/wpml-error-16/#post-15333270. 2. We identified that the cause of the issue was incorrect collation in some database tables. After fixing the database collation, the client should be able to add and translate menus as expected.
If you're experiencing similar issues, we recommend trying the steps mentioned above. However, please note that the solution might be irrelevant due to it being outdated or not applicable to your case. If the problem persists, we encourage you to open a new support ticket. We also 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.
I am trying to: save my menu and it's disapear, and before that, sync my menu languages dont work...
Full explication and video demo here:
hidden link
The error code I got just before : Warning:
preg_match(): Unknown modifier '(' in /home/clients/1ef4e87071a3767f62ee1cfa4fd380ba/web/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-integration.php on line 167
I've followed the procedure in the other topic. The problem hasn't been solved. As you can see in my Loom video, it's the menus that don't register properly!
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to back up the site before providing us access. If we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
The cause of the issue was the incorrect collation in some tables in the database. This has been already fixed and now you can add the menus and translate them as expected.
I think it's OK. I've been able to redo everything properly, my menu works and saves correctly.
Do you have any idea what the problem was ? What caused this error ?
I had one more problem, after synchronising the menus, I wanted to remove some sections from the German (because the German site is less complete) and it gave me an error, but it still works.
Warning: preg_match(): Unknown modifier '(' in /home/clients/1ef4e87071a3767f62ee1cfa4fd380ba/web/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-integration.php on line 167
I don't have enough information to know what caused this issue, but the incorrect collation generally happens after a migration or an incorrect database configuration from the beginning.