Skip to content Skip to sidebar

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

Problem:
The client is working on a site and trying to translate content using a Google API map but encountered a syntax error in the console for the Italian page, indicating a potential issue with the translation of the map code.
Solution:
We recommend checking the Translation Editor to ensure that the Google Map code is correctly copied over to the translations. You can do this by accessing your pages list and clicking on the pencil icon to edit a translation with the editor. If the code is present and properly copied, this should resolve the syntax error. If you continue to experience issues or have questions about a different section, such as the FAQ, please open a new support ticket and provide detailed information along with your debug info.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, do not hesitate to contact our support team for further assistance.

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 6 replies, has 1 voice.

Last updated by Lucas Vidal de Andrade 3 weeks, 2 days ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
September 15, 2025 at 3:35 am #17400591

eamonnT

Background of the issue:
I am working on a site under development, mpvrentals.com, and I am trying to translate content using a Google API map.

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I use WPML to translate content with a Google API map?

September 15, 2025 at 3:37 am #17400597

eamonnT

help needed

September 15, 2025 at 3:38 am #17400598

eamonnT

the map is not being displaued on translated page and I need togo in and save to get the map to display I am using Spectra Editor

September 15, 2025 at 3:38 am #17400599

eamonnT

hidden link
see page with blanl map

September 15, 2025 at 3:40 am #17400600

eamonnT

see blank space

map.png
September 15, 2025 at 3:40 am #17400615

eamonnT

Also the FAQ section is NOT translated

faq.png
September 15, 2025 at 7:57 am #17400960

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hello there,

Regarding the Google Maps issue, I've checked the console for the Italian page, and noticed there's a syntax error. This indicates that's there's likely a difference between the code of the original and the translated map. Make sure to check inside the Translation Editor, if the Google Map code is present, and, if so, if it's properly copied over to the translations. You can do that by accessing your pages list, and clicking on the pencil icon to edit a translation with the editor. Let me know if the code is there and if you were able to fix it.

About the FAQ section, please open a new ticket for it with more details (how you translated it, if you emptied your caches and so on). Make sure to add your debug information to this new ticket, as it helps us address the issues more quickly. Due to our policy, we can only handle one issue per ticket. I appreciate your cooperation.

Regards,