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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I am trying to sync menus on my site hidden link using WPML. I click the Sync button, choose a single row, then click apply changes.
Symptoms:
The loading indicator shows 'Syncing menus 0 of 1' until it times out.
Questions:
Why does the menu syncing process time out?
How can I successfully sync menus using WPML?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
Could it be that the item that you are trying to sync depends on a parent menu item that has not been synced yet?
What if you mark all the entries and sync the complete menu?
---
We recommend taking a backup of your site and database before proceeding.
Please go to Plugins > Add new > Commercial and install the latest versions of our plugins. If you can not yet see the updates, click "Check for WPML Updates".
Also, make sure that any other plugins used on the site are updated.
Now, test if the issue persists and let us know if further assistance is needed.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further.
The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up the site and database before granting us access.
If you cannot see the "wp-admin / FTP" fields, your post and site credentials will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private reply form looks like this: hidden link
The next time you reply, click on "I still need assistance".
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
According to WordPress the "intl" extension for PHP is not installed on the server.
The intl PHP extension is a powerful tool that provides internationalization (i18n) capabilities to PHP applications. It is part of the ICU (International Components for Unicode) library, which offers a wide range of services for handling internationalized text.
Could you please contact your hosting support and ask them to enable this extension?
Please also ask them to activate the "Imagick" extension.
If you could receive a MySQL I would also suggest performing an update to version 8.0 or higher.
In case these suggestions will not solve the issue, please reach out to me again.
I have now installed intl for php 8.0. I had to upgrade ubuntu as well, so I did that. It installed php 8.3, but I still use 8.0 in the server block (nginx) I have also upgraded mysql to 8.0.
The problem still exists unfortunately. What could I be missing?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I see there are now further notifications about other extensions.
I am not sure if those might be connected (maybe CURL), so I will now try to take a local copy of your site and test if I can replicate the issue on my virtual server.
This way I can also take a closer look into the database.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I migrating the site to localhost to test if I can recreate the issue on a virtual server and the issue does occur there, too.
Once I switch to a default theme like "Twenty Twenty-One" and test only with WPML the issue disappears, which means that some code in your child theme is causing the issue.
Further, I suspect that the cache plugin also is involved in the problem and the cache should be cleared before running WP Menus Sync.
Even though, on my functioning test the sync for one single menu item still took between 2-4 minutes.
Until now I was not able to figure out what exactly is causing the issue, and I would kindly like to ask you for some more patience.
I would suggest you create each menu manually in the meantime at Appearance > Menus.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
On my test, it actually also works with the Custom Theme but it takes very long to sync at least one item. It also seems to me that it only works if I clear the cache first.
I suggest you remove menus that are currently not in usage, like the "Nested Pages" and the "Language Switcher" menus in all languages.
Also, I suggest that you remove any plugins that do not currently have any purpose on your site, if any.
To successfully run the WP Menus Sync you might need to adjust the TimeLimit inside your PHP configuration file on your server. The limit is currently set to 5 minutes which is why you get the timeout error.
I have increased the timeout and will be running some tests. It seems like something is wrong when the sync for each item takes so long. Do you have any tips on how to debug this? I'm finding nothing in logs etc.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Yes, you are right - this should usually only take seconds to sync, but it might be related to the fact that the site uses 10 active languages.
Until now I have not found the cause for the issue, and the problem remains running the site only with WPML on a default theme with Twenty Twenty-One. The only difference is, the more plugins are active it seems to even take longer.
I am going to try today to replicate this issue on a test site with 10 active languages.
If I will not be able to replicate the issue, I will escalate a copy of your site to the second-tier support team for further revision.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I created a test site with 10 active languages and 50 original pages, from which most were translated into second languages. I created a huge menu that has more than 500 items.
Syncing this menu on my test site takes around 5 minutes which seems to be an expected timeframe for such a complex task. I am asking currently the second-tier support for confirmation.