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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Kor 1 year, 6 months ago.

Assisted by: Kor.

Author Posts
November 6, 2023 at 4:29 pm #14739997

ankeR-2

I am trying to: View pictures in the media library

I expected to see: the pictures

Instead, I got: the wp includes default image

When I upload new images, they are shown as usual.

It seems at some point the links broke and are now pointing to the wrong address and english translation of the site. Because it points to the english site I assume at some point WPML overwrote the links. What could I do to fix this?

Screenshot 2023-11-06 at 17.22.41.png
Screenshot 2023-11-06 at 17.21.49.png
November 8, 2023 at 6:58 pm #14760659

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for contacting WPML support.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

Upon reviewing your debug information, I have observed that the PHP limit for your "WP Memory Limit" is lower than the recommended 256MB or the required 128MB, as mentioned in the documentation found at: https://wpml.org/home/minimum-requirements/. To resolve this, I kindly request that you contact your hosting provider and request an increase in the PHP value for you.

Also, please update all WPML plugins to the latest version.

November 17, 2023 at 6:36 pm #14865901

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've checked your Website and I'm not noticing any broken images. Could you please list the steps to replicate it? Or share the URL of the page in question where I can see the issue.

November 20, 2023 at 12:19 pm #14876575

ankeR-2

Hi, thanks for checking! I might have not been explicit enough, it is only older pictures. What I did is:
1. Login to WordPress and go to the media library (/wp-admin/upload.php)
2. Scroll a bit down to load older pictures, older than April 2023 (the newer ones are shown)
3. While the files still exist in the folder, the file url in the media library is broken for these older pictures.

Thanks in advance and have a good week.

November 21, 2023 at 2:43 pm #14888017

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

I have identified the issue now. I've reviewed the minimum requirement section at this link: hidden link , which indicates that your WordPress Memory limit falls below the minimum requirement mentioned here: https://wpml.org/home/minimum-requirements/ . I believe this is the root cause of the problems with media translation. An insufficient memory limit can lead to an incomplete translation process, which in turn affects the accurate translation of media.

Would it be possible for you to increase the memory limit and then attempt to upload the media again to see if the issue persists? If you can, please consider recording a screen capture while performing these steps.

November 23, 2023 at 4:22 pm #14910365

ankeR-2

Hello,

I have increased the memory limit further to 512M (see WordPress Site Health page and screenshot). It is also the maximum of what the server provider allows. However the support page of WPML still shows 40M. How could this be increased?

I also created a screen recording of the issue: hidden link

Screenshot 2023-11-23 at 17.20.03.png
November 23, 2023 at 7:00 pm #14911615

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Try inserting the custom PHP code below into your server wp-config.php file and see if it works.

ini_set('memory_limit', '512M');
ini_set('upload_max_filesize', '512M');
ini_set('post_max_size', '512M');
ini_set('file_uploads', 'On');
ini_set('max_execution_time', '3600');
define('WP_MEMORY_LIMIT', '512M');

The topic ‘[Closed] Images are not shown in media library / image links broken’ is closed to new replies.