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.

This topic contains 5 replies, has 2 voices.

Last updated by Andreas W. 1 year, 9 months ago.

Assisted by: Andreas W..

Author Posts
August 10, 2023 at 10:09 am #14181017

Hector Granero

Hi,

We are working on our website (hidden link), and our intention is to translate it into 5 languages.

The original language is English, and at the moment, we have an online version translated into Spanish. However, we are encountering issues when trying to translate the images into the language.

For this purpose, we are using the plugin/feature: Media translation.

While the translated images have been uploaded and added correctly from the administration plugin (see attachment), they are not updating properly on the webpage. Currently, only some of them are displaying on the translated page.

Is there something we're doing wrong? Can you help us?

Thank you for creating that magnificent plugin!

Screenshot 2023-08-10 at 11.21.52.png
Screenshot 2023-08-10 at 11.21.36.png
August 12, 2023 at 1:38 am #14191101

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please increase your WP Memory limit to 256M? 128M is the minimum required by WPML.
Your current values are:

PHP Memory Limit 256M
WP Memory Limit 40M
Add this code to your wp-config.php to increase WP memory:

define('WP_MEMORY_LIMIT', '256M');

Paste it just before:

/ That's all, stop editing! Happy blogging. /

Now, verify the current settings at WPML > Support > WordPress. Then complete the translation again.

These settings can be limited directly by your hosting provider, so I recommend you contact and ask them to modify them directly.
If you can get even higher values It would be great.

https://wpml.org/home/minimum-requirements/
Note: WPML needs a minimum WP Memory limit of 128M to work only under a minimal environment, which means, with a default theme and no other plugins installed.

If this will still not solve the issue directly, try to upload the alternative images again on WPML > Media Translation.

Please let me know in case that this will not solve the issue.

Best regards
Andreas

August 16, 2023 at 7:56 am #14206761

Hector Granero

Hello Andreas,
Thank you very much for your response.
In fact, this PHP memory limit issue was identified some time ago. Indeed, no changes directly in the wp-config.php file seem to update the PHP memory limit in WordPress. In fact, we tried other solutions but none of them seem to update the value in WordPress.

We wrote to the hosting server again, and they claim to have changed the memory limit to 128MB, which is the maximum offered by our service package. They assure me that the memory limit is set to 128MB (I have attached a screenshot of the PHP info provided by the hosting service).

I have tried uploading the images again from WPML > Media Translation, but the problem persists.

We are a bit lost. Is there any way to workaround this issue?

Best regards,

Screenshot 2023-08-16 at 09.45.12.png
August 16, 2023 at 9:29 am #14208157

Hector Granero

Update: We have managed to increase the PHP limit. However, even after re-uploading the images through WPML > Media Translation, the issue remains unresolved. Any additional assistance is welcome.

August 16, 2023 at 8:22 pm #14241237

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

It may be that simply uploading alternative media files is not sufficient for your content.

If you're translating the content with the WPML translation editor, might you be able to see the image source URL in the editor here?

If so, then you have to translate the URL accordingly - meaning you should look for the image source URL of the file you uploaded under WPML > Media Translation in the media library.

You can change the language in the WordPress media library in the top toolbar.

However, it is also possible that the section used cannot yet be translated in the WPML translation editor, or that this Gutenberg block is not yet supported. (Possibly a problem related to GenerateBlocks)

I would also like to offer to take a closer look at it.

I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging at https://wpml.org/de/account/websites/.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information on each ticket individually. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

August 18, 2023 at 6:27 pm #14254791

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

My apologies for the confusion, I have translated my last comment now.

The problem seems to be caused by Redis Object Cache - clearing the cache solves the issue.

I refreshed the page now five times and can no longer replicate the issue.

If the issue occurs again, please let us know so that we try to replicate this problem and handle it internally.

Best regards
Andreas

August 22, 2023 at 9:49 am #14269651

Hector Granero

Yes I confirm it ! it is working now! Thank you Andreas.