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: Compatibility
This topic contains 18 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year, 11 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
March 2, 2023 at 8:08 am #13151929 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for waiting on this. I received following analysis from the team. ---- Now on edit page, Pods plugin is calling a function get_arg() from wp-content\plugins\pods\src\Pods\Whatsit\Field.php almost 753918 times. I am not sure what is the need for so many calls but this is it. Now what happens, this function has a string -- Select One -- that is wrapped in WP translation function so when WPML is active the dashboard language is set to en_EN and WP and WPML both try to load the translation of this string (Mostly from here wp-content/plugins/pods-en_EN.mo this is final URL of MO lookup as this file does not exist anywhere) this consume a lot of time and process timeout after 164561 calls. When you deactivate the WPML the locale set to en_US so no issue happens. I can also reproduce this issue without WPML on my local by changing the profile language to en_EN in the database. So this is not something we should fix. SOLUTIONS 1) Change the profile language to en_US as stated above. 2) Scan the Pods plugin for strings and translate the string -- Select One -- in ST, especially for the custom English language so that WPML can create a custom MO file and it can be loaded. I hope this clarifies everything. Please consider above solutions to fix the problem. Regards. |
March 6, 2023 at 7:01 am #13175583 | |
royv-8 |
Hi Waqas, Well thats an issue we could not have forseen! We will do this later today and I will get back to you when I have good or not so good news Thanks! |
March 6, 2023 at 7:49 am #13175825 | |
royv-8 |
Hallo Waqas, I think its works! At least on the staging envoriment. I can load posts that I could not load. The real test will be the live website. I will keep you up to date! |
March 6, 2023 at 10:45 am #13177593 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Sure, take your time. If staging was a replication of production, I am sure the solution 'll be workable there also. Regards. |