This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is unable to view the correct permalink structure for their translated post on the front-end. Instead of seeing a 'pretty permalink' like
http://gxblog.local/pt-br/post-11-en
, they are seeing the default WordPress permalink structure, such as
http://gxblog.local/?p=179
.
Solution:
1. Ensure that the server supports mod_rewrite, which is necessary for using 'Pretty Permalinks'.
2. In the WordPress backend, open the affected post and switch to the secondary language using the top-bar language switcher. Verify that the page is not saved as a draft. If it is, publish the post so that the correct permalink can be generated.
If this solution does not apply to your situation, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum.
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: Exception
This topic contains 1 reply, has 2 voices.
Last updated by Marcel 1 year, 4 months ago.
Assisted by: Marcel.
Author | Posts |
---|---|
January 31, 2024 at 11:49 pm #15252380 | |
gabrielS-38 |
I am trying to: hidden link Link to a page where the issue can be seen: I expected to see: hidden link post-11-en is the title of the post on the original/deafult language (english) Instead, I got: hidden link Please, see the video that I recorded for you: Sorry about the audio, I thought I was recording muted.{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/gxblog.local","HomeURL":"http:\/\/gxblog.local","Version":"6.4.2","PermalinkStructure":"\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, wp_template, wp_template_part, wp_global_styles, wp_navigation, acf-taxonomy, acf-post-type, acf-field-group, acf-field","PostStatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, acf-disabled","RestEnabled":"Yes"},"Server":{"jQueryVersion":"3.7.1","PHPVersion":"8.1.23","MySQLVersion":"8.0.16","ServerSoftware":"Apache\/2.4.43 (Unix)"},"PHP":{"MemoryLimit":"256M","WP Memory Limit":"40M","UploadMax":"300M","PostMax":"1000M","TimeLimit":"1200","MaxInputVars":"4000","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.6.9","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"sitepress-multilingual-cms","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"WPML Multilingual CMS","AuthorName":"OnTheGoSystems"},"wp-seo-multilingual\/plugin.php":{"Plugin Slug":"wp-seo-multilingual","Name":"WPML SEO","PluginURI":"https:\/\/wpml.org\/","Version":"2.1.0","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"wp-seo-multilingual","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"WPML SEO","AuthorName":"OnTheGoSystems"},"acfml\/wpml-acf.php":{"Plugin Slug":"","Name":"Advanced Custom Fields Multilingual","PluginURI":"https:\/\/wpml.org\/","Version":"2.0.5","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"acfml","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"Advanced Custom Fields Multilingual","AuthorName":"OnTheGoSystems"},"advanced-custom-fields\/acf.php":{"Plugin Slug":"","Name":"Advanced Custom Fields","PluginURI":"https:\/\/www.advancedcustomfields.com","Version":"6.2.5","Author":"WP Engine","AuthorURI":"https:\/\/wpengine.com\/?utm_source=wordpress.org\u0026utm_medium=referral\u0026utm_campaign=plugin_directory\u0026utm_content=advanced_custom_fields","TextDomain":"acf","DomainPath":"\/lang","Network":false,"RequiresWP":"5.8","RequiresPHP":"7.0","UpdateURI":"","Title":"Advanced Custom Fields","AuthorName":"WP Engine"},"svg-support\/svg-support.php":{"Plugin Slug":"","Name":"SVG Support","PluginURI":"http:\/\/wordpress.org\/plugins\/svg-support\/","Version":"2.5.5","Author":"Benbodhi","AuthorURI":"https:\/\/benbodhi.com","TextDomain":"svg-support","DomainPath":"\/languages","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"SVG Support","AuthorName":"Benbodhi"},"wordpress-seo\/wp-seo.php":{"Plugin Slug":"","Name":"Yoast SEO","PluginURI":"https:\/\/yoa.st\/1uj","Version":"21.8.1","Author":"Team Yoast","AuthorURI":"https:\/\/yoa.st\/1uk","TextDomain":"wordpress-seo","DomainPath":"\/languages\/","Network":false,"RequiresWP":"6.2","RequiresPHP":"7.2.5","UpdateURI":"","Title":"Yoast SEO","AuthorName":"Team Yoast"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"GeneXus Blog","ThemeURI":false,"Author":"GeneXus","AuthorURI":"","Template":"","Version":"1.0","TextDomain":"","DomainPath":"","ParentName":""},"extra-debug":{"WPML":{"hide_upgrade_notice":"4.6.9","translated_document_status_sync":"1","icl_capabilities_verified":true,"active_languages":["en","es","pt-br"],"interview_translators":1,"existing_content_language_verified":1,"language_negotiation_type":1,"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":0,"sync_delete_tax":0,"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":"copy-encoded","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":1,"page":1,"acf-field-group":0,"attachment":1,"wp_block":1,"wp_navigation":1,"wp_template":1,"wp_template_part":1},"taxonomies_sync_option":{"category":1,"post_tag":1,"translation_priority":1,"wp_theme":0},"tm_block_retranslating_terms":"1","admin_default_language":"_default_","ajx_health_checked":true,"languages_order":[false,"en","pt-br","es"],"theme_language_folders":null,"site_key":"UZESDUGWA4","default_categories":{"en":"1","es":2,"pt-br":3},"default_language":"en","setup_wizard_step":3,"dont_show_help_admin_notice":true,"store_frontend_cookie":1,"setup_complete":1,"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,"_yoast_wpseo_title":2,"_yoast_wpseo_bctitle":2,"_yoast_wpseo_metadesc":2,"_yoast_wpseo_metakeywords":2,"_yoast_wpseo_focuskw":2,"_yoast_wpseo_focuskeywords":2,"_yoast_wpseo_meta-robots-noindex":1,"_yoast_wpseo_meta-robots-nofollow":1,"_yoast_wpseo_meta-robots-adv":1,"_yoast_wpseo_canonical":0,"_yoast_wpseo_redirect":0,"_yoast_wpseo_opengraph-description":2,"_yoast_wpseo_google-plus-description":2,"_yoast_wpseo_twitter-title":2,"_yoast_wpseo_twitter-description":2,"_yoast_wpseo_opengraph-title":2,"_yoast_wpseo_opengraph-image":3,"_yoast_wpseo_twitter-image":3,"_yoast_wpseo_primary_category":1,"_yoast_wpseo_primary_product_cat":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","_yoast_wpseo_title","_yoast_wpseo_bctitle","_yoast_wpseo_metadesc","_yoast_wpseo_metakeywords","_yoast_wpseo_focuskw","_yoast_wpseo_focuskeywords","_yoast_wpseo_meta-robots-noindex","_yoast_wpseo_meta-robots-nofollow","_yoast_wpseo_meta-robots-adv","_yoast_wpseo_canonical","_yoast_wpseo_redirect","_yoast_wpseo_opengraph-description","_yoast_wpseo_google-plus-description","_yoast_wpseo_twitter-title","_yoast_wpseo_twitter-description","_yoast_wpseo_opengraph-title","_yoast_wpseo_opengraph-image","_yoast_wpseo_twitter-image","_yoast_wpseo_primary_category","_yoast_wpseo_primary_product_cat"],"custom_fields_translation_custom":[],"custom_fields_translation_custom_readonly":[],"doc_translation_method":"1","custom-types_readonly_config":{"attachment":1,"wp_block":1,"wp_navigation":1,"wp_template":1,"wp_template_part":1},"__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","_yoast_wpseo_title","_yoast_wpseo_bctitle","_yoast_wpseo_metadesc","_yoast_wpseo_metakeywords","_yoast_wpseo_focuskw","_yoast_wpseo_focuskeywords","_yoast_wpseo_meta-robots-noindex","_yoast_wpseo_meta-robots-nofollow","_yoast_wpseo_meta-robots-adv","_yoast_wpseo_canonical","_yoast_wpseo_redirect","_yoast_wpseo_opengraph-description","_yoast_wpseo_google-plus-description","_yoast_wpseo_twitter-title","_yoast_wpseo_twitter-description","_yoast_wpseo_opengraph-title","_yoast_wpseo_opengraph-image","_yoast_wpseo_twitter-image","_yoast_wpseo_primary_category","_yoast_wpseo_primary_product_cat"],"__custom_term_fields_readonly_config_prev":[],"custom_term_fields_readonly_config":[],"custom_fields_attributes_whitelist":{"_yoast_wpseo_focuskeywords":{"*":{"keyword":[]}}},"taxonomies_readonly_config":{"translation_priority":1,"wp_theme":0},"post_translation_editor_native_for_post_type":[],"post_translation_editor_native":false},"custom-types_sync_option":{"attachment":1,"wp_block":1,"wp_navigation":1,"wp_template":1,"wp_template_part":1},"language_selector_initialized":1,"xliff_newlines":2,"tm_xliff_version":"12","site_does_not_use_icl":true,"edit_languages_flag_migration":1,"doc_translation_method":"1","WPML_Translate_Link_Target_Global_State":true,"show_translations_flag":1},"installer":{"version":"3.1.4","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","bucket-url":"https:\/\/cdn.wpml.org\/wpml-bucket-11.json","subscription":{"key":"UZESDUGWA4","key_type":1,"data":{"subscription_type":6719,"expires":"2025-01-12","status":"1","notes":"","order_id":"15179572","hasAutoRenewal":true},"registered_by":1,"site_url":"http:\/\/gxblog.local"},"last-successful-subscription-fetch":"2024-01-31 01:11:12"},"toolset":{"api-url":"https:\/\/api.toolset.com\/","bucket-url":"not assigned","subscription":"","last-successful-subscription-fetch":"none"}},"instances":{"\/Users\/bruno\/Local Sites\/gxblog\/app\/public\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/Users\/bruno\/Local Sites\/gxblog\/app\/public\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php","version":"3.1.4","args":{"plugins_install_tab":1,"site_key_nags":[{"repository_id":"wpml","product_name":"WPML","condition_cb":[{"wpdb":{"show_errors":false,"suppress_errors":false,"last_error":"","num_queries":62,"num_rows":1,"rows_affected":0,"insert_id":0,"last_query":"SELECT option_value FROM wp_options WHERE option_name = \u0027_transient_wp-rest-enabled-ping\u0027 LIMIT 1","last_result":[{"option_value":"enabled"}],"queries":null,"prefix":"wp_","base_prefix":"wp_","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","registration_log"],"old_ms_global_tables":["sitecategories"],"comments":"wp_comments","commentmeta":"wp_commentmeta","links":"wp_links","options":"wp_options","postmeta":"wp_postmeta","posts":"wp_posts","terms":"wp_terms","term_relationships":"wp_term_relationships","term_taxonomy":"wp_term_taxonomy","termmeta":"wp_termmeta","usermeta":"wp_usermeta","users":"wp_users","blogs":null,"blogmeta":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_520_ci","func_call":"$db-\u003Equery(\u0022SELECT option_value FROM wp_options WHERE option_name = \u0027_transient_wp-rest-enabled-ping\u0027 LIMIT 1\u0022)","is_mysql":true,"time_start":null,"error":null,"categories":"wp_categories","post2cat":"wp_post2cat","link2cat":"wp_link2cat"},"locale_utils":{},"footer_preview":false,"icl_translations_cache":null,"icl_language_name_cache":{},"icl_term_taxonomy_cache":null},"setup"]}]},"delegated":true}}}}} |
February 1, 2024 at 12:54 pm #15255019 | |
Marcel Supporter
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, the video is not available anymore, so I try to understand it based on your text. Please check the following things: 1) What you see is the internal permalink from WP. Make sure your server supports mod_rewrite to use "Pretty Permalinks". If this is correctly configured, continue with the next step. 2) Open the affected post on the Backend and switch to the secondary language via the top-bar language switcher. Make sure the page is not saved as a draft. If yes, publish it so that the permalink will be generated. Best Regards |