Skip to content Skip to sidebar

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

Problem:
You are trying to export a site configured with ACF fields into XLIFF and encounter an 'ERROR OCCURRED' message without additional information. You suspect incorrect settings on your localhost.
Solution:
The error may be due to spaces at the beginning of the theme files, which can obstruct output and print logs, leading to errors. We recommend disabling debug mode to resolve this issue. Additionally, ensure your language codes are correctly configured by checking the following documentation on language codes: https://wpml.org/forums/topic/show-country-code-in-language-switcher/

If this solution does not apply to your case, or if it seems outdated, we highly recommend opening a new support ticket. Also, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can contact us directly through 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.

Tagged: 

This topic contains 13 replies, has 0 voices.

Last updated by alessandraP-5 3 weeks, 3 days ago.

Assisted by: Shekhar Bhandari.

Author Posts
July 14, 2025 at 9:46 am #17232825

alessandraP-5

Background of the issue:
I want to export a site configured with ACF fields into XLIFF. I am working on localhost and suspect I have incorrect settings.

Symptoms:
I receive an 'ERROR OCCURRED' message without any additional information.

Questions:
How do I correctly configure ACF fields for XLIFF export?
What settings might be causing the error during XLIFF export?

July 17, 2025 at 11:47 am #17245629

alessandraP-5

Hi, I have the website online now. I tried to export the xliff and it does not work still.
Which info would you need from my side? I have a custom theme and I use ACF.

The url is hidden link.

Thank you and regards,
Alessandra

error_wpml.JPG
July 18, 2025 at 4:31 am #17248596

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

July 18, 2025 at 8:24 am #17248976

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The ftp details is not working for me, can you check? I have enabled the private reply again.

Also, It looks like there is some php error happening on your site which is creating the problem, being so can you please follow the below steps and share me the results.

1. Add the following code to your wp-config.php

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

https://wpml.org/documentation/support/debugging-wpml/

2. Repeat the action of creating the problem.

3. Copy and paste the contents of debug.log (log file inside the /wp-content/ directory) here for me to see. https://wpml.org/documentation/support/debugging-wpml/#how-to-send-debug-log-to-the-supporters

Look forward to your reply.

Thanks

July 21, 2025 at 2:59 am #17253564

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The ftp file is still not working.

Can you instead provide me wp-content and database backup of your site, you can zip those files and share the links with me. This way I will replicate your site on my localhost for further debugging.

Look forward to your reply.

Thanks

July 21, 2025 at 7:40 pm #17257240

alessandraP-5

Hi here is the wp content and sql dump

July 21, 2025 at 7:42 pm #17257242

alessandraP-5

I am so sorry, I hit enter too fast and it did not attach the zip..

July 22, 2025 at 3:23 am #17257679

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

You need to zip those files and share using a file sharing platforms like google drive, it's not possible to attach the files here.

I have enabled the private reply for you.

Thanks

July 22, 2025 at 10:46 am #17258758

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

It looks like you have disabled the editor for the pages using the following code on your theme functions.php file

add_action('admin_menu', function() {
remove_post_type_support('page', 'editor'); // Deaktiviert Editor für Seiten
remove_post_type_support('post', 'editor');
});

Due to this there is no content for translations only titles, if I remove the code and resend for translations I can download the xliff file, can you please check it on your end and see if it helps.

Look forward to your reply.

Thanks

July 22, 2025 at 10:59 am #17258934

alessandraP-5

Hi, I activated gutenberg for pages to test it, but it did not work for me. Same error.
Btw: I do not want to activate Gutenberg, it should be deactivated. Can I export XLIFF anyways? It should extract all the strings from ACF.

Best regards,
Alessandra

July 22, 2025 at 12:24 pm #17259191

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I can see the issue on my local site on pages where there is acf fields

Can you please disable debug from your local site and see if the Xliff export works, go to wp-config.php file and remove this declarations

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

and use

@ini_set('display_errors', 0);
@ini_set('display_startup_errors', 0);
error_reporting(0);

define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', false );

Also your theme index.php file is not correct plus, few theme files has spaces in the beginning, like functions.php, please check and correct them accordingly and see if it helps.

Look forward to your reply.

Thanks

July 22, 2025 at 12:54 pm #17259397

alessandraP-5

Hi,

it worked after your setup in my wp-config.php. Please do not install any additional plugins in my wordpress, like the data manger, I do not want that.
Index.php is fixed now, but I do not need it... and as I mentioned, the theme is in development. Is WPML sensitive to things like that?
I have another question: Is there an option to set the language display to shortcuts like, DE, EN, FR etc?

I deactivated Gutenberg again and it woks fine. I can download XLIFF now. So what was the issue here?

Best,
Alessandra

July 23, 2025 at 2:58 am #17261534

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The issue was happening due to spaces at the beginning of the themes files, this was obstructing the output and printing the logs resulting in the error. Disabling the debug helped in that manner.

For the language codes:https://wpml.org/forums/topic/show-country-code-in-language-switcher/

Let me know if this helps.

Thanks

July 23, 2025 at 8:54 am #17262749

alessandraP-5

Hi,
This is very insightful, thank you so much! I will remember this: no spaces in php files at the beginning. I also managed to set the language switcher as I wish :). I think we can close this thread for now. I will implement the translations soon, I hope everything will be smooth.

Thanks for your help.

Best regards,
Alessandra

July 23, 2025 at 11:31 am #17263609

alessandraP-5

Thank you for your help!