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 thread is resolved. Here is a description of the problem and solution.

Problem: I want to add settings for previous content in media, the featured images are not added for translated content. I get an error when trying: Duplicate media: please try again (error).

Solution: The solution to fix this was to save each post in the original language in order for the featured image to show up in the translations.

This topic contains 4 replies, has 2 voices.

Last updated by johannH-10 2 weeks, 6 days ago.

Assigned support staff: Radu.

Author Posts
September 20, 2019 at 11:44 am #4611771

johannH-10

I am trying to: I want to add settings for previous content in media, the featured images are not added for translated content. I get an error when trying: Duplicate media: please try again (error).

Link to a page where the issue can be seen: hidden link
I expected to see: hidden link

Instead, I got: hidden link?

September 22, 2019 at 9:47 pm #4619517

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Johann,

Thank you for reaching out the WPML support!

Can you tell me if this Duplicate media: please try again (error) message appears when trying to go to Dashboard → WPML → Settings → Media translation and press the Start button, please?

Also, can you tell me if there's any additional message on the page or on the log file once you add the following code:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', true );
define( 'SCRIPT_DEBUG', true );
define( 'CONCATENATE_SCRIPTS', false );
define( 'WP_CACHE', false );

to the wp-config.php file? This should let us see a bit more info about the part that's causing the issue.

Thanks,
Radu

September 23, 2019 at 8:22 pm #4626505

johannH-10

Hi!

The problem I have is that the translated posts are lacking the featured image from the original post.

1. When I run WPML > Settings > Media > Duplicate the featured images for translated content, it runs and finishes. But still the translated posts doesn´t have any featured images.

2. When I run WPML > Settings > Media > "Duplicate existing media for translated content" It will count successfully down to almost 0 and then I get "please try again (error)"

I added the code you provided to the wp-config.php file.

There are probably thousand posts, so it will be a hassle to add all manually.

