SUBSCRIBE US FOR FRESH SPECIAL OFFERS

Application Log
Timestamp Level Category Message
18:26:37.836694 error system.db.CDbCommand
CDbCommand::execute() failed: SQLSTATE[HY000]: General error: 1364 Field
'user_id' doesn't have a default value. The SQL statement executed was:
INSERT INTO `product_viewed` (`date`, `product_id`, `session_id`) VALUES
(:yp0, :yp1, :yp2).
18:26:37.837131 error exception.CDbException
CDbException: CDbCommand failed to execute the SQL statement:
SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default
value in /home/plantsnpots/public_html/framework/db/CDbCommand.php:358
Stack trace:
#0 /home/plantsnpots/public_html/framework/db/ar/CActiveRecord.php(1077):
CDbCommand->execute()
#1 /home/plantsnpots/public_html/framework/db/ar/CActiveRecord.php(806):
CActiveRecord->insert(NULL)
#2
/home/plantsnpots/public_html/protected/user/controllers/ProductsController.php(256):
CActiveRecord->save(false)
#3 [internal function]:
ProductsController->actionDetail('artificial-plan...', 'art-guzmania')
#4 /home/plantsnpots/public_html/framework/web/actions/CAction.php(108):
ReflectionMethod->invokeArgs(Object(ProductsController), Array)
#5
/home/plantsnpots/public_html/framework/web/actions/CInlineAction.php(47):
CAction->runWithParamsInternal(Object(ProductsController),
Object(ReflectionMethod), Array)
#6 /home/plantsnpots/public_html/framework/web/CController.php(308):
CInlineAction->runWithParams(Array)
#7 /home/plantsnpots/public_html/framework/web/CController.php(286):
CController->runAction(Object(CInlineAction))
#8 /home/plantsnpots/public_html/framework/web/CController.php(265):
CController->runActionWithFilters(Object(CInlineAction), Array)
#9 /home/plantsnpots/public_html/framework/web/CWebApplication.php(282):
CController->run('detail')
#10 /home/plantsnpots/public_html/framework/web/CWebApplication.php(141):
CWebApplication->runController('Products/detail...')
#11 /home/plantsnpots/public_html/framework/base/CApplication.php(180):
CWebApplication->processRequest()
#12 /home/plantsnpots/public_html/index.php(20): CApplication->run()
#13 {main}
REQUEST_URI=/index.php/product/artificial-plants/art-guzmania
---