Skip Navigation

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.
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by jackE-2 3 days, 20 hours ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
March 26, 2025 at 2:21 pm

jackE-2

Background of the issue:
I am trying to export 1 page for translations into 9 different languages but I keep getting an error. Link to a page where the issue can be seen: hidden link

Symptoms:
I encountered a PHP Deprecated warning: 'str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated' and a PHP Fatal error: 'Uncaught Exception: Unable to send file 'FXPrimus-translation-job-2713-2721.zip'. Headers have already been sent'.

Questions:

March 26, 2025 at 2:54 pm
March 26, 2025 at 7:11 pm #16865186

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you for waiting. You should be able to solve the issue, by replacing your debug settings on the wp-config.php file with the one below:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false); // <--- important!
@ini_set('display_errors', 0);    // <--- also important

Make sure to have a full website backup and replace any debug setting occurrence you find on your wp-config file with the ones above.

The debug logs were conflicting with the exportation of the XLIFF. Let me know if you need help applying that and if it solves the issue.

April 1, 2025 at 10:45 am #16882419

jackE-2

Hi,

I will review this and let you know