Database Error

Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'total' cannot be null

SQL Query: INSERT INTO `tokoan39_web2`.`carts` (`total`, `category_product`, `product_id`, `quantity`, `price`, `product_code`, `product_image`, `product_name`, `session_id`) VALUES (NULL, 0, 5510, 1, NULL, '[136-BRT17]', 'resized/thumb_russiantipsss17pcs_20160502130800.jpg', 'RUSSIAN TIPS S/S SET-B 12 PCS', '099afcc5ae6a4953fa44148124a07272')

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace

  • CORE/Cake/Model/Datasource/DboSource.php line 460PDOStatement->execute(array)
  • CORE/Cake/Model/Datasource/DboSource.php line 426DboSource->_execute(string, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 1004DboSource->execute(string)
  • CORE/Cake/Model/Model.php line 1761DboSource->create(AppModel, array, array)
  • APP/Controller/CartController.php line 36Model->save(array)
  • [internal function]CartController->add(string)
  • CORE/Cake/Controller/Controller.php line 490ReflectionMethod->invokeArgs(CartController, array)
  • CORE/Cake/Routing/Dispatcher.php line 187Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 162Dispatcher->_invoke(CartController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 108Dispatcher->dispatch(CakeRequest, CakeResponse)

Copyright@2014 www.tokoani.com