 federicoA-21
|
Hi! My site is in Italian, and i tried to translate the homepage and the faq page in English.
I have translated them but now i get an error 502 - bad gateway if i try to see them in English, in original language the works fine.
My hosting provider told me that is a problem cause by Wmpl. Any idea on how to fix it?
|
 Prosenjit Barman
WPML Supporter since 03/2023
Languages:
English (English )
Timezone:
Asia/Dhaka (GMT+06:00)
|
Hi There,
Thanks for contacting WPML Support.
Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.
Since the 500 errors are server-related, I recommend contacting your Hosting/Server Administrator to request the error logs. It would be more effective if you could replicate the issue first and then ask your Server Administrator for the server error log shortly afterward. This log file will provide detailed insights into the specific nature of the issue.
Once you get the log, please share that in the next response. We will check and guide you accordingly.
Looking forward to your response.
Best regards,
Prosenjit
|
 Lucas Vidal de Andrade
WPML Supporter since 11/2023
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Portuguese (Brazil) (Português )
Timezone:
America/Sao_Paulo (GMT-03:00)
|
Hello,
My name is Lucas and I'll be taking on your ticket for support.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link
|
 Lucas Vidal de Andrade
WPML Supporter since 11/2023
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Portuguese (Brazil) (Português )
Timezone:
America/Sao_Paulo (GMT-03:00)
|
Hello,
thank you for sharing. After investigating your issue, I found out that the 502 error is due to a conflict between Hotel Booking and WPML. I will escalate your issue to our development team so they can find a permanent solution for your issue. That usually take a few days, so I'll keep you posted as soon as I have a feedback from them.
Best regards,
Lucas Vidal
|
 federicoA-21
|
Hi Lucas! Is there any news?
|
 Lucas Vidal de Andrade
WPML Supporter since 11/2023
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Portuguese (Brazil) (Português )
Timezone:
America/Sao_Paulo (GMT-03:00)
|
Hello,
I didn't receive any feedback from our development team yet, we have a high workload and the holidays, so it's probable it's going to take a few days until we have an answer. Just to give you some context, what's going on is a conflict between the Hotel Booking Plugin and WPML, which causes a server error (the 502 you are experiencing). It's probable that there's something causing a high workload, which causes the error. That's what they are investigating at the moment. Thank you for your patience! I'll give you feedback as soon as hear from our developers.
Happy holidays,
Lucas Vidal
|
 Lucas Vidal de Andrade
WPML Supporter since 11/2023
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Portuguese (Brazil) (Português )
Timezone:
America/Sao_Paulo (GMT-03:00)
|
Hello,
Thank you for your patience. I got feedback from our developers, they said that the issue couldn't be reproduced. Indeed, after analyzing your website right now, I didn't get any 500 errors anymore. Can you please confirm if your website is working as expected? Please test it by translating some content and checking it in second languages.
I'll wait for your feedback.
|
 federicoA-21
|
haveing a better look, seems like the error 502 happens only when i'm logged in to the site backend.
Right now i've translated the entire site, and beyond this 502 error, the graphics in other languages are way broken.
Can you please have look? You should have the backend credentials also
|
 federicoA-21
|
after translating the whole site the 502 seems gone even from backend side, but the site graphic is broken (expect for italian)
|
 Lucas Vidal de Andrade
WPML Supporter since 11/2023
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Portuguese (Brazil) (Português )
Timezone:
America/Sao_Paulo (GMT-03:00)
|
Hello,
Perhaps it was a temporary error, I'm glad that the 500 error is not happening anymore. As for the broken layout, I analyzed a few pages and saw that some shortcodes were either untranslated or not correctly translated.
In the "Il sogno" page for instance, the hero slider was translated to english, but it shouldn't (see screenshot). Also, on the "Gli alloggi disponibili" part, the shortcode itself didn't have any text assigned to it in the translation (also see screenshot). It's recommended to manually search for shortcodes and links, as they might not always show up directly on the Translation Editor. Here's a detailed explanation, in case you find it necessary:
https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/
Please let me know if you have any further questions.
|
federicoA-21 |
that plugin (Motopress Hotel Booking) shortcode looks fine, it's compatible with wpml so looks like i don't need to translate manually.
Maybe the only thing left is a pseudo element that you can see in the off canvas element at the bottom of the page (the text is "Prenota ora").
I tried this css code, but it's not working:
:lang(uk) .dateWrapper::before {
content: 'Book now';
}
:lang(fr) .dateWrapper::before {
content: 'Reserve maintenant'!important;
}
|
 Lucas Vidal de Andrade
WPML Supporter since 11/2023
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Portuguese (Brazil) (Português )
Timezone:
America/Sao_Paulo (GMT-03:00)
|
Usually, when an element of a shortcode is not behaving as expected in a second language, like the pseudo-element you mentioned, it's because that shortcode is not properly registered on WPML. Using CSS, even if it works, might not be the best way to solve it, as it would work only as a workaround.
I'll get a second opinion on the best approach to solve it and will get back to you.
|
 Lucas Vidal de Andrade
WPML Supporter since 11/2023
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Portuguese (Brazil) (Português )
Timezone:
America/Sao_Paulo (GMT-03:00)
|
Hello,
After investigating the issue, I decided to create a separate ticket for it, so we have everything organized and can look at one issue per ticket:
https://wpml.org/forums/topic/split-translate-wphb-book-now/
Can you confirm that the 500 error issue was resolved?
|