Page 1 of 1

DataBase Error

Posted: 12 Dec 2015, 11:22
by gnabin01
I am new o laravel and aimeos too.I was trying to add stock level and product property type. It shows an error like this :

Error (-1)
Executing statement "
INSERT INTO "mshop_product_property" (
"parentid", "siteid", "typeid", "langid", "value", "mtime", "editor",
"ctime"
) VALUES (
0, 1, 1, 'en', '100', '2015-12-12 11:20:28', '', '2015-12-12 11:20:28'
)
" failed: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails ("iseeyoo"."mshop_product_property", CONSTRAINT "fk_mspropr_parentid" FOREIGN KEY ("parentid") REFERENCES "mshop_product" ("id") ON DELETE CASCADE ON UPDATE CASCADE)

How can it be solved??

Re: DataBase Error

Posted: 12 Dec 2015, 11:58
by aimeos
Which version are you using? Tried with both, 1.2.x and dev-master and they work as expected.

Re: DataBase Error

Posted: 13 Dec 2015, 04:01
by gnabin01
I am using version 1.2.

Re: DataBase Error

Posted: 13 Dec 2015, 11:26
by aimeos
I think this happens according to your wrong document root.