• Resolved jjdaley101

    (@jjdaley101)


    Hi

    When visiting the page to order a gift card, an error appears:
    Warning: A non-numeric value encountered in?/home/customer/www/casspetersglassart.co.uk/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php?on line?461

    Any suggestions on how to resolve this?

    Cheers

    J`ames

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @jjdaley101

    This warning usually occurs when the system is trying to perform a mathematical operation on a non-numeric value.

    However, it seems to be coming from your customization, as I couldn’t replicate this on my testing site.

    The best way to determine this is to:

    • Temporarily switch your theme to Storefront or Twenty Twenty-Four
    • Disable all plugins except for WooCommerce and WooCommerce Square
    • Repeat the action that is causing the problem

    If you do not see the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To determine which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    If the error persists, please enable WordPress debugging, and share the relevant entries from this log with us.

    I hope that helps! Let me know once you have done a conflict test!

    anastas10s

    (@anastas10s)

    Hi there. We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thread Starter jjdaley101

    (@jjdaley101)

    Hi – apologies for the delay. I have followed your suggestions & the Yith voucher works perfectly when square is deactivated. When square gets reactivated, the issue re-appears.

    I’m not sure if this is the info you need from the debug.log file?

    [14-May-2024 11:35:11 UTC] PHP Warning: A non-numeric value encountered in /home/customer/www/staging2.casspetersglassart.co.uk/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php on line 461
    [14-May-2024 11:37:54 UTC] PHP Warning: A non-numeric value encountered in /home/customer/www/staging2.casspetersglassart.co.uk/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php on line 461

    If you need anything else, please let me know.

    anastas10s

    (@anastas10s)

    ?? hey @jjdaley101

    Thank you for reaching back, clarifying things further.

    I went ahead with visiting the page at https://casspetersglassart.co.uk/product/gift-card/, and it appears the message that is displayed up-top is due to how WordPress Errors are set up currently (to display publicly). Below, I am attaching a screenshot, for reference.

    Direct link to image: https://snipboard.io/mP4BH9.jpg

    Feel free to follow the steps outlined in the document linked here, in order to only have them logged to a file, instead.

    Furthermore, the reported issue here appears to be some incompatibility between the two plugins (Square & YITH).

    Just to clarify, kindly provide us with the following:

    • The page to order a gift card, is it a Square Gift card (documentation linked here), or otherwise?
    • What is the current version of the WooCommerce Square plugin currently activated on the site?
    • What is the name, and version, of the YITH plugin mentioned (YITH voucher)?

    We look forward to your response. In the meantime, please let us know if you have any further questions or concerns.

    Thread Starter jjdaley101

    (@jjdaley101)

    Thanks for the advice – error is now not being displayed. Answers you your questions below:

    • it is a yith gift card (not square)
    • square version is 4.6.1
    • YITH WooCommerce Gift Cards, version 4.13.0

    Hey, @jjdaley101!

    Thank you for the clarification.

    To confirm, this issue is happening exclusively with the YITH giftcard? If so, please reach out to them so they can help you with the issue.

    If this is not the case, please let us know so we can assist you further.

    Have a wonderful day!

    Thread Starter jjdaley101

    (@jjdaley101)

    Hiya – after doing the conflict test, and seeing the issue only occurs when woocommerce square is activated, aren’t they just going to pass me back to you guys?

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @jjdaley101,

    Hiya – after doing the conflict test, and seeing the issue only occurs when woocommerce square is activated, aren’t they just going to pass me back to you guys?

    Since our plugin is working fine per se, there’s not much we can do on our end. It’s on YITH’s side to fix this compatibility issue to make sure their plugin works with payment processor plugins.

    However, were you aware that with our Square plugin you can also enable gift cards? https://woocommerce.com/document/woocommerce-square/faq/#section-19

    I hope this helps!
    -OP

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning: A non-numeric value encountered’ is closed to new replies.