Sylius: Column 'code' cannot be null when I try to add picture

Created on 26 Oct 2016  路  4Comments  路  Source: Sylius/Sylius

Hi,

I got this error in BO (v1.0.0-alpha) when I try to add a picture to my product :

An exception occurred while executing 'INSERT INTO sylius_product_image (code, path, owner_id) VALUES (?, ?, ?)' with params [null, "32\/dd\/28f0b9dba5559620edebbb6094ad.jpeg", 425]:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'code' cannot be null

I got the same issue on demo (Error 500) can you fix this issue please ?

Thanks

Potential Bug

Most helpful comment

Ok, we have a problem that validation message doesn't appear, because a code is required.

All 4 comments

@lucassimonin could you give us some details about that? I've tried to recreate this bug, but everything locally and also on demo looks good.

If you add picture by here :

image

Nothing happend (We think that), but when you tried to submit you got :

image

Ok, we have a problem that validation message doesn't appear, because a code is required.

Oh ok I understand the problem thank you :)

Was this page helpful?
0 / 5 - 0 ratings