The whole site is translated from dutch to english. The pages worked as the should. Then last thing I translated the products. Then things got bad. When on a dutch product-page, selecting the english flag button would show the correct permalink, but redirect it to the account login page. After that I emptied the cache....now none of the english pages will show. It gives an critical error.
Is there any documentation that you are following? Not now.
Is there a similar example that we can see?
See the link en press the english flag.
After that, please make sure you have the WordPress debug reporting enabled to instead of the Critical error, you will see the actual error under the hood to be able to report to us:
Would you please access your website files and edit the "wp-config.php" file on the root folder of your WordPress installation and add the code below into the file:
I have done both things you asked.
In the meantime, the plugin B2B Wholesale Suite is deactivated because it seemed that this plugin and WPML were causing the problem. I still need to use both...