Thankful for any help!

 {"core":{"Wordpress":{"Multisite":"No","SiteURL":"https:\/\/dev.galleriahuuto.fi","HomeURL":"https:\/\/dev.galleriahuuto.fi","Version":"5.2.3","PermalinkStructure":"\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, amn_exact-metrics","PostStatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed"},"Server":{"jQueryVersion":"1.12.4-wp","PHPVersion":"7.1.32","MySQLVersion":"5.5.5","ServerSoftware":"Apache"},"PHP":{"MemoryLimit":"2147483648","WP Memory Limit":"40M","UploadMax":"96M","PostMax":"96M","TimeLimit":"50","MaxInputVars":"5000","MBString":true,"libxml":true}},"plugins":{"active_plugins":{"sitepress-multilingual-cms\/sitepress.php":{"Plugin Slug":"sitepress-multilingual-cms","Name":"WPML Multilingual CMS","PluginURI":"https:\/\/wpml.org\/","Version":"4.2.8","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"sitepress-multilingual-cms","DomainPath":"","Network":false,"Title":"WPML Multilingual CMS","AuthorName":"OnTheGoSystems"},"all-in-one-wp-migration-unlimited-extension\/all-in-one-wp-migration-unlimited-extension.php":{"Plugin Slug":"","Name":"All-in-One WP Migration Unlimited Extension","PluginURI":"https:\/\/servmask.com\/","Version":"2.31","Author":"ServMask","AuthorURI":"https:\/\/servmask.com\/","TextDomain":"all-in-one-wp-migration-unlimited-extension","DomainPath":"\/languages","Network":true,"Title":"All-in-One WP Migration Unlimited Extension","AuthorName":"ServMask"},"all-in-one-wp-migration\/all-in-one-wp-migration.php":{"Plugin Slug":"","Name":"All-in-One WP Migration","PluginURI":"https:\/\/servmask.com\/","Version":"7.7","Author":"ServMask","AuthorURI":"https:\/\/servmask.com\/","TextDomain":"all-in-one-wp-migration","DomainPath":"\/languages","Network":true,"Title":"All-in-One WP Migration","AuthorName":"ServMask"},"classic-editor\/classic-editor.php":{"Plugin Slug":"","Name":"Classic Editor","PluginURI":"https:\/\/wordpress.org\/plugins\/classic-editor\/","Version":"1.5","Author":"WordPress Contributors","AuthorURI":"https:\/\/github.com\/WordPress\/classic-editor\/","TextDomain":"classic-editor","DomainPath":"\/languages","Network":false,"Title":"Classic Editor","AuthorName":"WordPress Contributors"},"easy-swipebox\/easy-swipebox.php":{"Plugin Slug":"","Name":"Easy SwipeBox","PluginURI":"https:\/\/github.com\/leopuleo","Version":"1.1.0","Author":"Leonardo Giacone","AuthorURI":"https:\/\/github.com\/leopuleo","TextDomain":"easy-swipebox","DomainPath":"\/languages","Network":false,"Title":"Easy SwipeBox","AuthorName":"Leonardo Giacone"},"google-analytics-dashboard-for-wp\/gadwp.php":{"Plugin Slug":"","Name":"Google Analytics Dashboard for WP (GADWP)","PluginURI":"https:\/\/exactmetrics.com","Version":"5.3.9","Author":"ExactMetrics","AuthorURI":"https:\/\/exactmetrics.com","TextDomain":"google-analytics-dashboard-for-wp","DomainPath":"\/languages","Network":false,"Title":"Google Analytics Dashboard for WP (GADWP)","AuthorName":"ExactMetrics"},"qtranslate-to-wpml-export\/plugin.php":{"Plugin Slug":"","Name":"qTranslate X Importer","PluginURI":"http:\/\/wpml.org\/documentation\/related-projects\/qtranslate-importer\/","Version":"2.0.3","Author":"OntheGoSystems","AuthorURI":"http:\/\/wpml.org","TextDomain":"qtranslate-to-wpml-export","DomainPath":"","Network":false,"Title":"qTranslate X Importer","AuthorName":"OntheGoSystems"},"really-simple-ssl\/rlrsssl-really-simple-ssl.php":{"Plugin Slug":"","Name":"Really Simple SSL","PluginURI":"https:\/\/www.really-simple-ssl.com","Version":"3.2.5","Author":"Rogier Lankhorst, Mark Wolters","AuthorURI":"https:\/\/really-simple-plugins.com","TextDomain":"really-simple-ssl","DomainPath":"\/languages","Network":false,"Title":"Really Simple SSL","AuthorName":"Rogier Lankhorst, Mark Wolters"},"updraftplus\/updraftplus.php":{"Plugin Slug":"","Name":"UpdraftPlus - Backup\/Restore","PluginURI":"https:\/\/updraftplus.com","Version":"2.16.17.0","Author":"UpdraftPlus.Com, DavidAnderson","AuthorURI":"https:\/\/updraftplus.com","TextDomain":"updraftplus","DomainPath":"\/languages","Network":false,"Title":"UpdraftPlus - Backup\/Restore","AuthorName":"UpdraftPlus.Com, DavidAnderson"},"wpml-media-translation\/plugin.php":{"Plugin Slug":"wpml-media-translation","Name":"WPML Media","PluginURI":"https:\/\/wpml.org\/","Version":"2.5.3","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"wpml-media-translation","DomainPath":"","Network":false,"Title":"WPML Media","AuthorName":"OnTheGoSystems"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"Galleria Huuto responsive","ThemeURI":false,"Author":"Johann H\u0026ouml;glund","AuthorURI":"http:\/\/johannhoglund@gmail.com","Template":"","Version":"1.0","TextDomain":"","DomainPath":"","ParentName":""},"extra-debug":{"WMPL":{"hide_upgrade_notice":"4.2.8","icl_capabilities_verified":true,"active_languages":["en","fi","sv"],"interview_translators":1,"existing_content_language_verified":1,"language_negotiation_type":3,"theme_localization_type":2,"icl_lso_link_empty":0,"sync_page_ordering":1,"sync_page_parent":1,"sync_page_template":1,"sync_ping_status":1,"sync_comment_status":1,"sync_sticky_flag":1,"sync_password":1,"sync_private_flag":1,"sync_post_format":1,"sync_delete":1,"sync_delete_tax":1,"sync_post_taxonomies":1,"sync_post_date":1,"sync_taxonomy_parents":0,"translation_pickup_method":0,"notify_complete":1,"translated_document_status":1,"remote_management":0,"auto_adjust_ids":1,"alert_delay":0,"promote_wpml":0,"automatic_redirect":0,"remember_language":24,"icl_lang_sel_copy_parameters":"","translated_document_page_url":"auto-generate","sync_comments_on_duplicates ":0,"seo":{"head_langs":1,"canonicalization_duplicates":1,"head_langs_priority":1},"posts_slug_translation":{"on":1},"urls":{"directory_for_default_language":0,"show_on_root":"","root_html_file_path":"","root_page":0,"hide_language_switchers":1},"xdomain_data":1,"custom_posts_sync_option":{"post":"2","page":"2","attachment":"2","wp_block":"2","custom_css":"0","customize_changeset":"0","oembed_cache":"0","user_request":"0","amn_exact-metrics":"0"},"taxonomies_sync_option":{"category":"2","post_tag":"2","translation_priority":1},"tm_block_retranslating_terms":1,"admin_default_language":"fi","theme_localization_type_previous":1,"taxonomy_names_checked":true,"ajx_health_checked":true,"setup_complete":1,"default_categories":{"fi":825,"en":1,"sv":826},"languages_order":["fi","en","sv"],"setup_wizard_step":3,"dont_show_help_admin_notice":true,"default_language":"fi","site_does_not_use_icl":true,"translation-management":{"custom_fields_translation":{"title":2,"description":2,"keywords":2,"_edit_last":0,"_edit_lock":0,"_wp_page_template":0,"_wp_attachment_metadata":0,"original_post_id":0,"_wpml_original_post_id":0,"_wp_old_slug":0,"_icl_translator_note":0,"_alp_processed":0,"_pingme":0,"_encloseme":0,"_icl_lang_duplicate_of":0,"_thumbnail_id":0,"_wp_attached_file":0,"_wp_attachment_image_alt":2,"_wpml_media_duplicate":1,"_wpml_media_featured":1},"custom_fields_readonly_config":["title","description","keywords","_edit_last","_edit_lock","_wp_page_template","_wp_attachment_metadata","original_post_id","_wpml_original_post_id","_wp_old_slug","_icl_translator_note","_alp_processed","_pingme","_encloseme","_icl_lang_duplicate_of","_thumbnail_id","_wp_attached_file","_wp_attachment_image_alt","_wpml_media_duplicate","_wpml_media_featured"],"custom_fields_translation_custom":[],"custom_fields_translation_custom_readonly":[],"doc_translation_method":0,"__custom_types_readonly_config_prev":[],"custom_types_readonly_config":[],"__custom_fields_readonly_config_prev":["title","description","keywords","_edit_last","_edit_lock","_wp_page_template","_wp_attachment_metadata","original_post_id","_wpml_original_post_id","_wp_old_slug","_icl_translator_note","_alp_processed","_pingme","_encloseme","_icl_lang_duplicate_of","_thumbnail_id","_wp_attached_file","_wp_attachment_image_alt","_wpml_media_duplicate","_wpml_media_featured"],"__custom_term_fields_readonly_config_prev":[],"custom_term_fields_readonly_config":[],"taxonomies_readonly_config":{"translation_priority":1},"custom-types_readonly_config":{"attachment":1,"wp_block":1}},"custom-types_sync_option":{"attachment":1,"wp_block":1},"language_selector_initialized":1,"show_translations_flag":0,"sync_comments_on_duplicates":0,"custom_posts_unlocked_option":{"post":"0","page":"0","attachment":"1","custom_css":"0","customize_changeset":"0","oembed_cache":"0","user_request":"0","wp_block":"1","amn_exact-metrics":"0"},"taxonomies_unlocked_option":{"category":"0","post_tag":"0"}},"installer":{"version":"2.2.0","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","subscription":{"key":"VBBV2SR7N8","data":{"subscription_type":6718,"expires":"2020-09-18","status":"1"},"registered_by":6,"site_url":"https:\/\/dev.galleriahuuto.fi"}},"toolset":{"api-url":"https:\/\/api.toolset.com\/","subscription":""}},"instances":{"\/customers\/0\/6\/2\/galleriahuuto.fi\/httpd.www\/dev\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/customers\/0\/6\/2\/galleriahuuto.fi\/httpd.www\/dev\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php","version":"2.2.0","args":{"plugins_install_tab":1,"site_key_nags":[{"repository_id":"wpml","product_name":"WPML","condition_cb":[{"locale_utils":{},"footer_preview":false,"icl_translations_cache":null,"icl_language_name_cache":{"name":"language_name","cache_to_option":true,"cache_needs_saving":false},"icl_term_taxonomy_cache":null,"wpdb":{"show_errors":true,"suppress_errors":false,"last_error":"","num_queries":68,"num_rows":0,"rows_affected":0,"insert_id":0,"last_query":"SELECT option_value FROM dev1_options WHERE option_name = \u0027auto_core_update_failed\u0027 LIMIT 1","last_result":[],"queries":null,"prefix":"dev1_","base_prefix":"dev1_","ready":true,"blogid":0,"siteid":0,"tables":["posts","comments","links","options","postmeta","terms","term_taxonomy","term_relationships","termmeta","commentmeta"],"old_tables":["categories","post2cat","link2cat"],"global_tables":["users","usermeta"],"ms_global_tables":["blogs","blogmeta","signups","site","sitemeta","sitecategories","registration_log","blog_versions"],"comments":"dev1_comments","commentmeta":"dev1_commentmeta","links":"dev1_links","options":"dev1_options","postmeta":"dev1_postmeta","posts":"dev1_posts","terms":"dev1_terms","term_relationships":"dev1_term_relationships","term_taxonomy":"dev1_term_taxonomy","termmeta":"dev1_termmeta","usermeta":"dev1_usermeta","users":"dev1_users","blogs":null,"blogmeta":null,"blog_versions":null,"registration_log":null,"signups":null,"site":null,"sitecategories":null,"sitemeta":null,"field_types":{"post_author":"%d","post_parent":"%d","menu_order":"%d","term_id":"%d","term_group":"%d","term_taxonomy_id":"%d","parent":"%d","count":"%d","object_id":"%d","term_order":"%d","ID":"%d","comment_ID":"%d","comment_post_ID":"%d","comment_parent":"%d","user_id":"%d","link_id":"%d","link_owner":"%d","link_rating":"%d","option_id":"%d","blog_id":"%d","meta_id":"%d","post_id":"%d","user_status":"%d","umeta_id":"%d","comment_karma":"%d","comment_count":"%d","active":"%d","cat_id":"%d","deleted":"%d","lang_id":"%d","mature":"%d","public":"%d","site_id":"%d","spam":"%d"},"charset":"utf8mb4","collate":"utf8mb4_unicode_ci","func_call":"$db-\u003Equery(\u0022SELECT option_value FROM dev1_options WHERE option_name = \u0027auto_core_update_failed\u0027 LIMIT 1\u0022)","is_mysql":true,"categories":"dev1_categories","post2cat":"dev1_post2cat","link2cat":"dev1_link2cat"}},"setup"]}]},"delegated":true}}}}} 

Best regards,
Johann

September 23, 2019 at 8:39 pm #4626613

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Johann,

Could you give me access to the dashboard area of the website so I can have a closer look at this issue, please? I'm sure we'll be able to sort this out if I check this in the backend.

The next reply is set to be private so you can safely send me the credentials.

Thanks,
Radu

September 24, 2019 at 5:49 am #4628121

johannH-10

Hi!

Thank you, I found out that I will need to save each post in the original language in order for the featured image to show up in the translations.

So a constructive feedback would be to make this clear in the tutorial for the copy featured image for existing posts.

Best regards,
Johan