Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

The client is experiencing multiple issues: 1) their domain thepulsecure.com is redirecting to pulskuren.no, 2) they encounter an error stating "Sorry, you are not allowed to preview drafts" when trying to review a translated post, and 3) the language switcher is only showing the Norwegian language.

Solution:
We recommend the following steps:

1) Clear the cache of the website, both from website plugins and from the server.

2) Set the Language URL format to "A different domain per language" in WPML settings.

3) Flush the permalinks by going to wp-admin -> Settings -> Permalinks and clicking save.
4) Enable the option "Auto sign-in and sign-out users from all domains" in WPML -> Languages -> Language URL format, and make sure to log out and then log in again after.

Additionally, we suggest increasing the WP memory limit to at least 128MB, as per WPML's minimum requirements.

Also, we noticed from the debug info that the client was using multiple plugins related to caching:
- LiteSpeed Cache, Object Cache Pro, WP OPcache

We recommend disabling all non-essential plugins and clearing the server cache to check if the problem still occurs in a minimal setup. Ensure you have a full backup of your website before making any changes.

If this solution doesn't look relevant, please open a new support ticket.

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: 

This topic contains 3 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year ago.

Assisted by: Marsel Nikolli.

Author Posts
December 17, 2023 at 4:33 am #15078387

arildB

Hi
I try to set up my site with different domain pr language.
1) thepulsecure.com is redirecting to pulskuren.no
2) I also get this error "Sorry, you are not allowed to preview drafts", when I try to review a translated post
3) The language switcher in the bottom is only showing the Norwegian language.

What I have done to investigate the problem.
1) Deactivate all plugins and change to default theme. The problem is still there.
2) Change to "different langages in directoires" This solves the problem with Sorry, you are not allowed to preview drafts.

Can you please assist?

Cheers

December 18, 2023 at 10:45 am #15082521

Marsel Nikolli

Hi,



Thank you for contacting WPML Support, I will be happy to help you.


I would suggest you try:

1) Clearing the cache of the website (from website plugins and on from the server as well).

2) After, if the issue persists please try:
- set the Language URL format to "A different domain per language"
- try flushing the permalink by going to wp-admin -> Settings -> Permalinks and click save

After, please check if the issue persists and let me know.

Note: Please also enable this option "Auto sign-in and sign-out users from all domains" in WPML -> Language -> Language URL format. Also please make sure you log out and then log in again after.

Looking forward to your reply,
Marsel

December 19, 2023 at 9:28 pm #15096727

arildB

Hi
I have unfortunately already tried your suggestion several times. Could you please have a closer look?

Cheers

December 20, 2023 at 8:23 am #15098557

Marsel Nikolli

Hi,

1) It might not be related to the issue, but according to your debug.info, the WP memory limit needs to be increased. WordPress uses 40Mb as default and the minimum requirements for WPML are 128 MB. (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 line: /* That's all, stop editing! Happy publishing. */

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

2) I was able to check your website URL (thepulsecure.com) on the hidden link, and you can still see a 301 redirect happening.

* I noticed from the debug info that you have 3 different plugins related to caching:
- LiteSpeed Cache
- Object Cache Pro
- WP OPcache

I would suggest you try checking if the issue happens in a minimal setup, that meaning:
- keep the theme you have
- activate only WPML plugins and only the necessary plugins to run the theme (if any is needed)
- disable all the other plugins
- clear the cache from the server

After, check if the issue persists and let me know.

* Note: Please make sure you have a full backup of your website before making any change on your website.

Let me know how it goes or if you have any questions.
Marsel

December 21, 2023 at 7:27 am #15106999

arildB

Great support! Keep on the good work