Hello, ziga32,
Please provide us with the FTP and admin panel access details for the website experiencing the issue.
Best regards,
8Theme Team
Solved12 replies4 participantsUpdated by Tony Rodriguez
I updated xstore to the latest version. My site was working ok, but ma DE (only de) version was crashed.
https://cleanshot.com/share/5jnNTzzp
Error:
Uncaught ArgumentCountError: 3 arguments are required, 2 given
in wp-content/themes/xstore/framework/woo.php:3172
Root cause:
In etheme_sale_label_percentage_text() (around line 3068–3172 in woo.php), the sale label is built using:
sprintf( str_replace(‘{sales_text}’, $element_options[‘sale_label_text’], __( ‘{sales_text} %s’, ‘xstore’ )), $percentage )
The issue is that __( ‘{sales_text} %s’, ‘xstore’ ) returns the translated string from the DE language file, which apparently contains two placeholders (e.g. %s %s or %1$s %2$s) instead of the original {sales_text} %s. This causes sprintf() to expect 3 arguments but only receive 2, resulting in a fatal error.
Workaround applied:
Replaced the sprintf() call entirely with a direct str_replace + string concatenation:
$element_options[‘sale_label_text’] = str_replace( ‘{sales_text}’, $element_options[‘sale_label_text’], ‘{sales_text} ‘ . round( ( ( $element_options[‘regular_price’] – $element_options[‘sale_price’] ) / $element_options[‘regular_price’] ) * 100 ) . ‘%’ );
how do I avoid this in the future updates?
Hello, ziga32,
Please provide us with the FTP and admin panel access details for the website experiencing the issue.
Best regards,
8Theme Team
thanks
Hi,
We can’t connect FTP:
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server
Please check it. Try to connect to FTP using FileZilla by yourself and provide us with the correct credentials.
Is there a restriction by IP or something else that doesn’t allow us to connect?
Warm Regards,
The 8Theme Team
works ok, please share yuur ip
Hello, ziga32,
We have provided the IP address in the private content.
Best regards,
The 8Theme Team
done, whitelisted
Hello, ziga32,
Thank you for providing access. To prevent this issue from recurring, we have added the following function to the functions.php file of your child theme: etheme_sale_label_percentage_text
After the update, this problem should no longer appear.
Best regards,
8Theme Team
I already fixed the problem, I just want it to be safe to update in the future?
To prevent this issue from recurring, please do not remove the following function from your child theme:
etheme_sale_label_percentage_text
Best regards,
8Theme Team
thank you
Thanks for the support! My topic “problems in woo.php after latest xstore update” has been successfully resolved.
Dear ziga32,
Thanks for being part of our WordPress & WooCommerce community!
We’re happy we could assist you. Your feedback truly matters — it helps us make XStore better, faster, and more reliable with every release.
Leave Feedback →
(takes less than a minute)
Together, we’re shaping a better WooCommerce experience for everyone.
Topic closed.
The 8Theme Team
The issue related to '‘problems in woo.php after latest xstore update’' has been successfully resolved, and the topic is now closed for further responses
Free AI store scan · SalesMax
Paste your store address. SalesMax AI shows which upsell moments are missing. No signup.
Free AI speed test · FlashMax
Paste your site address. FlashMax runs Google Lighthouse for phone and desktop, checks Core Web Vitals and lists what to fix. No signup.
Babyland 01Toys & games
(live demo, opens in a new tab)
Crypto Mobile AppBusiness
(live demo, opens in a new tab)
ChurchBusiness
(live demo, opens in a new tab)
Niche Market 02Marketplace
(live demo, opens in a new tab)
Business CardBusiness
(live demo, opens in a new tab)
Pet ShopPets
(live demo, opens in a new tab)
Home Decor StoreFurniture
(live demo, opens in a new tab)
Lingerie StoreFashion
(live demo, opens in a new tab)
Transportation and LogisticsCars & bikes
(live demo, opens in a new tab)
EcoenergyElectronics
(live demo, opens in a new tab)
Headphone StoreElectronics
(live demo, opens in a new tab)
SpaBeauty
(live demo, opens in a new tab)
Interior StoreFurniture
(live demo, opens in a new tab)
Furniture DarkFurniture
(live demo, opens in a new tab)
Artmaxy StoreBooks & art
(live demo, opens in a new tab)
Organic milk farmFood & drinks
(live demo, opens in a new tab)