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

Last updated by Mohamed Sayed 1 year, 11 months ago.

Assisted by: Mohamed Sayed.

Author Posts
November 22, 2022 at 1:52 am #12507549

sheaT

I am trying to:
Setup my WPML Pages

Link to a page where the issue can be seen:
hidden link - click the translate to Chinese (Traditional) at the bottom

I expected to see:
A translated page

Instead, I got:
A 404 Error Page

November 22, 2022 at 1:15 pm #12511745

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

1) Please increase the WordPress Memory Limit. According to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. Minimum requirements for WPML is 128Mb. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

2) Go to Pages > All Pages, and check if the translation of this page is complete (Shows a pencil icon).

3) Go to the WP Dashboard > Settings > Permalinks, and resave the settings there by clicking the "Save changes" button without making any changes.

Let me know please if that helps.

Regards,
Mohamed

November 23, 2022 at 2:56 am #12515839

sheaT

Thank you for the recommendation, but for some reason it still doesn't work. This is the page that's having issues

hidden link

That's the link the hotbutton at the footer takes me to when I try to go to the translated version of the page

November 23, 2022 at 9:33 am #12517671

Mohamed Sayed

Hi,

I checked the DNS for the primary and secondary domains and it looks ok. Please try the following after creating a full database and website backup:

1) Please go to WPML > Support > Troubleshooting page, then click the following:
- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Set language information
- Fix post type assignment for translations

2) If the issue persists, kindly check again in a minimal environment by following these steps:

- Deactivate all the plugins that are not related to WPML.
- Switch for a moment to a WordPress default theme like Twenty Twenty-one.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

November 24, 2022 at 5:47 am #12524253

sheaT

Hmm, okay I tried what you said but I still get the error, even in a private browser window 🙁

I also tried to deactivate all plugins, and only kept your WPML plugin, and the 404 error still showed. I'm happy to provide you with temporary admin access to inspect this further if you like

November 24, 2022 at 9:37 am #12525525

Mohamed Sayed

Hi,

I would need to request temporary access (WP-Admin and FTP) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

✙ I would also need your permission to take a local copy of your site to debug the issue without affecting your live site.

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

November 26, 2022 at 1:30 am #12537097

Mohamed Sayed

Hi,

It seems that the issue is related to the second domain, I switched the URL format to "Different languages in directories" then the issue was resolved as you can see here: hidden link

Please test if the domain is set properly by following the steps mentioned here: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#testing-if-the-domains-are-set-properly

If you can't access the site with the second domain while WPML is disabled, then you need to contact the hosting provider and ask them to check the DNS settings. Please check this guide for more details https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#2-configure-the-dns-settings

Regards,
Mohamed

November 26, 2022 at 10:01 pm #12539257

sheaT

Hmm okay, wait I'm confused now though, I thought previously you even checked and said, "I checked the DNS for the primary and secondary domains and it looks ok" - didn't you already verify my DNS settings were good?

November 27, 2022 at 8:32 am #12540743

sheaT

I contacted my server host providers, and this is what they said in regards to the guides you sent. I sent them a copy of your message

I can see that both domains are correctly pointed to your server

The subdomain also returns an empty page, since the website directory is indeed empty:
> hidden link

As per the guide you've provided, I can only see that they're suggesting that your domain/s are pointed to your server in order for WPML to work and we've already confirmed that they are indeed pointed.

November 27, 2022 at 10:27 am #12541013

Mohamed Sayed

Hi,

When I checked the IP addresses for the two domains before, I found that both are showing the same IP. That's why I said it looks ok. Please see here: hidden link

After checking the screenshot you shared, I think I found the reason for this issue. The subdomain is pointing to the same IP but not the same WordPress installation, as mentioned in our guide it should be pointing to the WordPress installation where WPML is installed, not a new directory. Please see here https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#2-configure-the-dns-settings:~:text=you%20need%20to%20make%20all%20your%20domains%20(or%20sub%2Ddomains)%20point%20to%20your%20WPML%2Dpowered%20site

So kindly contact the hosting provider and ask them to remove the empty directory, then point the subdomain to the directory of the primary domain where WPML is installed.

Regards,
Mohamed

November 30, 2022 at 2:02 am #12559349

sheaT

Ahh okay, let me ask them to make that change and I'll get back to you!

November 30, 2022 at 3:07 am #12559507

sheaT

Okay, that worked! But now I'm having issues with permissions, I'm getting this error

"Sorry, the current login does not have permission to preview drafts."

Even though I'm signed in with the admin account

November 30, 2022 at 9:08 am #12560767

Mohamed Sayed

Hi,

Could you please tell me more details about this message like where you see it and in which language?

Please also try the following steps and let me know how it goes:

- Go to WPML -> Languages -> Language URL format
- Check the "Auto sign-in and sign-out users from all domains" option
- Click on the Save button
- Log out and log in again

December 2, 2022 at 2:29 am #12575439

sheaT

Hmm, I can't save the page with that option because it shows the url entered for the " A different domain per language" section shows the url is "Not valid" even though I thought we confirmed it was?

Screenshot 2022-12-01 182908.png
December 2, 2022 at 2:32 am #12575479

sheaT

Actually, I got it to work! But now I notice in the editor mode of your plugin, it's adding a divi sidebar code to the tw.skye-collective.com pages. I can't seem to remove it