WPIntell

Source evidence

Critical error

YITH WooCommerce Gift Cards · support · 2025-11-20T11:51:00+00:00

complaintsentiment
highseverity
0.82relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Ben unresolved
Hi – having an issue with the plugin throwing a critical error at checkout of any order. The include_css_for_emails() method in the YITH_YWGC_Emails class is being called with only 1 argument, but it expects 2. This is breaking email sending during checkout, it’s triggered when Stripe tries to send the new order confirmation email. The issue is at line 239 of /wp-content/plugins/yith-woocommerce-gift-cards/includes/class-yith-ywgc-emails.php . Is there a fix for this? Don’t want to have to replace the plugin. We are using 4.29.0. Woo version 10.3.5, WordPress 6.8.3, PHP 8.1.33. thanks This topic was modified 6 months, 1 week ago by Ben . Hello there, thanks for contacting us! That function is called with two arguments, so the error you’re getting is unusual. Could you please send us the full details of the error? We’ll be waiting for your reply. Best regards. Hi – thanks for the reply. Here’s the error: [20-Nov-2025 11:30:39 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function YITH_YWGC_Emails::include_css_for_emails(), 1 passed in /home/(domain-name)/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/(domain-name)/public_html/wp-content/plugins/yith-woocommerce-gift-cards/includes/class-yith-ywgc-emails.php:239 thanks This reply was modified 6 months, 1 week ago by Ben . Hi – was there any update on this? Thanks. Hello there, I’m having trouble reproducing the error. Could you confirm if this only happens with the Stripe payment method? If so, which plugin are you using? Please let us know. Best regards.

Comments

4 shown
Juan Coronel 2025-11-20T13:29:00+00:00

Hello there, thanks for contacting us! That function is called with two arguments, so the error you’re getting is unusual. Could you please send us the full details of the error? We’ll be waiting for your reply. Best regards.

Ben 2025-11-20T13:35:00+00:00

Hi – thanks for the reply. Here’s the error: [20-Nov-2025 11:30:39 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function YITH_YWGC_Emails::include_css_for_emails(), 1 passed in /home/(domain-name)/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/(domain-name)/public_html/wp-content/plugins/yith-woocommerce-gift-cards/includes/class-yith-ywgc-emails.php:239 thanks This reply was modified 6 months, 1 week ago by Ben .

Ben 2025-11-23T09:39:00+00:00

Hi – was there any update on this? Thanks.

Juan Coronel 2025-11-26T14:52:00+00:00

Hello there, I’m having trouble reproducing the error. Could you confirm if this only happens with the Stripe payment method? If so, which plugin are you using? Please let us know. Best regards.