INVALID_STRING_LENGTH The value of a field is either too short or too long.
-
hi, when i try to buy with paypal, don’t work and there is this message:
INVALID_STRING_LENGTH The value of a field is either too short or too long
The page I need help with: [log in to see the link]
-
Hello,
Thank you for reaching out to us, we are here to help.
We see this error when product attributes (name, description, etc.) contains text/characters that can be interpreted differently and cause longer strings when being sent to the PayPal Server. When text and an emoji like this ?? in the first 127 characters are sent to PayPal, then the API responds with?INVALID_STRING_LENGTH because the emoji would make the string longer than the maximum. We have put some fixes in place for this, but it seems there are certain 3rd party plugins that can still cause this error to be triggered.
When reviewing your checkout page, I am seeing a 2nd PayPal plugin active, and this could very well cause this issue. I would start with deactivating the other PayPal plugin and testing a purchase. If that does not improve the situation, you should continue with full conflict testing.
Please let me know if this helped you resolve the issue or if you require additional support.
Kind regards,
Joosthi, there is not other plugin paypal, was only a payment type on woocommerce that now i have delete. But the problem is the same….
-
This reply was modified 1 year, 9 months ago by
conterosso.
Hello @conterosso
yes, I see that the other payment method has now been deactivated. I see the same and can confirm that the issue is also still showing when I tested your site. In this case, I would advise to continue to perform conflict testing.
To get to the bottom of this, you may want to perform a full conflict test to rule out eventual issues with the theme or a different plugin.
Please create a backup of the site first before proceeding.We recommend temporarily activating the default theme Storefront and disabling all other plugins except for WooCommerce and PayPal Payments to see if the behavior persists.
For more detailed instructions, check out How to test for plugin and theme conflicts.Conflict testing should always be done on a staging site if possible. If your host doesn’t provide a staging site, we can recommend the plugin WP STAGING to create a staging site with a few clicks.
Please remember first creating a new backup and checking available disk space before making any changes to your live site like creating a staging clone.Alternatively, you can also install the plugin Check Conflicts – https://www.ads-software.com/plugins/check-conflicts/ – This allows you to change theme and plugin activations only for your IP address, so the changes are not visible to other visitors of your site.
Here is the brief instruction on how to do conflict testing with the said plugin:
Prerequisites:- Install Check Conflicts plugin
- Install Storefront theme
Conflict Testing:
- Navigate to Check Conflicts on the side navigation bar. Choose Storefront theme. Then click “Save”
- Try to reproduce the problem: Check Credit Card fields on Checkout page. If the problem is resolved, it’s a theme conflict. If not, continue to the next steps.
- Navigate back to Check Conflict. Temporarily deactivate all plugins except for WooCommerce and PayPal Payments.
- Try to reproduce the issue again. If the problem is resolved, it’s a plugin conflict. To figure out which plugin is causing the problem, continue to the next step.
- Navigate back to Check Conflict. Select one plugin at a time and click “Save” (To multi-select, you need to hold on the “Ctrl” key on PC or “Cmd” key on Mac)
When you are using the Check Conflicts plugin, you can click on “Cancel” to immediately stop the conflict testing mode.
Here is a quick instructional video on how to use the plugin: https://cln.sh/rjELypPlease let us know how this works for you.
Kind regards,
JoostHello @conterosso,
One other thing you might want to check is the length of the product description; this is quite long and could also cause the problem. Please test if the issue occurs with a test product if you only add short text without any none-standard characters.
Let us know if this helped you uncover the cause of this issue.
Kind regards,
Joosti have try to create a new product, with :
name: prova
description: prova
prixe: 100
and dont work
https://www.stile500.it/prodotto/prova/
-
This reply was modified 1 year, 9 months ago by
conterosso.
Hello @conterosso
I see my 2nd comment was blocked for review. In that comment, I advise performing conflict tests. In short: deactivate all plugins (except for WooCommerce and PayPal Payments) and activate the Storefront theme and see if the error persists.
If that does not show any improvement, you might want to open a private engagement to us, so we can take a closer look at your site, settings, logs and possibly some screenshots. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/
Kind regards,
JoostHello,
Since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.
Kind regards,
Joost -
This reply was modified 1 year, 9 months ago by
- The topic ‘INVALID_STRING_LENGTH The value of a field is either too short or too long.’ is closed to new replies.