Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an issue where the booking page appeared white and empty when viewed in languages other than the default. Additionally, there were problems with logos not displaying in other languages.
Solution:
First, we recommended increasing the WordPress memory limit by adding the following code to the wp-config.php file:

/* Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');<br />define('WP_MAX_MEMORY_LIMIT', '256M');

Upon discovering that the booking content was loaded from an external source, we duplicated the booking page into the secondary languages, resolving the issue with the booking page. We advised the client to open a new ticket for the separate issue with the logos.

If this solution does not apply or is outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum.

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 5 replies, has 2 voices.

Last updated by Mateus Getulio 1 year ago.

Assisted by: Mateus Getulio.

Author Posts
May 31, 2024 at 4:04 pm

majidN

Background of the issue:
I am using a booking system on my website hidden link and I am trying to manage bookings in multiple languages using WPML.

Symptoms:
My booking page is displayed white and empty when viewed in languages other than the default.

Questions:
How can I resolve the issue of the booking page appearing white and empty in other languages?
Is there specific WPML documentation that addresses issues with booking systems in multiple languages?

May 31, 2024 at 4:25 pm
May 31, 2024 at 6:25 pm #15693779

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thanks for contacting us.

Can you please test minimal, using a default theme(if applicable) and with all non-WPML and essentials plugins disabled to see if the error persists. If possible make a backup of the site before doing it or test on a staging copy.

Also, according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

In addition to that, I'd like your help enabling the debug mode to help us track the error down, please add the following code to the wp-config.php file:

// Enable WP_DEBUG mode
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 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
  
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

Please check following links to read more about debugging with WordPress.
- https://codex.wordpress.org/Debugging_in_WordPress
- https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

After adding the code above, please try to reproduce the issue with the blank screen again and check if you'll find a debug.log file inside the wp-content folder.

If you locate it there, please send us the last lines here in the ticket.

After you send the WP debug logs, we'll analyze them and get back to you with further steps.

Looking forward to helping you resolve this issue.

June 4, 2024 at 5:54 am #15699723

majidN

Why am I not getting the right answer?! I did all the things mentioned and still there is a problem! I have to deactivate the plugin.

June 4, 2024 at 6:56 pm #15704113

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I checked it and it looks like the booking is loading content from an external source directly in the site, I can see this when I edit that page:

<script src="//widget.simplybook.it/v2/widget/widget.js" type="text/javascript"></script>

I'd like to check with you where are you able to edit the booking for the original language. Let's say you needed to change a string in the booking widget, where in the site do you go to edit it?

Thank you, please let us know.
Mateus

June 5, 2024 at 10:14 am #15706174

majidN

In the reservation software!
I don't care if the booking page is translated!
It means that in German language, the reservation page is also in English, it is ok.

Another problem, I have a number of logos in the main language at the bottom of the pages, which are not displayed in other languages.

Thanks

June 5, 2024 at 8:42 pm #15708821

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for explaining that it is not going to be necessary to have different versions of the external booking software.

Since it is the only content in the page, I went ahead and duplicated the booking page into the secondary languages.

That fixed the issue, the booking is available in the secondary language as well, kindly test it again.

As the original issue is resolved may I kindly ask you please to open a new ticket for this question with the logo?

This will also help other users with similar problems find solutions when searching the forum as well as we avoid mixing lots of questions in one ticket.

Thank you for your understanding.
Mateus