We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I have a serious problem, hope someone can point me out whats going on.

    I have a EVO website made in shopkeeper, all of a sudden i get the following error below.
    I thought it might be a price where i entered a space, comma, point, letter or other wrong character, or double id or some double alias problem, I don't know. Nothing was changed but added some pages and prices as far as i know.

     
    PHP error debug
      Error: 	number_format() expects parameter 1 to be double, string given	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/usr/home/xxx/domains/xxx.nl/public_html/mbl/assets/snippets/shopkeeper/classes/class.shopkeeper.php	 
      Line: 	93	 
      Line 93 source: 	$output = number_format($number,(floor($number) == $number ? 0 : 2),'.',' '); 
      Evolution user, I like the back-end speed and simplicity smiley
      • 3749
      • 24,544 Posts
      Possibly you put a price in quotes or accidentally added a ' or " character.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 9995
        • 1,613 Posts
        Thanks!

        I think it was because of some letters placed into the pricefield.
        Although i removed them all i had the error, but today it seems to be oke again..

        Hope it wont come back again.
          Evolution user, I like the back-end speed and simplicity smiley