Skip Navigation

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 7 replies, has 2 voices.

Last updated by tomasS-17 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
August 1, 2023 at 7:22 pm #14137319

tomasS-17

Hello,
I am trying to install WPML and have following issues:

INVALID DOMAIN
- when I choose translations on different domains, it says the domain is invalid. Followed your manual in documentation and the domain is setup as an "alias" and pointing to the same domain as the main website. Same IP address. The main domain with WP installation is repolar.care, the domain for translation is repolar.hu. There will be more, but now only the .hu for sorting this issue out. I went through a few support discussions of these subject, done all I could and nothing helped.

- ERROR AFTER WPML SETUP DONE
The website is broken (error) when the setup is done. Doesn't matter if I choose to use domain (setup domain after setup wpml), folder or php parameter. I tried all the possible workflows to identify issue, set the server up as it needs to be. Tried it on different server, also on different webhosting with larger flexibility of server setup, I did set required values to 2 times higher and nothing changed. I ended with all the other plugins deactivated. I activated the default WP theme 2023. Nothing changed. Still the same error.

I installed the backup of this website more than 10 times already and I run out of ideas on how to sort this out.

Please, can you help to identify the issue and give me a clue how to make the WPML running? This isn't first time I am using it. I installed it to many website of my clients, and never had any issue. There is another few websites with WPML on the same server as this website is. All ok. But repolar.care is a mystery.

Here is a video (screen video shot) hidden link
I am showing there the php.info, server setup and installed theme and plugin. Also showing the process of setup as I do it. You can see there also the moment where it get stacked. There is also the debug info. You can find the debug.log here if needed: hidden link

Unfortunately can't provide this exact debug info you asking below as the website gets broken after WPML setup. Only I can do is to call the backup of the fresh website without WPML, install WPML and go through the setup again - but it will get broken. Only debug log is the one you asked someone else in your support - the wp-config instructions. Here it is: hidden link

August 2, 2023 at 2:13 pm #14143259

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. I will be glad to assist you in this matter.

I appreciate the effort you put into creating the video and briefly explaining the issue. It is clear and easy to understand. Please find the response to each issue you've mentioned, below.

- INVALID DOMAIN: I understood that even after following everything mentioned in the documentation, you still can't add different domains for other languages. In order to enable this language URL format, it's necessary that all domains have the SSL certificate. If you check the "What you will need" section on the documentation that you mentioned, you'll see that the last item is:

- You should have an SSL certificate for each site translation or one multi-domain SSL certificate.

Please check it: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#what-you-will-need

Please check this option with your hosting provider and I hope the issue will be resolved right after enabling the SSL. Let me know the update.

- ERROR AFTER WPML SETUP DONE: Thanks for sharing the Error log. We have already been able to trace the same issue and published an errata mentioning the cause and solution. Please check the Errata below and try the workaround mentioned there.

- https://wpml.org/errata/fatal-error-invalidargumentexception-element_id-and-type-do-not-match/

I hope the issue will be solved after that.

But, feel free to let me know if you need any further assistance. I will be happy to help.

Best Regards,
Prosenjit

August 2, 2023 at 3:16 pm #14143621

tomasS-17

Hi Prosenjit,

thank you for quick answer.

All the domains have the SSL certificate active. Do you have any other tips please?

I am going to try to sort the other issue tonight.

Tomas

August 2, 2023 at 7:21 pm #14144525

tomasS-17

Hi again,

so.. Still no success with the domain. SSL is (and was) active.

Also no success with the error after setup done. In the support area I clicked "troubleshooting" link, but there isn't the button "Fix post type assignment" mentioned in the third step.
I tried to look into the database as mentioned further, but really don't know what to delete. I deleted something and after that the debug shown even more errors.

Could I ask you guys to do it for me? Please...

Tomas

August 3, 2023 at 11:34 am #14149035

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Tomas,
Thanks for the update.

I rechecked your site and can see that the SSL is still not activated for the domain. I verified this by clearing cookies and browsing in incognito mode. For a clearer understanding, please check this screenshot: hidden link

Can you please force the HTTPS protocol for the domain and check if the issue still persists or not? If everything is configured correctly, you should see a padlock icon in the URL bar of the browser. Make sure to verify that for both the main and other domains. You can also reach out to the hosting provider and consult with them regarding this matter. I hope they will help you better in this matter.

Regarding the Fatal error- You need to delete some corrupted data from the Database. If you're having trouble doing that, I can do that for you. I will need access to your wp-admin and FTP and also permission to install a Database plugin and execute some database queries. It would be better to have a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

August 7, 2023 at 9:46 am #14162575

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi Tomas,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Kindly be informed that the issue you encountered after completing the WPML setup is solved now. I deleted the corrupted 'element_id' from the database and that solves the issue.

Regarding the issue with setting up different domains per language- I can see that the SSL is forced for the main domain but I still can see that the SSL for the secondary domain is not configured properly. Apart from that, a redirection to your main domain is happening which is not usual. I kindly request you to confirm:
- The SSL configuration for the secondary domain
- No redirection has been set in the hosting or domain panel from the secondary domain to the main domain
- The DNS and "A" record in the secondary domain are set and point correctly to the main domain.

After confirming these, if you try to access the secondary domain, you should see the default content without any redirection.

Let me know the update. I will be happy to help if you need further assistance in this matter.

Best Regards,
Prosenjit

August 7, 2023 at 9:05 pm #14166217

tomasS-17

Hi, thank you,

sorting the SSL atc with the webhosting support.

In the meantime, I checked the website. Thank you for sorting out the issue. Now I see that all pages and posts from the website are gone. All showing 404 error. When I looked into admin > pages/posts - I see there is 21 published posts, but they aren't visible in the post listings. Same as Pages. How did could happen?? It was there before the WPML setup done. I kept your login details the same as I sent before, please feel free to check/fix what happened.

Thank you so much for your help!
Tomas

August 8, 2023 at 10:28 am #14168421

tomasS-17

Hi, thanks for your help. In the end, we decided we will do the translations manually without the help of WPML. We will do 4 different installations for each domain and we will be sorted. This bug and all the SSL setup seem to be more complicated. Please don't do any action I asked you above.
Thank you
Tomas