Here I got this error below.
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1452 Cannot add or update a child row: a foreign key constraint fails (
FK_post_author FOREIGN KEY (
id)). The SQL statement executed was: INSERT INTO
status) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4)
Its saying foreign key constraint fails, which means the user doesnt exist in the tbl_user table.
But, the user is in the table.
So, it should be added into post table.
Or, is the error message saying another thing?
Plz help someone…