This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing login errors on the .co.uk URL and encountering 404 errors when using the WordPress preview option on the same domain. Additionally, you asked about setting different time zones by language.
Solution:
The issue with the login and preview errors is recognized and has been escalated to our developers. However, it is not a high priority fix due to its infrequent reporting, and there is no estimated time for resolution. As a workaround, ensure you are logged in on both the .com and .co.uk domains. You can verify this by checking for the admin bar on the frontend. If it's not visible on the .co.uk domain, log in again at
/wp-admin
on .co.uk, and you should be able to preview pages normally.
Regarding setting different time zones by language, this needs to be configured on a user-by-user basis.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.
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: Exception
This topic contains 10 replies, has 3 voices.
Last updated by Dražen 4 months ago.
Assisted by: Dražen.
Author | Posts |
---|---|
October 4, 2024 at 11:21 pm #16255907 | |
jordanP-2 |
Background of the issue: Symptoms: Questions: |
October 6, 2024 at 6:51 pm #16258403 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, For things to work as you expect, you may need to enable the auto sign-in and sign-out feature. Please read about it here. Also, the debug info you have attached shows that your server's WP Memory Limit is set to 40M. Our recommendations are to have the following as minimal requirements: - PHP 7 and above (this OK with your installation) with a WP Memory Limit of at least 128MB while 256MB is recommended. MySQL 5.6 and above. Please follow this link for detailed documentation: https://wpml.org/home/minimum-requirements/ Is it possible for you to change those to the minimum requirement? You may need to contact your hosting provider for that. Meeting those baseline requirements is critical before debugging and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file: /** Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define( 'WP_MAX_MEMORY_LIMIT', '256M' ); Add it before this line: /* That's all, stop editing! Happy blogging. */ Could you please perform that procedure and see if it helps? Regards, |
October 7, 2024 at 11:42 pm #16263648 | |
jordanP-2 |
Hi, I increased the memory limit but I still get the 404 error. Is it possibly related to something with the domain? |
October 8, 2024 at 12:25 pm #16265374 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, Was the page in the second language on hidden link created in this language (GB English), or is a translation of the original on hidden link? If it is a translation, I think the preview option is impossible. You also asked: "Is it possible to set different time zones by language, or does that have to be done on a user-by-user basis?" I'm sorry, but I don't understand what you mean or what you are trying to achieve. By instinct I'd say it is not possible, but please elaborate on this point. Regards, |
October 8, 2024 at 3:26 pm #16266366 | |
jordanP-2 |
Hi Itamar, I want to make sure I understand you. Let's say I create pipeline-360.com/page-a. I translate that page using WPML's translation editor to pipeline-360.co.uk/page-a. Are you saying that I can never use the WordPress preview option for pipeline-360.co.uk/page-a? Why is that? I also think there's something else beyond that limitation. I just tried creating a test page on pipeline-360.co.uk. It is not a translation from .com, it's a new page. I still get a 404 error when I try to preview it. For the other question, I was hoping that if you're in WP admin for pipeline-360.com, the times would all be Pacific. In contrast, I was hoping the times in WP admin when you're viewing the pipeline-360.co.uk content would be London time. Is that possible? |
October 9, 2024 at 2:08 pm #16270903 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, I need to check the preview issue directly on your site to understand it better. Please give me access to your site and explain how to see the issue. Also, please explain to me which preview option you mean. Screenshots would be beneficial. As for the time issue, I'm sorry, but there is no such option with WPML. The time on the admin of your site is set in Settings -> General -> Timezone and can not be changed according to the language. If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply. Privacy and Security Policy |
October 13, 2024 at 5:13 pm #16283349 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for the access details. I don't see this problem when I follow the steps you have given me. Please see the attached screenshots. Please confirm that this problem is resolved. Regards, |
October 14, 2024 at 10:54 pm #16288058 | |
jordanP-2 |
Hi Itamar, What browser are you using? Because the issue is inconsistent for me in Chrome but I always have the issue in Firefox. My client has confirmed that it happens for her in Chrome too. I don't understand why it would only be an issue in some browsers, but maybe I'm missing something. Thanks! |
October 15, 2024 at 7:25 am #16288866 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, Itamar is OFF and I will be taking care of the ticket. I have checked and I can see the issue with Firefox, I also see it is a known issue and already escalated to our devs, but it will take some time before it is fixed. As a workaround, you should check both .com and co.uk websites and make sure you are loggedin in both, you will see the top admin bar on the frontend if logged in. If you are not, log in again to co.uk from /wp-admin and then you can preview pages normally also on that domain. In short, the preview doesn't work since you are not logged in, and the session is not correctly passed to the 2nd domain. Regards, |
October 16, 2024 at 3:38 am #16292978 | |
jordanP-2 |
Hi Drazen, Thank you for the update. When you say it might take time, do you have any kind of an estimate? Because I brought up a performance issue for a different website in June 2023 and I still haven't been told if that particular issue is fixed or not. |
October 16, 2024 at 6:28 am #16293251 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I do not have time, nor can I share any ETA, but the fix for this bug is not a high priority since not many clients reported it, so to be honest I do not expect it to be fixed any time soon. Regards, |