Skip Navigation

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.

If you need further assistance, please contact us on our support forum: https://wpml.org/forums/forum/english-support/.

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 8 replies, has 2 voices.

Last updated by Carlos Rojas 1 year, 2 months ago.

Assisted by: Carlos Rojas.

Author Posts
April 9, 2024 at 9:50 am #15498063

guillaumeA-9

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
April 9, 2024 at 3:33 pm #15500236

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

Please follow the steps described in this message: https://wpml.org/forums/topic/wpml-error-16/#post-15333270 and let me know if the issue disappeared.

Regards,
Carlos

April 9, 2024 at 5:24 pm #15500735

guillaumeA-9

Hello!

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 can't save changes in my menus...

Thank you and have a nice day

April 10, 2024 at 9:07 am #15503130

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you very much for your feedback.

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.

April 11, 2024 at 11:13 am #15508722

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,

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.

Could you confirm that the issue was solved?

April 15, 2024 at 2:37 pm #15520864

guillaumeA-9

Hello Carlos !

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

Thank you for your work and have a nice day !

Image1.png
April 16, 2024 at 8:59 am #15523632

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,
I'm happy to hear that the issue is solved.

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.

Regards,
Carlos

April 16, 2024 at 11:00 am #15524395

guillaumeA-9

Thank you for your prompt and invaluable help !

April 16, 2024 at 1:10 pm #15525554

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.

Have an excellent day!