Code |
Context$sql = "INSERT INTO `cms_statistics` (`item_id`, `type`, `date`) VALUES (201, 'viewReview', '2026-06-13 12:46:18')"
$error = "1062: Duplicate entry '0' for key 'PRIMARY'"
$out = null
$out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 526
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::create() - CORE/cake/libs/model/datasources/dbo_source.php, line 586
Model::save() - CORE/cake/libs/model/model.php, line 1290
Statistic::add() - APP/models/statistic.php, line 12
AppModel::updateViews() - APP/app_model.php, line 75
ReviewsController::reviews_item() - APP/controllers/reviews_controller.php, line 215
Object::dispatchMethod() - CORE/cake/libs/object.php, line 117
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 226
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 193
[main] - APP/webroot/index.php, line 89
Query: INSERT INTO `cms_statistics` (`item_id`, `type`, `date`) VALUES (201, 'viewReview', '2026-06-13 12:46:18')