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 topic contains 11 replies, has 3 voices.

Last updated by sebastianM-7 5 years, 4 months ago.

Assigned support staff: Minesh.

Author Posts
January 7, 2015 at 10:10 pm #538835

sebastianM-7

I have some challenges with setting up different domains pointing to wordpress on a virtual server as well. One for each language, I followed the different help guides that you have on your website including the one you mentioned above but unfortunately I get stuck by the CNAME part. I have spoken a couple of times to my provider (GoDaddy) but they just don't understand what I am trying to do in CNAME. I have spend most day trying to figures this out - I would really appreciate some help with this and not just another guide to follow 😉

Currently was successful in pointing hidden link and hidden link to the wordpress instance sitting on 184.168.47.225 with the domain name hidden link.

When I type in either of the pointing domains (.eu or .de) I get "pageok" noting else. I am not sure why it won't just go to the website at all. I have also put to entire into hidden link CNAME record -entry 1: Host hidden link Points To @
-entry 2: Host hidden link Points To @
It did not make a difference so I took that out again and changed the forwarding back to how it was - just so that the pages work again....

Would you be able to help me with this. I am really not sure how to solve this myself.
Many thanks!
Sebastian

January 8, 2015 at 6:06 am #538915

Minesh
Supporter

Hello and thank you for contacting WPML support!!

1)
Can you please send us debug information in order to investigate your issue.
=> http://wpml.org/faq/provide-debug-information-faster-support/

2)
Can you please make sure that you gone through documentation:
=> http://wpml.org/faq/server-setting-for-languages-in-different-domains/

January 8, 2015 at 7:29 am #538942

sebastianM-7

