You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing out the Shopify plugin and I've tried to add some fields to the products.
I had one tab with a title working fine but when I added a field using the Neo plugin, a tab with a field for the SEO plugin, and a tab with a couple of summary fields.
When I saved the page all of the tabs duplicated and then I got an error because of the duplicates.
'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '83-44' for key 'idx_wlcbhmxrqizbeglfuifneaurqdbsemupfwzj'
The SQL being executed was: INSERT INTO fieldlayoutfields (layoutId, tabId, fieldId, required, sortOrder, dateCreated, dateUpdated, uid) VALUES (83, 1780, 44, 0, 0, '2022-11-15 16:24:56', '2022-11-15 16:24:56', '809f2855-bba5-43a8-967c-3f2d8ddbdce5')'
After trying to remove all the fields, they duplicated again and now I can't save any fields or use the plugin at all
Steps to reproduce
Add new tabs to products under Shopify -> Settings -> Products
This ended up benig mostly a Craft CMS bug, which is now fixed for the next release (2947da1).
It was exacerbated in Shopify because the product field layout wasn’t getting saved to the project config. That’s been fixed for the next Shopify release as well (craftcms/shopify#50).
To get the Craft CMS fix early, change your craftcms/cms requirement in composer.json to "dev-develop#2947da192efe8a78bd617565df0239baba46f931 as 4.3.5" and run composer update.
Shopify 3.1.0 has been released, which saves the product field layout to the project config, bypassing the issue. so you may just want to update that rather than put craftcms/cms on the develop branch.
Description
Hello,
I'm testing out the Shopify plugin and I've tried to add some fields to the products.
I had one tab with a title working fine but when I added a field using the Neo plugin, a tab with a field for the SEO plugin, and a tab with a couple of summary fields.
When I saved the page all of the tabs duplicated and then I got an error because of the duplicates.
'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '83-44' for key 'idx_wlcbhmxrqizbeglfuifneaurqdbsemupfwzj'
The SQL being executed was: INSERT INTO
fieldlayoutfields
(layoutId
,tabId
,fieldId
,required
,sortOrder
,dateCreated
,dateUpdated
,uid
) VALUES (83, 1780, 44, 0, 0, '2022-11-15 16:24:56', '2022-11-15 16:24:56', '809f2855-bba5-43a8-967c-3f2d8ddbdce5')'After trying to remove all the fields, they duplicated again and now I can't save any fields or use the plugin at all
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: