Cropped images showing in media library
-
Dear Johannes,
Recently my cropped images are showing up in the media library grid mode. This is very wierd because the older cropped images are not shown.
-
Hey, can you post the WordPress version you are using and a list of all plugins you have installed and their versions?
You can do this easily by navigating to Tools -> Site Health -> Info and clicking “Copy site info to clipboard”
Hey Johannes,
Here you go:
### wp-core ### version: 5.5.1 site_language: nl_BE user_language: nl_BE timezone: Europe/Brussels permalink: /%postname%/ https_status: false multisite: false user_registration: 0 blog_public: 0 default_comment_status: open environment_type: production user_count: 3 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /data/sites/web/larabeskocom/www wordpress_size: loading... uploads_path: /data/sites/web/larabeskocom/www/wp-content/uploads uploads_size: loading... themes_path: /data/sites/web/larabeskocom/www/wp-content/themes themes_size: loading... plugins_path: /data/sites/web/larabeskocom/www/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading... ### wp-active-theme ### name: Larabesko (larabesko) version: 1.0 author: lsDevign author_website: https://www.lsdevign.be parent_theme: none theme_features: core-block-patterns, custom-logo, post-thumbnails, menus theme_path: /data/sites/web/larabeskocom/www/wp-content/themes/larabesko auto_update: Uitgeschakeld ### wp-plugins-active (24) ### ACF Content Analysis for Yoast SEO: version: 2.7, author: Thomas Kr?ftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast, Auto-updates ingeschakeld Admin Menu Editor: version: 1.9.7, author: Janis Elsts, Auto-updates ingeschakeld Advanced Custom Fields: Image Aspect Ratio Crop: version: 4.0.5, author: Johannes Siipola, Auto-updates ingeschakeld Advanced Custom Fields Multilingual: version: 1.7.3, author: OnTheGoSystems, Auto-updates uitgeschakeld Advanced Custom Fields PRO: version: 5.9.1, author: Elliot Condon, Auto-updates uitgeschakeld Amelia: version: 2.9.1, author: TMS, Auto-updates uitgeschakeld Contact Form 7: version: 5.2.2, author: Takayuki Miyoshi, Auto-updates uitgeschakeld Cookie Notice: version: 1.3.2, author: dFactory, Auto-updates uitgeschakeld Duplicate Page: version: 4.3, author: mndpsingh287, Auto-updates ingeschakeld Elfsight Facebook Feed CC: version: 1.14.0, author: Elfsight, Auto-updates uitgeschakeld Elfsight Instagram Feed CC: version: 4.0.1, author: Elfsight, Auto-updates uitgeschakeld FileBird: version: 4.0.7, author: Ninja Team, Auto-updates uitgeschakeld Flamingo: version: 2.2, author: Takayuki Miyoshi, Auto-updates uitgeschakeld Safe SVG: version: 1.9.9, author: Daryll Doyle, Auto-updates ingeschakeld Simple Custom Post Order: version: 2.5.0, author: Colorlib, Auto-updates ingeschakeld Smush: version: 3.7.0, author: WPMU DEV, Auto-updates ingeschakeld WP Mailto Links - Hide & Protect Emails: version: 3.1.2, author: Ironikus, Auto-updates ingeschakeld WPML Media: version: 2.6.0, author: OnTheGoSystems, Auto-updates uitgeschakeld WPML Multilingual CMS: version: 4.4.2, author: OnTheGoSystems, Auto-updates uitgeschakeld WPML String Translation: version: 3.1.3, author: OnTheGoSystems, Auto-updates uitgeschakeld WPML Translation Management: version: 2.10.1, author: OnTheGoSystems, Auto-updates uitgeschakeld WPS Hide Login: version: 1.5.6, author: WPServeur, NicolasKulka, tabrisrp, Auto-updates uitgeschakeld Yoast SEO: version: 14.9, author: Team Yoast, Auto-updates ingeschakeld Yoast SEO Multilingual: version: 1.2.4, author: OnTheGoSystems, Auto-updates uitgeschakeld ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1690 imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org file_uploads: File uploads is turned off post_max_size: 256M upload_max_filesize: 256M max_effective_size: 256 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 122 MB imagick::RESOURCETYPE_DISK: 1073741824 imagick::RESOURCETYPE_FILE: 768 imagick::RESOURCETYPE_MAP: 512 MB imagick::RESOURCETYPE_MEMORY: 256 MB imagick::RESOURCETYPE_THREAD: 8 gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.27 ### wp-server ### server_architecture: Linux 4.19.140-combell x86_64 httpd_software: Apache php_version: 7.4.10 64bit php_sapi: fpm-fcgi max_input_variables: 20000 time_limit: 300 memory_limit: 256M max_input_time: 60 upload_max_filesize: 256M php_post_max_size: 256M curl_version: 7.64.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: false ### wp-database ### extension: mysqli server_version: 5.7.31-34-log client_version: mysqlnd 7.4.10 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /data/sites/web/larabeskocom/www/wp-content WP_PLUGIN_DIR: /data/sites/web/larabeskocom/www/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable
Dear Johannes,
Did you have the chance to look at the site info I sent you?
Kind regards,
Laurens
I think this issue has something to do with WPML. Do you have WPML media translation enabled?
Also, in your field, what WPML translation mode do you use? Do not translate / Translate / Copy / Copy once ?
Dear Johannes,
Thank you for your response.
I do use WPML. Mostly for images I use copy once. I have always used copy once in the past but since a week or 2 it started showing the cropped images in the media library.
Which method do you use to not display cropped items in the media library? This way maybe I can inform at WPML if they can target the issue more specifically.
Kind regards,
Laurens
Dear Johannes,
This is the answer I got from WPML:
As far as i see we are not know about this plugin yet which means we have not tested the plugin with WPML.
We are not sure whats really breaking in the code.
If that worked well until recently i would suggest to check that with the plugin support and if they are not compatible with WPML yet, kindly invite them to join our go global program https://wpml.org/documentation/theme-compatibility/go-global-program/ were we can collaborate with the plugin developer to make it work seamless with WPML .
Hey, about the technical details, the plugin will add meta field acf_image_aspect_ratio_crop with value 1 in the post meta table for each of the cropped attachments. I think there might be an issue with WPML that this field is not copied when a translation of an image is created.
When image library is opened, the plugin uses ajax_query_attachments_args filter to remove images with the acf_image_aspect_ratio_crop meta field from the results.
Dear Johannes,
Thank you so much for that info. I am a huge fan of your plugin btw, even though I address this issue. I use it everywhere.
Can I send you an e-mail with the credentials of the site? So you can just have a look at the media library and see what I mean.
Hey, login credentials don’t really help me in this case. It would be more helpful if you could reproduce this issue with a fresh install of WordPress and WPML and provide me the steps to reproduce this issue in my local environment.
-
This reply was modified 4 years, 5 months ago by
joppuyo.
Dear Johannes,
I installed WordPress locally with the following plugins (all latest version):
– ACF multilingual
– ACF Image aspect ratio crop
– ACF pro
– WPML media
– WPML multilingial cms
– WPML string translation
– WPML translation managementI setup 2 langs: English (primary) and dutch. In the wpml settings, I checked all checkboxes except the first one under Media settings > ‘You can check if some attachments can be duplicated to translated content:’.
I also checked the first checkbox under Media settings >
How to handle media for new content.I add a ACF crop field to a page with aspect ratio of 1600 x 900, without setting anything related to acf multilingual for this field.
1. I upload an image to the library, the image is copied to dutch, all is well.
2. I crop the image in the ACF field on the page in English > the cropped version is not shown in the English media library.
3. I now check the dutch library, and there are now 2 images displayed.Normally that did not happen, but since I use ACF image aspect ratio crop all the time, the media library of other langs becomes a bit chaotic.
I hope you can reproduce this, let me know if you need more info.
Dear Johannes,
Were you able to reproduce this issue?
Kind regards,
Laurens
Hey, I haven’t had time yet, but it’s on my to-do list. I’ll let you know when this is fixed and/or I need more information.
Dear Johannes,
Ok, I wish you the best of luck. Please keep me updated.
Kind regards,
Laurens
Dear Johannes,
I have narrowed it down to the WPML Setting:
– Media translation > How to handle media for new content > When uploading media to the Media library, make it available in all languages (checked)
-
This reply was modified 4 years, 5 months ago by
- The topic ‘Cropped images showing in media library’ is closed to new replies.