{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/www.infrared-saunas.co.nz","HomeURL":"http:\/\/www.infrared-saunas.co.nz","Version":"4.1","PermalinkStructure":"\/%year%\/%monthnum%\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, wpcf7_contact_form, portfolio, faq, testimonial","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit"},"Server":{"jQueryVersion":"1.11.1","PHPVersion":"5.4.16","MySQLVersion":"5.5.40","ServerSoftware":"Apache"},"PHP":{"MemoryLimit":"256M","UploadMax":"64M","PostMax":"65M","TimeLimit":"30","MaxInputVars":"1000"}},"plugins":{"active_plugins":{"404-redirected\/404-redirected.php":{"Name":"404 Redirected","PluginURI":"http:\/\/www.weberz.com\/plugins\/404-redirected\/","Version":"1.3.2","Author":"Weberz Hosting","AuthorURI":"http:\/\/www.weberz.com","TextDomain":"","DomainPath":"","Network":false,"Title":"404 Redirected","AuthorName":"Weberz Hosting"},"LayerSlider\/layerslider.php":{"Name":"LayerSlider WP","PluginURI":"http:\/\/codecanyon.net\/user\/kreatura\/","Version":"4.6.5","Author":"Kreatura Media","AuthorURI":"http:\/\/kreaturamedia.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"LayerSlider WP","AuthorName":"Kreatura Media"},"ajaxtown-engine\/ajaxtown-engine.php":{"Name":"Ajaxtown Engine","PluginURI":"http:\/\/ajaxtown.com\/playground\/amun","Version":"1.0.0","Author":"Ajaxtown","AuthorURI":"http:\/\/www.mojo-themes.com\/user\/ajaxtown\/","TextDomain":"","DomainPath":"","Network":false,"Title":"Ajaxtown Engine","AuthorName":"Ajaxtown"},"contact-form-7\/wp-contact-form-7.php":{"Name":"Contact Form 7","PluginURI":"http:\/\/contactform7.com\/","Version":"4.0.3","Author":"Takayuki Miyoshi","AuthorURI":"http:\/\/ideasilo.wordpress.com\/","TextDomain":"contact-form-7","DomainPath":"\/languages\/","Network":false,"Title":"Contact Form 7","AuthorName":"Takayuki Miyoshi"},"google-analytics-for-wordpress\/googleanalytics.php":{"Name":"Google Analytics by Yoast","PluginURI":"https:\/\/yoast.com\/wordpress\/plugins\/google-analytics\/#utm_source=wordpress\u0026utm_medium=plugin\u0026utm_campaign=wpgaplugin\u0026utm_content=v504","Version":"5.2.7","Author":"Team Yoast","AuthorURI":"https:\/\/yoast.com\/","TextDomain":"google-analytics-for-wordpress","DomainPath":"\/languages","Network":false,"Title":"Google Analytics by Yoast","AuthorName":"Team Yoast"},"intuitive-custom-post-order\/intuitive-custom-post-order.php":{"Name":"Intuitive Custom Post Order","PluginURI":"http:\/\/hijiriworld.com\/web\/plugins\/intuitive-custom-post-order\/","Version":"2.1.0","Author":"hijiri","AuthorURI":"http:\/\/hijiriworld.com\/web\/","TextDomain":"","DomainPath":"","Network":false,"Title":"Intuitive Custom Post Order","AuthorName":"hijiri"},"quick-setup\/quick-setup.php":{"Name":"Go Daddy Quick Setup","PluginURI":"http:\/\/www.godaddy.com\/","Version":"1.06","Author":"GoDaddy.com, LLC","AuthorURI":"http:\/\/www.godaddy.com\/","TextDomain":"gd_quicksetup","DomainPath":"\/lang","Network":false,"Title":"Go Daddy Quick Setup","AuthorName":"GoDaddy.com, LLC"},"sitepress-multilingual-cms\/sitepress.php":{"Name":"WPML Multilingual CMS","PluginURI":"https:\/\/wpml.org\/","Version":"3.1.8.4","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"WPML Multilingual CMS","AuthorName":"OnTheGoSystems"},"wordpress-importer\/wordpress-importer.php":{"Name":"WordPress Importer","PluginURI":"http:\/\/wordpress.org\/extend\/plugins\/wordpress-importer\/","Version":"0.6.1","Author":"wordpressdotorg","AuthorURI":"http:\/\/wordpress.org\/","TextDomain":"wordpress-importer","DomainPath":"","Network":false,"Title":"WordPress Importer","AuthorName":"wordpressdotorg"},"wp101-video-tutorial\/wp101-video-tutorial.php":{"Name":"WP101 Video Tutorials","PluginURI":"","Version":"0.3","Author":"WP101Plugin.com","AuthorURI":"http:\/\/wp101plugin.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"WP101 Video Tutorials","AuthorName":"WP101Plugin.com"},"wpml-string-translation\/plugin.php":{"Name":"WPML String Translation","PluginURI":"https:\/\/wpml.org\/","Version":"2.0.14","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"WPML String Translation","AuthorName":"OnTheGoSystems"}},"mu_plugins":{"gd-system-plugin.php":{"Name":"System Plugin","PluginURI":"","Version":"","Description":"","Author":"","AuthorURI":"","TextDomain":"gd_system","DomainPath":"\/gd-system-plugin\/lang","Network":false,"Title":"System Plugin","AuthorName":""}},"dropins":{"object-cache.php":{"Name":"APC Object Cache","PluginURI":"","Version":"2.0.6","Description":"APC backend for the WP Object Cache.","Author":"Mark Jaquith","AuthorURI":"http:\/\/coveredwebservices.com\/","TextDomain":"","DomainPath":"","Network":false,"Title":"APC Object Cache","AuthorName":"Mark Jaquith"}}},"theme":{"Name":"Amun","ThemeURI":null,"Author":"\u003Ca href=\u0022http:\/\/www.mojo-themes.com\/user\/ajaxtown\/\u0022\u003EAjaxtown\u003C\/a\u003E","AuthorURI":null,"Template":"amun","Version":"1.0","TextDomain":null,"DomainPath":null},"extra-debug":{"WMPL":{"hide_upgrade_notice":"3.1.8","icl_capabilities_verified":true,"interview_translators":1,"existing_content_language_verified":1,"language_negotiation_type":"1","theme_localization_type":1,"icl_lso_header":0,"icl_lso_link_empty":0,"icl_lso_flags":1,"icl_lso_native_lang":1,"icl_lso_display_lang":1,"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_private_flag":1,"sync_post_format":1,"sync_delete":0,"sync_delete_tax":0,"sync_post_taxonomies":1,"sync_post_date":0,"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,"troubleshooting_options":{"http_communication":1},"automatic_redirect":1,"remember_language":92,"icl_lang_sel_type":"dropdown","icl_lang_sel_stype":"mobile","icl_lang_sel_orientation":"vertical","icl_lang_sel_copy_parameters":"","icl_widget_title_show":0,"translated_document_page_url":"auto-generate","sync_comments_on_duplicates ":0,"seo":{"head_langs":1,"canonicalization_duplicates":1},"posts_slug_translation":{"on":0},"languages_order":["eur ui-sortable-handle","aus ui-sortable-handle","de ui-sortable-handle","en ui-sortable-handle"],"urls":{"directory_for_default_language":0,"show_on_root":"","root_html_file_path":"","root_page":0,"hide_language_switchers":1},"admin_default_language":"en","ajx_health_checked":true,"dont_show_help_admin_notice":true,"setup_complete":1,"setup_wizard_step":4,"default_categories":{"en":"1","de":59,"aus":60,"eur":61},"default_language":"en","taxonomy_names_checked":true,"translation-management":{"notification":{"new-job":1,"completed":1,"resigned":1,"dashboard":true,"purge-old":7},"custom_fields_translation":{"title":2,"description":2,"keywords":2},"doc_translation_method":0,"custom_types_readonly_config":{"portfolio":1,"faq":1,"testimonial":1},"taxonomies_readonly_config":{"portfolio_cat":1,"portfolio_tag":1,"faq_cat":1}},"custom_posts_sync_option":{"portfolio":1,"faq":1,"testimonial":1},"taxonomies_sync_option":{"portfolio_cat":1,"portfolio_tag":1,"faq_cat":1},"icl_lang_sel_config":{"font-current-normal":"#444444","font-current-hover":"#000000","background-current-normal":"#ffffff","background-current-hover":"#eeeeee","font-other-normal":"#444444","font-other-hover":"#000000","background-other-normal":"#ffffff","background-other-hover":"#eeeeee","border":"#cdcdcd"},"icl_lang_sel_footer_config":{"font-current-normal":"#444444","font-current-hover":"#000000","background-current-normal":"#ffffff","background-current-hover":"#eeeeee","font-other-normal":"#444444","font-other-hover":"#000000","background-other-normal":"#ffffff","background-other-hover":"#eeeeee","border":"#cdcdcd","background":"#ffffff"},"icl_language_switcher_sidebar":"1","icl_lang_sel_footer":0,"icl_post_availability":0,"icl_post_availability_position":"below","icl_post_availability_text":"This post is also available in: %s","icl_additional_css":"","language_selector_initialized":1,"display_ls_in_menu":0,"menu_for_ls":0,"site_key":"Euia9HEaer","show_translations_flag":1,"st":{"sw":{"strings_language":"en"},"strings_per_page":10,"icl_st_auto_reg":"disable","strings_language":"en","translated-users":[],"theme_localization_domains":["Ajaxtown","Ajaxtown_Engine",""]},"theme_localization_load_textdomain":0,"gettext_theme_domain_name":"","edit_languages_flag_migration":1,"language_domains":{"de":"clearlight-saunen.de","aus":"clearlight-saunas.com.au","eur":"clearlight-saunas.eu","en":"http:\/\/www.infrared-saunas.co.nz"}}}}

