 ivanL-30
|
Background of the issue:
I am trying to resolve issues related to the WPML plugin and the WPResidence theme. Specifically, I am dealing with language display issues in the 'Lists by Category' column under the footer and a missing user type selection in registration forms. The issue with the footer occurs after clearing the cache, where the language remains the same across all pages. The registration form issue is detailed in these links: https://wpml.org/forums/topic/split-wpresidence-translated-roles-dont-appear-in-registration-form/ and https://wpml.org/errata/wpresidence-registration-modal-user-type-dropdown-not-displaying-correctly/. I have tried the suggested solution, but the dropdown still doesn’t appear. The issue can be seen on this page: hidden link.
Symptoms:
After clearing the cache, the 'Lists by Category' column under the footer remains in the language of the page where the cache was cleared, across all other languages. The registration forms in other languages do not display the user type selection, despite trying the suggested solution.
Questions:
How can I ensure the 'Lists by Category' column displays the correct language after clearing the cache?
What adjustments are needed in the Theme Editor to display the user type selection in registration forms for all languages?
|
 Kor
|
Thanks for your patience. Here is a ticket for our follow-up. Please let us know if you're able to replicate the issue on our sandbox site.
|
 ivanL-30
|
Hello,
I’m in the process of obtaining a temporary license from WPEstate for the theme mentioned here, so I can import the demo content required for this to work.
I’ll report back once I have an update on the situation.
|
|
ivanL-30 |
Hello,
I’ve installed and activated the theme and translated the necessary strings for it to work:
hidden link
The footer categories issue mentioned at the beginning is also visible here, so the issue has been successfully replicated.
The other issue (https://wpml.org/forums/topic/wpml-wpresidence-theme-registration-issues/?ref=wd
) seems to be working fine now on sandboxed theme - although I remember it used to work properly on my site as well, until it suddenly didn’t, possibly after an update or some change.
Here is a sandboxed link for you to try: hidden link
I’ve disabled all the related code in the functions.php file for now on immoteka.hr.
Please check it out, and thank you!
Cheers,
Ivan
|
 Kor
|
Thanks for your patience. I can see the missing categories here hidden link after clearing WPResidence Cache as shown in the attached screenshot. I will check and come back to you.
As for the registration form issue, I've split the ticket here https://wpml.org/forums/topic/wpresidence-theme-registration-form-issue/ so that we can follow up.
|
 ivanL-30
|
(THIS SOMEHOW WENT TO WRONG THREAD - IT MEANT TO GO HERE: https://wpml.org/forums/topic/wpresidence-theme-registration-form-issue/) Yes, I noticed that the other day when I set up the sandbox site, and I also mentioned it in my reply:
"The other issue (https://wpml.org/forums/topic/wpml-wpresidence-theme-registration-issues/?ref=wd
) seems to be working fine now on sandboxed theme - although I remember it used to work properly on my site as well, until it suddenly didn’t, possibly after an update or some change.
Here is a sandboxed link for you to try: hidden link"
However, it somehow doesn’t work on my site - it used to work before, but at some point along the way, it just stopped.
I can see that there are some new WPML updates available on the sandbox site.
Maybe try updating and see if that’s what’s causing the issue.
|
 Kor
|
Let's refer to this ticket https://wpml.org/forums/topic/wpresidence-theme-registration-form-issue/ since it's related to the registration form.
|
 ivanL-30
|
Just a reminder about the categories issue...
https://wpml.org/forums/topic/wpml-wpresidence-theme-issues/?bbp_reply_to=17547220&_wpnonce=039f37b76e#new-post
|
 Kor
|
Thanks for your reply. Sorry for overlooking your second question. I've checked our sandbox site here hidden link and I'm not seeing any issues with the Lists by Category. Could you elaborate a little bit more about the issue? Or perhaps you can highlight it using screenshots.
|
 ivanL-30
|
The issue with the “List Categories” section in the footer widget is that it displays the taxonomy names (names only — the links correctly point to the corresponding language taxonomies) in all languages based on the language of the page where the “Clean Theme Cache” action was triggered.
For example, if you are on the Croatian front page and you click “Clean Cache,” the taxonomy names in that footer section will appear in Croatian across all other languages (the links remain correct — only the displayed names are wrong).
If you clear the cache on the German front page (or any other language page), the taxonomy names will then appear in German across all languages in the footer (again, with correct links).
I’ve attached the screenshots.
All taxonomies are translated, of course.
Situation now: hidden link
This issue has also been successfully reproduced week ago on the sandbox site provided by WPML
hidden link - English
hidden link - German
hidden link - Croatian
I’ve also attached the screenshots from sandbox site (without arrows and stuff).
|
 Kor
|
Thanks for your reply. I'm getting different results here. When I clear WPresidence Cache, the category shows empty as shown in the attached screenshot. Please allow me to escalate this to our 2nd Tier Support for further investigation.
|
 ivanL-30
|
Yes, I’ve noticed that - it happens when you clear the cache on the front end, but if you clear it in the backend, the mentioned category issue appears again. Feel free to contact the 2nd tier support.
|
 Kor
|
Thanks for your patience. I have a feedback from our 2nd Tier Support, and they confirmed the bug.
Please back up your Website. Follow the instructions below.
Workaround
Open the ...\wp-content\plugins\wpresidence-core\api\inc\duplicate_functions.php file.
Look for line 71.
Right after the line:
$transient_key = 'wpestate_'.$taxonomy_transients[$taxonomy] . '_' . $args_hash;
Append the language code:
if (defined('ICL_LANGUAGE_CODE')) {
$transient_key .= '_' . ICL_LANGUAGE_CODE;
}
Once you've done that, please recheck and let us know how it goes.
|
 ivanL-30
|
Great, this fix did the trick! I will contact the WPEstate team and send them this thread, asking them to include this line of code in their plugin in future updates. Thank you very much - excellent support as always! Cheers to you and the whole team! Bye!
|