Notice (8): Undefined index: Product [APP/Controller/CartController.php, line 21]
Toko Ani | Errors

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, NULL, 1, NULL, NULL, NULL, NULL, '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