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 37 replies, has 2 voices.
Last updated by Prosenjit Barman 1 year, 6 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
March 30, 2023 at 9:17 am #13365031 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I would be happy to forward this issue to the developer if I'm unable to find the root cause of the issue. I inspected the issue again on your staging site and this time did the investigation in a minimal environment. Which means- - Switched to Parent Theme In the minimal environment, I followed all the instructions you shared through the video. I made changes multiple times on the default page but the changes didn't appear on the translated page at all. The translated page didn't get overwritten until changes are made there. Please check this video(hidden link) for a better understanding. It is a bit long video as I tried to capture the entire process there. You can also check on your staging environment in that way. If everything starts to work properly, then start activating the plugin one by one and closely monitor the issue by making changes in the default language. In this way, you will be able to identify any conflicting plugins and pinpoint the one that is causing the problem. Please let me know how it goes. We will be happy to assist you till we are able to solve the issue. Best Regards, |
March 30, 2023 at 9:37 am #13365213 | |
walter-arielM |
Hello, Please forward this issue to the developer. This is an issue on your side. Doing this testing for each plugin deactivation is massive work and it is quite clear that the page is reverting the translation mode with each page update. The developer will find the right way to debug this. Let me know. |
March 30, 2023 at 12:17 pm #13367189 | |
walter-arielM |
Hello, I did what you asked to do. I deactivated ALL plugins except the WPML plugins and Woocommerce which is needed for the Flatsome theme. Then I did a test and the issue PERSIST. Take look a this 1 minute video: hidden link I sent you Admin user and FTP credentials for the site: hidden link Do the tests in this page: hidden link Let me know. Thanks. |
March 31, 2023 at 10:37 am #13374797 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Sorry to hear that the suggestions didn't work for you. But, don't worry. We will try our best to solve the issue for you. Please be informed that I have forwarded this matter to the 2nd tier team for further investigation. But, in the meantime, I also did some testing. I created a new page to check if the issue is happening on the "inici" page or other pages as well. I activated all plugins first and updated the WPML plugin as well. Then I placed the banner and heading widget on the new page and checked by changing content in default language multiple times but I'm unable to trace the issue in the new page. The contents are showing properly. Kindly check this video I made while testing on a new page: hidden link here is the page where I did the testings- hidden link So, there must be something on that page which is causing the issue. We will keep investigating to find the root cause. As soon as I have more updates on this matter, I will surely let you know. I appreciate your continued patience and kind cooperation in this matter. Best Regards, |
March 31, 2023 at 7:20 pm #13378525 | |
walter-arielM |
Hi, I have got this error message. I guess you are doing your tests. Error type E_ERROR line 34 of file /usr/home/t15/www/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php. Error message: Uncaught InvalidArgumentException: element_id and type do not match for element_id:11551 the database contains post_post while this function was called with post_attachment in /usr/home/t15/www/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:34 |
March 31, 2023 at 8:34 pm #13378745 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Yes, the tests are going on. The issue is consistent on that specific page only, not on any other page. However, May I know how you've found those error logs? Because these errors are not visible in the debug log of the staging site or anywhere on the site. I also have tried to find the Post that belongs to the `element_id` (11551) mentioned on the error log but it returns nothing. Kindly let us know the steps you have taken to trace it. This may expedite our testing procedure. Best Regards, |
April 1, 2023 at 8:06 am #13380493 | |
walter-arielM |
Hello, I got the error by email. WordPress sends an automatically notification when a fatal error happens. Let me know if you need something else. |
April 1, 2023 at 4:38 pm #13381619 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello Walter, After conducting a thorough investigation, I identified the root cause of the problem. The 5th banner on the slider (Screenshot: hidden link) in the default language contains a link and strangely, that appears to be the source of the issue. When I removed the link, the content in the secondary language remained intact and was not getting overwritten. Kindly check this video(hidden link) that I made during testing so that you can get a better understanding. Since the issue gets fixed on the staging site by removing the link, would you please check by doing the same? Please let me know the update. I will be happy to assist you if further assistance is required. Best Regards, |
April 2, 2023 at 11:45 am #13384093 | |
walter-arielM |
Hello Prosenjit, I did my test in theses pages hidden link and hidden link and the issue persists. I deleted all links for all the "banners" as you told me to do. You can check it here: hidden link I think this could be related to the page 'Revisions'. Maybe wpml is synchronizing the revisions, what do you think? Let me know. |
April 2, 2023 at 12:13 pm #13384223 | |
walter-arielM |
Hello, One thing is sure: this issue ONLY happens when you change something (image, height, etc.) in the "Banner" element. |
April 2, 2023 at 5:10 pm #13384937 | |
walter-arielM |
Another thing to keep in mind: this page is set to be the homepage of the site. Take a look at the capture. |
April 2, 2023 at 5:37 pm #13385031 | |
walter-arielM |
2- Another thing that I just noticed: I just did a test and everything seems to be fine. 1) hidden link There is a change that the issue might be related to the WordPress auto save draft. I will add this line: in wp-config.php define( 'AUTOSAVE_INTERVAL', 60*60*60*24*365 ); // To set autosave interval to 1x per year |
April 3, 2023 at 5:10 am #13386793 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello Walter, You've raised a good point about page revision but please be informed that WPML does not provide any feature to manage or synchronize page revisions. If you compare the number of revisions for the default page and the translated page, you will see that they are not the same. Hope you can understand. However, I tested the pages you shared in the last response on incognito mode and noticed that the translated page contents aren't getting replaced by default contents if any changes are made to the default page. As you've mentioned that you tested the issue after a certain time, I also did the same but the issue is no longer happening on that page. Kindly check this video that I made while testing: hidden link Maybe the changes you've made solved the issue? I also have disabled the lazy loading for the banner from the theme configuration. Can you please check again and let me know the update? We will be happy to assist you if further assistance is needed in this matter. Best Regards, |
April 4, 2023 at 7:20 am #13396761 | |
walter-arielM |
Hello there, Sometimes it works and sometimes it doesn't. |
April 4, 2023 at 12:43 pm #13399897 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, At this point, they need to check what happens in an updated environment. So, would you please update the following on your staging site and let us know once it is done? 1) PHP version to 7.4 Regarding 1&2, you can reach out to the server or hosting administrator and ask them to update accordingly. Make sure to take a backup before that. And for the 3rd point, you can download the latest version of the WPML from your ThemeForest account if you have purchased from there. Please check if you're still having the issue after making the updates. Rest assured that our team is checking the issue with high priority. We will wait for your updates. Best Regards, |