I am trying to:
Set up a view on a CPT which has an image as a CF. Want to display a thumbnail-sized rendition of the image. I use WPML with English as default language and French as alternate language. The CPT is translatable and the CF is translatable.
Link to a page where the issue can be seen:
English: hidden link
French: hidden link
I expected to see:
The thumbnail sized image in English and the thumbnail sized image in French. If there is a French translation, then the image in French is a different image.
Instead, I got:
The thumbnail sized image in English, but original-sized image in French.
Even using the exact same code, I'm not able to replicate this on my local environment so something odd is going on. May I log in to your site and create a clone using the Duplicator plugin? Then I can run additional tests without affecting your live site.
I'm having some trouble getting the site clone to work locally, so I've asked another team member to take a look. I'll give you an update shortly.
I found the issue with my local environment and I was able to get the site clone running, but the problem doesn't occur for me. I'm only using one domain for testing. In the French language, the image is resized to thumbnail resolution correctly. So I'm looking for other potential sources of the problem. One thing I see is here:
hidden link
The WordPress Memory Limit is only 40M, but at least 128 is required. I'd try 256 in your case. Can you add this to your wp-config.php file?
define('WP_MEMORY_LIMIT', '256M');
The next thing to try is to run the WPML troubleshooting steps at the link below, but I'm hesitant to do this on a live site without a backup ready to restore things:
hidden link
Let me know your thoughts and we can go from there.
I've increased the WP memory to 256M now. I'm still seeing the same symptoms.
Okay then the next thing to try is some of the WPML troubleshooting steps. You can find the link in my previous comment. I am attaching a screenshot here. You should make a backup of your database before trying these steps in case you need to restore your site to its current state.
Hi Christian. I did a full backup, then the four items you identified on the WPML troubleshooting page, then cleared all caches. No change so far.
I apologize for the delay getting back to you, I was on vacation last week and somehow this ticket slipped through the normal support coverage workflow. I am asking my 2nd tier team for some additional assistance here and I'll give you an update early tomorrow when some other team members have had a chance to review the situation.
Okay thank you for your patience. It turns out that the "different domains per language" setting is critical here to reproduce the problem. It took us some time to realize and confirm this, so I apologize for the delay. This issue is most likely the same as a couple of other tickets that have been reported recently where uploads into custom directories have broken image alt attributes and caused other resize problems. In your case the domains are completely different so this may be directly related. I'm asking my 2nd tier team to further evaluate this and determine if this is a different symptom of the same problem, as I suspect.
Thanks for the sleuthing. Yes, that could well be the issue. In the meantime, I have added explicitly CSS overrides for those images, so the browser will scale them when in French.
It's likely this is a bug/missing feature in the functionality though. Please do ask your engineers to confirm and, assuming true, correct it in a future update version of Toolset.
Cheers.
Steve
Hi, Types 3.3.4 was just released, containing a fix for non-standard file upload directory issues causing problems with resized image attributes. Please update to the latest version of Types and let me know if the issue you experienced is not completely resolved.
Hi Christian. I updated and tried de-activating the css override (img { width: 150px;} ) and it reverted to full size. So I don't think the update fixed this particular problem.
Cheers,
Steve
Hi, sorry somehow I missed your reply and the ticket was marked resolved. I have reopened here so we can continue to investigate.
I've been testing this locally in separate domains per language, and I can't reproduce the problem after updating my plugins. Can I log in to the admin area again? I'm not able to access /wp-admin so I'm not sure where to log in anymore.
Thanks but I've found a workaround by using CSS to explicitly override the size. It sends big graphics but the browser will resize. Not great efficiency but it does the job.