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.
This topic contains 9 replies, has 2 voices.
Last updated by Mohamed Sayed 1 year, 6 months ago.
Assisted by: Mohamed Sayed.
Author | Posts |
---|---|
December 20, 2023 at 4:44 pm #15104929 | |
Fernando Nobrega |
Good afternoon support, I came across a WPML related issue on my website. Let me explain: One of my users reported to me that he was unable to make reservations, that whenever he tried, the site would hang with the messages "Sending Request...", "Processing.." and would not leave that position. I contacted the theme manufacturer (WP Rentals) and after several tests, deactivating plugins, I discovered that the plugin that generates the problem and inhibits reservations is WPML String Translation. Once deactivated, reservations are processed normally. The developer informed that he should open a ticket with WPML support. Could you please check what's going on? At the moment I have this plugin deactivated, but this means that all my Portuguese translations have disappeared (at the moment only some things are translated by default) If you wish to make test reservations, you can use this property: Please indicate where I can enter the access credentials. Thanks |
December 21, 2023 at 11:58 am #15109859 | |
Mohamed Sayed |
Hi Fernando, Before providing the access details, could you please provide us with the WordPress debug.log? To enable it, open your wp-config.php file and look for: define('WP_DEBUG', false); And change it to: define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings which is recommended on a live site. define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0); Then try to reproduce the issue by enabling String Translation and make a reservation then check if any errors were saved to the debug.log log file inside the /wp-content/ directory. If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great! Kind regards, |
December 21, 2023 at 12:40 pm #15110297 | |
Fernando Nobrega |
Hello Mohamed, I changed wp_debug and wp_debug_log to "true" as suggested, but no log file was created. However, I inspected the code in the console when the site is "hanging" in the reservation and these errors appear, which I don't know if they have anything to do with the problem: hidden link I deactivated the plugin again Thanks |
December 21, 2023 at 6:29 pm #15113073 | |
Mohamed Sayed |
I would need to request temporary access (WP-Admin and FTP) so I can investigate this issue further. Your next answer will be private, which means only you and I have access to it. ❌ Please backup your database and website before providing us with access details ❌ ✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical. ✙ I would also need your permission to take a local copy of your site to debug the issue without affecting your live site. If you don't see the form below, please don't add your credentials as they will be publicly exposed: Privacy and Security when Providing Debug Information for Support: Thanks for your cooperation |
December 23, 2023 at 11:04 pm #15123051 | |
Mohamed Sayed |
Hi, I couldn't find more clues, so I imported a copy of the site locally to perform more tests and will update you once I have more details. |
December 24, 2023 at 3:06 pm #15124575 | |
Mohamed Sayed |
Hi, After importing the site copy locally, I couldn't replicate the issue (Without making any changes) Kindly check this recording: hidden link Please clear the site's cache memory, including the theme's cache and server-side cache if exists, then check if the issue persists. If that didn't help, kindly contact the hosting provider and check if they can find more details about this issue in the server error logs and let us know their feedback. I see also multiple fatal errors from the theme: [22-Dec-2023 15:03:35 UTC] PHP Fatal error: Uncaught TypeError: floor(): Argument #1 ($num) must be of type int|float, string given in /....../wp-content/themes/wprentals/libs/help_functions.php:6495 [23-Dec-2023 05:47:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wprentals_add_pins_icons() in /....../wp-content/plugins/wprentals-core/admin/options-init.php:2211 [23-Dec-2023 22:06:22 UTC] PHP Fatal error: Uncaught ArgumentCountError: 9 arguments are required, 5 given in /....../wp-content/themes/wprentals/libs/ajax_functions_edit.php:751 I suggest contacting the theme's support regarding those errors. |
December 26, 2023 at 8:19 pm #15130928 | |
Fernando Nobrega |
Good afternoon Mohamed, I am currently awaiting feedback from the theme developer on this matter. Thanks |
December 27, 2023 at 9:35 am #15131368 | |
Mohamed Sayed |
Thanks, I will be waiting for your updates. |
December 30, 2023 at 11:13 am #15137964 | |
Fernando Nobrega |
Good morning Mohamed, The theme developer managed to find the problem. Apparently the problem was in one of my translations. I'm going to leave the answer here so that you can check for any potential problems with your plugin or for someone else who may have the same difficulty. A great new year to you. -x- The error from theme code was saying the number of % is different than what it is expected. That was caused by the following translation made for one of the notifications Translation Your translation was like this Estimado(a) %s, Você recebeu uma nova solicitação de reserva de %s. A mensagem foi enviada a %s e a %s . Clique na seta para responder, se pretender entrar em contato com o hóspede. Em caso de dúvida, entre em contato connosco ou consulte as Perguntas e Respostas na opção "Diversos > Sou Proprietário". Se deseja entrar em diálogo, clique na seta à direita para responder. We delete the extra % by removing this line Dear %s, You have received a new booking request from %s. Message sent to %s and %s If you need to discuss, please click on the arrow on the right, to reply. |
December 31, 2023 at 10:25 am #15138617 | |
Mohamed Sayed |
Hi Fernando, I'm glad to hear that the issue is resolved, thanks for sharing this info. I couldn't test it because the property you shared shows a "Page not found" message. If the translation had a different number of the "%s" placeholders, it's expected that you may encounter some issues. Those are placeholders for PHP variables, so they should be added to the translation in the same way used in the original string. Kind regards, |