Skip Navigation

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

Problem:
The client is developing a site using WPML to add Arabic as a secondary language and has translated everything. However, they are facing an issue where the WooCommerce 'shop' page appears differently between the French and Arabic versions, and they are unable to standardize them.
Solution:
We recommended enabling WPML's debugging features to identify any potential errors that might be causing the display issues. Here are the steps we suggested:
1. Edit the

wp-config.php

file and change the line

define('WP_DEBUG', false);

to

define('WP_DEBUG', true);

2. Add the following lines to the

wp-config.php

file, just before the 'stop editing here' comment:

ini_set('log_errors', TRUE);<br />ini_set('error_reporting', E_ALL);<br />ini_set('error_log', dirname(__FILE__) . 'https://cdn.wpml.org/error_log.txt');

This will create an

error_log.txt

file in the site's root directory, which should be checked for any errors.
Additionally, we requested temporary access to the client's site to further investigate the issue, emphasizing the importance of taking a full backup before providing access. We often recommend using the Duplicator plugin for this purpose, available at http://wordpress.org/plugins/duplicator/.

If this solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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 3 replies, has 0 voices.

Last updated by Bobby 2 months ago.

Assisted by: Bobby.

Author Posts
March 28, 2025 at 11:51 pm #16874734

Hichem Hamdani

Background of the issue:
I am developing a site and using WPML to add Arabic as a secondary language. I have translated everything, but I am facing an issue with the WooCommerce 'shop' page.

hidden link

Symptoms:
The WooCommerce 'shop' page appears differently between the French and Arabic versions, and I am unable to standardize them. (I have added a screenshot of both versions)
screenshot : hidden link

Questions:
How can I standardize the WooCommerce 'shop' page between French and Arabic using WPML?

March 31, 2025 at 1:19 am #16877269

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

It looks like there might a fatal error that is not registering on display OR some CSS missing?

Do you use any custom CSS for the shop page?

I would need to see the detail of the error. You can see how to enable debug logging here:
https://wpml.org/documentation/support/debugging-wpml/

Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);.

Change it to:

define('WP_DEBUG', true);

Edit your wp-config.php file and add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . 'hidden link');

This will create an error_log.txt file in your site's root directory. Please send me its contents.

April 6, 2025 at 9:48 am #16901014

Hichem Hamdani

Hi,

After following the steps, the file was successfully generated. I've also attached a screenshot showing what I currently see on the screen when accessing the page with the issue.

hidden link

April 9, 2025 at 4:19 pm #16915039

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby