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.

Tagged: 

This topic contains 13 replies, has 3 voices.

Last updated by Mohamed Sayed 1 year, 7 months ago.

Assisted by: Mohamed Sayed.

Author Posts
August 31, 2023 at 12:31 pm

mariusZ-2

Hello, I am missing a few images from woocommerce products, can you help me?

August 31, 2023 at 1:19 pm
September 3, 2023 at 8:37 am #14331289

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

First of all, sorry for the late reply due to a higher workload on the weekend.

To best troubleshoot the issue, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/) to do this.

The plugin will create a package and installer files that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. I will import the site copy to investigate the issue locally then escalate it to our developers for further investigation if needed.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/
Thanks for your cooperation.

Kind regards,
Mohamed

September 14, 2023 at 10:00 am
September 14, 2023 at 11:22 pm #14399907

Mohamed Sayed

I couldn't find more clues so I escalated this issue to the 2nd tier support team for further investigation. I will update you once I get their reply.

Kind regards.

September 17, 2023 at 9:31 am #14407969

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your patience. Since Mohamed currently has a few days off, I will replace him here in the forum. I hope this is OK for you.

Our 2nd tier team has found that the issue happens because of the thumbnails, so they suggest using the following plugin to regenerate them. (https://wordpress.org/plugins/regenerate-thumbnails/)

Kindly let me know if that fixed the issue.

Best regards,

September 19, 2023 at 12:58 pm #14419717

mariusZ-2

Hi,

Have regenerated thumbnails before, but did that also today, just to make sure. Did not help, still missing some images in other languages except the main language.

September 19, 2023 at 1:30 pm #14419955

Mohamed Sayed

Hi,

I'm sharing this info with our developers to continue investigating this issue.

September 19, 2023 at 10:52 pm #14425623

Mohamed Sayed

Hi

Our devs found that the missing images are not available in the size of 430px x 372px (hidden link)

It is possible that there is some custom code that sets a specific size for the main language, but not for the other languages.

If the plugin is not regenerating the images properly, then you can try re-define the size as shown in the tutorial: hidden link

This can be done by adding the following code to your theme’s functions.php file:

add_image_size( 'mycustomsize', 430, 372 );

Let us know please how that goes.

Kind regards.

September 20, 2023 at 9:26 am #14427997

mariusZ-2

I have defined the custom image side and reginerated the images again. Nothing changed.

September 20, 2023 at 5:02 pm #14432567

Mohamed Sayed

Hi,

I checked again on the local copy of your site and noticed that the issue is related to the "Smart Image Resize PRO" plugin.

After doing more tests, I found that it can be fixed with the following steps:

1. Go to WooCommerce > Smart Image Resize
2. Disable the "Image resizing" and "Product Images" options (hidden link)
3. Clear the site cache
4. Define the missing sizes by adding the following code to your theme’s functions.php file:

add_image_size( 'mycustomsize', 430, 372 );
add_image_size( 'mycustomsize-2', 430, 331 );
add_image_size( 'mycustomsize-3', 430, 375 );
add_image_size( 'mycustomsize-4', 430, 273 );
add_image_size( 'mycustomsize-5', 430, 274 );

5. Install the "Perfect Images" plugin (https://wordpress.org/plugins/wp-retina-2x/)
6. Go to Dashboard > Meow apps > Perfect Images
7. Enable the custom sizes added by the above code (hidden link)
8. Go to Media > Perfect Images > Click Refresh Stats (hidden link)
9. From the Bulk Actions dropdown, select "Regenerate All Entries" (hidden link)

Once the process was done I checked again and found that it's fixed as you can see here: hidden link

Please give it a try and let us know your feedback.

Kind regards,
Mohamed

September 21, 2023 at 6:32 am #14434753

mariusZ-2

Sounds good, I will try it.

I would still need to use the smart image resize tho, becouse it makes images to the same size, if they are not. Will I be able to use it after all these steps?

September 21, 2023 at 9:49 am #14436973

Mohamed Sayed

I enabled the resizing options with "Smart image resize" after enabling the custom sizes in WooCommerce > Smart Image Resize > Advanced (hidden link), and I can't see the issue on the shop page.

I suggest creating a full backup of the database and website after trying the above steps and then enabling the resizing option (Please make sure to select the custom sizes in the Smart image resize settings).

September 21, 2023 at 1:21 pm #14439557

mariusZ-2

Ok, so I have done only some steps, added the new thunbnmai sizes and marked them as active, than regenerated. It seams to show all thumbnails now. BUT on other languages expect main one, some of thembnails now are differant sizes. They all should have been processed and be the same size. Please take a look, you still have access to my website. Thank you.

September 21, 2023 at 10:04 pm #14442601

Mohamed Sayed

Is the "Smart image resize" plugin still disabled? Does it help if you enable the plugin again?

Also, could you please send me a screenshot showing any of those products?