Skip Navigation

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

Problem:
The client is experiencing an issue when trying to translate their website into Romanian, receiving the error: 'Updating failed. The response is not a valid JSON response.' This occurs when the Phlox Portfolio and Yoast SEO plugins are activated.

Solution:
We recommend two approaches:
1. Use the WPML Translation Editor to create or update the Romanian translation, which should prevent the error message from appearing.

2. If the error message is ignored, the page can still be updated, but be aware that it will be overridden when the WPML Translation Editor is used to update the translation. For more information, please refer to the documentation.

To copy page settings like content layout and title bar to the Romanian translation without manual editing, follow these steps:
- Go to WPML > Settings > Custom Fields Translation section.
- Enable the option 'Show "Multilingual Content Setup" meta box on post edit screen.' and save changes.
- Edit the homepage in English, scroll down, select theme setting fields (e.g., content_layout, aux_title_bar_title_show), set them to 'Copy', click on Apply, and update the page.
- Update the translation page with WPML Translation Editor without manual editing.
For more details, check the documentation.

If the client can also reach out to the theme support for a list of setting fields.

If this solution does not seem relevant, please open a new support ticket with us.

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 10 replies, has 3 voices.

Last updated by Long Nguyen 1 year, 6 months ago.

Assisted by: Long Nguyen.

Author Posts
October 20, 2023 at 10:46 am #14622695

aleksandarP

Hello, the website naturafood.net has 3 languages: English - main, Bulgarian and Romanian.
I already translated the whole website from English to Bulgarian but when I tried to translate the site into Romanian i got this error: Updating failed. The response is not a valid JSON response.

If you need i will send you login details.

Screenshot 2023-10-20 at 13.45.25.png
October 20, 2023 at 11:21 am #14622793

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

I created a custom search URL for you so that you can quickly find the existing support tickets that are based on the same topics and that already contain solutions shared by my colleagues:
hidden link

This way, you might find the solution faster and we might spend less time on this ticket.

Please take a look over the first results and let me know if you managed to get this resolved.

I will be waiting for your response.

Mihai Apetrei

October 20, 2023 at 12:33 pm #14623437

aleksandarP

I saw the results but none worked for me.

I still need assistance

October 20, 2023 at 1:26 pm #14623841

aleksandarP

If u need i will provide wp-admin pass and FTP credentials.

October 23, 2023 at 9:52 am #14635685

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Aleksandar,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

October 24, 2023 at 2:29 am #14641849

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The error message appears when two plugins activated: Phlox Portfolio and Yoast SEO. However, I see that:

1. No fatal error is recorded in the WordPress debug log and the change is still saved.
2. You are using WPML Translation Editor to translate the homepage to the Bulgarian language.

I suggest:

1. (Recommended) Use the WPML Translation Editor to create/update the translation in the Romanian language and you won't see the error message.

2. Ignore the message and still update the page, but this will be overridden when you use WPML Translation Editor to update the translation. Refer documentation https://wpml.org/faq/why-arent-my-translations-showing/

I think you want to edit the homepage in Romanian language manually to setup the page settings like content layout, title bar ... To copy those settings to the translation page without manually editing, please follow steps below:

1. Go to WPML > Settings > Custom Fields Translation section > Enable option "Show "Multilingual Content Setup" meta box on post edit screen." > Save changes.
2. Edit the homepage in English language > Scroll down > Select some setting fields of the theme (content_layout, aux_title_bar_title_show ...) > Set the preference to "Copy" > Click on Apply > Update the page.
3. Now you can update the translation page with WPML Translation Editor without manually editing the translation page.
Refer documentation https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

You can also contact theme support to get the list of setting fields on their side.

Look forward to your reply.
Thanks

Edit Page “Home” ‹ Natura Food — WordPress 2023-10-24 09-25-59.png
October 24, 2023 at 4:26 pm #14649675

aleksandarP

Hi again,

I made everything that you told me.
I have problem with duplicate the content of the page.
For example take a look into these pages:
1. hidden link and hidden link
2. hidden link and hidden link

The layout is completely different.

I want to say again that I hadn't any problems translating the site from English to Bulgarian.

Please give me some advice on how to fix the problems.

Regards

October 24, 2023 at 4:30 pm #14649743

aleksandarP

Some screenshots from the links which i sent in the previous reply.

Screenshot 2023-10-24 at 19.25.27.png
October 25, 2023 at 2:27 am #14651813

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Those issues happen because there is no Portfolio post translated into Romanian language to display in the section Grid Porfolios. I've translated one post into Romanian and the layout displays the same as in English, and Bulgarian languages.

Can you please recheck this?

Portfolios ‹ Natura Food — WordPress 2023-10-25 09-23-34.png
October 25, 2023 at 1:13 pm #14661103

aleksandarP

Hi again,

I think that the problems are resolved now.
Thank you very much.
Top support!

Best Regards!

October 26, 2023 at 1:11 am #14665739

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I'm going to mark this ticket as Resolved. Feel free to contact us again if you have any questions.

Thanks and have a good day.