January 8, 2015 at 7:31 am #538943

sebastianM-7

Hi Minesh,

Thanks for your reply. I have tried using the step by step guide that you mentioned. I send hours trying to figure it out. As mentioned in my original message I get stuck with step 2. Please let me know if you require more information.

Kind regards,
Sebastian

January 8, 2015 at 7:43 pm #539532

sebastianM-7

HI Minesh,

I hope you had a great day! Have you been able to find the setup up that I need to do to link my different domains to the various languages?

Many thanks!
Sebastian

January 9, 2015 at 8:22 am #539709

Minesh
Supporter

*** Please take FULL BACKUP of your database and your website.***

In order to investigate your issue if we require to check things on your install in order to see what could be going wrong there.

If you agree to this please use the form fields I have enabled below this comment box to provide temporary access details (wp-admin and FTP)?

I have set next reply as private.

January 13, 2015 at 9:42 am #541522

Minesh
Supporter

I checked your issue and I set the option "Disable browser language redirect" from:
=> WPML => Languages => Browser language redirect

Can you please confirm is your issue fixed?

January 14, 2015 at 8:01 am #542107

sebastianM-7

Hi Minesh,

Thank you so much for all your good work. that is absolutely amazing! Loving it!
On question that I have which is related is, is there a way to have variables that you set for each language and dependent on the language selected, it will give back the right text. E..g I use a viable $phone on a page that is duplicated in all english languages (so content is identical in all cases), however the variable $phone changes depended to the language selected. Possible? Do you have a guide on that? Many thanks in advance and have the best day ever!
Regards,
Sebastian

January 14, 2015 at 2:54 pm #542462

Robert

Minesh is away on holiday so I will take his place for now. Glad you were able to resolve the issue, as for the new question. You can use WPML api to show content based on the active language like so:

<?php if(ICL_LANGUAGE_CODE=='en'): ?>
---do something---
<?php elseif(ICL_LANGUAGE_CODE=='nl'): ?>
---do something else--
<?php endif; ?>

More information here: http://wpml.org/documentation/support/wpml-coding-api/

January 14, 2015 at 9:43 pm #542747

sebastianM-7

Hey Robert,

Thanks of your prompt reply.

That is absolutely awesome. I appreciate it! Another question I had was. Is it possible to have two domains pointing to one language e.g. have an .eu and co.uk both pointing to the same language version?

Many thanks and have the best day ever!
Sebastian

January 15, 2015 at 12:22 pm #543090

Robert

I am happy to help. There isn't a way to add two domains to a language via WPML so you cannot access the same pages via either .eu or co.uk. You could create an additional language though and assign a domain to it but this would require you duplicate all content all the time and it would appear on the WPML language switcher.

Otherwise you can just set a domain forward so that visitors of eu get sent to co.uk

January 15, 2015 at 9:00 pm #543473

sebastianM-7

Awesome. Thanks - the duplication of the EU version will work. Awesome.

Cheers,
Sebastian