This thread is resolved. Here is a description of the problem and solution.
Problem: The client's site is in Italian, and they encountered a 502 - Bad Gateway error when trying to view the translated English version of the homepage and FAQ page. The error only occurred when logged into the site backend. Additionally, the client mentioned that the graphics in other languages appeared broken. Solution: We are pleased to hear that the 502 error is no longer occurring. Regarding the broken layout, we have identified that some shortcodes were either untranslated or not correctly translated. For example, on the "Il sogno" page, the hero slider should not have been translated into English. Also, in the "Gli alloggi disponibili" section, the shortcode did not have any text assigned to it in the translation. We recommend manually searching for shortcodes and links, as they might not always be visible in the Translation Editor. For a detailed explanation, please refer to the following documentation:
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.
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:
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.
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.
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.
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:
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.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.