Skip Navigation

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

Problem:
The client is experiencing an issue where the gear icon keeps spinning indefinitely after clicking 'complete translation' in WPML's Advanced Translation Editor. Additionally, the client faces difficulties with shortcode translations not being recognized even after adding custom XML configurations.
Solution:
1. For the spinning gear icon issue, increasing the memory limit in the

config.php

file and adjusting the

MaxInputVars

settings resolved the problem.
2. Regarding the shortcode translation issue, the client should navigate to WPML --> Settings --> Custom XML Configuration to add the necessary XML code. After adding the code, update the original page to see if the changes take effect.

If these steps do not resolve your issues or if the solution seems outdated, we recommend opening a new support ticket. Additionally, please check the related known issues and ensure you have the latest versions of themes and plugins installed. For further assistance, you can also visit our 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.

This topic contains 5 replies, has 1 voice.

Last updated by Paola Mendiburu 2 weeks, 5 days ago.

Assisted by: Paola Mendiburu.

Author Posts
April 2, 2025 at 3:47 pm #16887907

gerbenD-6

Background of the issue:
I am trying to translate pages in English and German using WPML's Advanced Translation Editor (ATE) on my site hidden link. I follow the process by clicking on the gear icons in the pages overview, checking the values, and clicking on 'complete translation'.

Symptoms:
The gear icon changes to a renew icon, but it keeps spinning forever. I have to make a copy of the page, then do it to the copies, and it sometimes works. I then have to remove the original page and replace it with the right one. It is complicated and not workable.

Questions:
Why does the gear icon keep spinning forever after I click 'complete translation'?
How can I resolve the issue of having to make copies of pages to complete translations?

April 3, 2025 at 8:22 am #16890364

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

ello,

Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.

Does it happen with multiple posts/pages translation? Please visit WPML>>Support>>Advanced Translation Editor>>Error Logs and check if you are getting any recent warnings or errors.

I have a request. Please upgrade the following configurations for better performance of the site.

1) Increase *WP Memory Limit* to *256*(the minimum required memory limit for WPML is *128*). Please check the following links for more details

https://wpml.org/home/minimum-requirements/

https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

2) Increase the *MaxInputVars* of PHP settings to *10000*. Please check the following article for more details or contact your system admin/hosting provider for this purpose.

hidden link

--
Thanks!

Bigul

April 3, 2025 at 9:45 am #16891060

gerbenD-6

Bigul,

The memory I could allocate, but the InputVars I need my ISP for.
In the mean time I am trying to fix an issue with my theme Enfold. In enfold I use a shortcode of WP Booking Calendar. This booking calendar is not WPML proof. So I have to make the shortcode visible in WPML.

I am in contact with Enfold devs and they asked me to relay this to you:

We would like to try to override the WPML > Settings (https://wpml.org/documentation/support/language-configuration-files/overriding-language-configuration-files/), but a script error prevents us from saving the changes. This is the error:

----

Uncaught SyntaxError: Unexpected token '<' (at hidden link)

Line:8

ateDashboard(params);
<pre style="padding:1em; background-color: #f8f8f8; color: #0a001f"><?xml version="1.0" encoding="UTF-8"?>
<shortcodes>
<shortcode>
<tag>av_codeblock</tag>
<attributes>
<attribute>alb_description</attribute>
<attribute>av_uid</attribute>
<attribute>codeblock_type</attribute>

This might also be the reason why the Text Block and other elements are not translatable. Please forward this error to WPML-config.xml file in the child theme folder, then transfer its content into the WPML > Settings > Custom XML Configuration tab.

----

Can you help us with this?

April 3, 2025 at 11:01 am #16891491

gerbenD-6

PS. There are no errors in the log:
Advanced Translation Editor Error Logs

Date Event Description WPML Job ID ATE Job ID Extra data
No entries

April 3, 2025 at 11:20 am #16891609

gerbenD-6

Bigul,

It seems that the memory upgrade in config.php and MaxInputVars did the trick with the translations 🙂 Thanx a lot.

The only issue remaining is the shortcode translation.
This is the shortcode
[wpbs id="1" language="nl" title="no" legend="yes" legend_position="side" display="1" year="0" month="0" language="auto" start="1" dropdown="yes" jump="no" history="1" tooltip="1" highlighttoday="no" weeknumbers="no" show_first_available_date="no" form_id="1" form_position="bottom" auto_pending="yes" selection_type="multiple" selection_style="split" minimum_days="0" maximum_days="0" booking_start_day="0" booking_end_day="0" show_date_selection="no"]

Adding the code below to the wpml-config.xml file in the child-theme did not do the trick.
<wpml-config>
<shortcodes>
<shortcode>
<tag>wpbs</tag>
<attributes>
<attribute>id</attribute>
<attribute>language</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>

April 4, 2025 at 12:10 pm #16897320

Paola Mendiburu
WPML Supporter since 11/2020

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

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

Hi there!

This is Paola and I will continue with the ticket.

In order to add the xml code please go to WPML --> Settings --> Custom XML Configuration.

Then go to the original page and click on update.

Then let me know if appears.