Rynald0s
(@rynald0s)
Automattic Happiness Engineer
Hi @andriub!
This is a translation issue.
Please see the following thread comment for steps to resolve:
https://wordpress.org/support/topic/warning-sprintf-too-few-arguments-gatewayspaypalclass-wc-gateway-paypal-ph/#post-9027272
In your case, for “es_AR” version
Cheers!
Hi @rynald0s ,
I understand is a translation issue, and in a previous topic (https://wordpress.org/support/topic/error-message-translation-issue/) someone gave me a modified .mo file to replace. This would partially help, since 2 of the errors were fixed, but not this one.
Could you please help me with this remaining error? Is there a new patch to fix this one? We are not able to launch the store till this error is fixed.
Thanks a lot in advance.
Andres
Since there is no patch yet for this issue in es_AR translation, I just renamed the PayPal directory (wp-content/plugins/woocommerce/includes/gateways/paypal/) and the problem disappeared. I don’t know if this is the best solution, but it worked. I will have to be alert when woocommerce updates, to keep this directory name changed and avoid further problems, till this is solved in the .mo file.
Hello,
Can you explain me what is the translation error in order to fix it?
I’m part of the es_AR translation team.
Thank you
Mauricio
Hi Mauricio,
don’t know what exactly which is the error, but I had several error messages (you can check them in this thread).
Warning: sprintf(): Too few arguments in /home/duran/public_html/asisshop/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/settings-paypal.php on line 136
The errors inside the admin area (only in the woocommerce pages) were fixed with a new version of the es_AR .mo file. But the front end error message, specifically on the myaccount page was still there.
Since i had no answer I decided to rename the paypal directory so it wont be recognized, and the error disappeared. I know it’s not the best way to solve this kind of issues, but I needed to fix the error and it worked.
But if you can create a new .mo file that will fix this error also, just let me know please.
Hey Andriub,
The generation of the translation files is automated. We use a web application that generates the corresponding locale files when a change occurs. This is checked everyday at a given hour. But I cannot generate a new file manually.
What I can do is to make some modifications to force the regeneration of the language files and wait for the error to solve.
Regards.
Hi guys, im from Argentina so i may have some gramatical issues.
I have the same problem with the error message of paypal gateways:
Warning: sprintf(): Too few arguments in /home2/co2/public_html/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/settings-paypal.php on line 136
I searched this error but i cant find a solution. I saw on this forum that its a translate error, i really dont understand what i have to do.
@andriub did you solve the problem? how?
@damonh i see that you are into it and you know a lot about this errors, what you say i should do?