• Resolved hollykny

    (@hollykny)


    Hi! Keep getting an error message on a simple test site when adding items to the cart:

    Warning: A non-numeric value encountered in …/wp-content/plugins/wordpress-simple-paypal-shopping-cart/includes/wspsc-cart-functions.php on line 103

    Here’s the shortcode I’m using for one of the books. The rest are similar. All plugins, the theme and WordPress are current. Tried deactivating everything and the issue persists.

    [wp_cart_button name=”OURStory Quilts” price=”34.99″ shipping=”5.00″]

    Thanks for any help.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, do you have a cache plugin installed in your site?

    Regards

    Thread Starter hollykny

    (@hollykny)

    Thanks for replying, @mbrsolution .

    The hosting company provides a plugin called SiteGround Optimizer. I purged the cache several times and the error persisted. I then deactivated that plugin and the error is still there…

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, just for testing purposes. What happens if you use the following shortcode without the shipping value?

    [wp_cart_button name="OURStory Quilts" price="34.99"]

    Thank you

    Thread Starter hollykny

    (@hollykny)

    Thanks for the suggestion. I just removed the shipping from the topmost book on that page and when I add that to the cart, there is no error message. What does this mean as far as a solution?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I just carried out a test in my dev site using your shortcode above with the shipping cost and I did not receive any error messages.

    What type of PayPal account do you have? Did you set up any of the settings in the plugins admin panel?

    Thank you

    Thread Starter hollykny

    (@hollykny)

    I did set up the settings in the admin panel, but am not sure what type of PayPal account my customer has. Does it have to be a business account? I have her PayPal email address entered, 0 for base shipping (although I tried to leave that blank, but it keeps reverting to 0), and pretty much left all other settings blank…

    Plugin Contributor mbrsolution

    (@mbrsolution)

    I did some more investigation and found out that perhaps this warning is coming from the PHP version running in the server. Can you find out what PHP version your server is running?

    Thank you

    Thread Starter hollykny

    (@hollykny)

    I had looked into the PHP version the other day as well. It was initially set on PHP 7.3.16 so I tried 7.3.16 and also 7.4.4 and the problem persists with all versions, even after I cleared the cache.

    However, I just installed the plugin on another one of my test sites (same server) and the issue does *not* exist there. I will do some more experiments including deleting the plugin and reinstalling, and let you know what I’m able to find out. Thanks!

    Thread Starter hollykny

    (@hollykny)

    Hi again, @mbrsolution,

    It looks as though deleting the plugin and reinstalling it fixed the issue. Perhaps it was a weird server glitch affecting that file in question when I first installed it. Thanks for your help trying to troubleshoot it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘error message – non-numeric value’ is closed to new replies.