We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Error, Shop

Non-numeric value encountered in Shop

Hi Drew

I'm getting the same warning message as this thread when I switch PHP up to 7.16.

It occurs when a product is added to the cart. It continues when delivery options and static cart is called further down the line too.


Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 398 Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 409 Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 422 Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 423 Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 425 Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 426 Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 433 Warning: A non-numeric value encountered in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 434 Warning: Cannot modify header information - headers already sent by (output started at /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php:398) in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/core/lib/PerchSystem.class.php on line 239

7.0.20 doesn't throw a warning, so I've gone back to that.

There are no non-numerics in my prices, taxes etc.

Kind regards

Jon


Perch Runway: 3.0.8, PHP: 7.1.6, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO Server OS: Darwin, apache2handler Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_forms (1.9.1), perch_shop_orders (1.2.4), perch_shop_products (1.2.4), perch_shop (1.2.4), perch_members (1.6.2), perch_mailchimp (3.1) App runtimes: <?php $apps_list = [ 'perch_mailchimp', 'perch_members', 'perch_shop', 'perch_forms', ]; PERCH_LOGINPATH: /perch PERCH_PATH: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch PERCH_CORE: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/core PERCH_RESFILEPATH: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/resources Image manipulation: GD PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7 Resource folder writeable: Yes HTTP_HOST: dev.ellipress.co.uk DOCUMENT_ROOT: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Jonathan Elliman

Jonathan Elliman 27 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think it's a new warning in 7.1, although I'm not getting it in 7.1.5. Looking into it.

Thanks Drew. Have a lovely weekend.