Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

Tagged: 

This topic contains 3 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 6 months, 1 week ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
July 30, 2025 at 1:50 pm

itsFarouk

Background of the issue:
I am trying to use the Woodmart theme, which is compatible with WPML, to display a sale tag in Arabic on my website. The issue can be seen on this page: hidden link. I encountered a fatal error related to the sale tag.

Symptoms:
Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /home/customer/www/conceptual.ae/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1699.

Questions:
Why is the sale tag in Arabic causing a fatal error?
How can I resolve the ArgumentCountError in the Woodmart theme?

July 30, 2025 at 7:00 pm #17283156

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for bringing this issue to our attention. To confirm whether it is indeed a compatibility problem with the latest versions, I have created a test site. You can access it here:

hidden link

The site already has WPML configured in two languages. Please install Woodmart, create and translate a product, and set it on Sale. Let's see how it behaves in this isolated environment. I know this requires some effort, so I truly appreciate your understanding in advance.

July 31, 2025 at 8:48 am #17284214

itsFarouk

Hello Lucas,

I created this product:
hidden link

and it worked, but I don't think we simulate my website correctly, because if we need to simulate it correctly I need to translate the theme, and that will take from me days not few hours

July 31, 2025 at 2:57 pm #17285641

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+01:00)

Hello there,

Thank you for sharing. Let me get it straight:

1. The default Woodmart theme works as expected, correct?
2. Does the issue only happen to your child-theme?
3. How did you translate the child theme?

I'm asking because this can help us understand where the issue is. Thanks again for your cooperation. Please answer all of the 3 previous question 🙂

The topic ‘[Closed] Fatal Error in Translation’ is closed to new replies.