Critical Bug in Shopware 6.7.14.1: Product Duplication Error and Resolution

Critical Bug in Shopware 6.7.14.1: Product Duplication Error and Resolution

The Shopware community recently faced a significant hurdle following the update to version 6.7.14.1, where a fundamental e-commerce function—product duplication—unexpectedly ceased to work. This issue, quickly reported and discussed in the official Shopware forum, highlighted the critical impact even seemingly minor bugs can have on daily store operations. Fortunately, Shopware responded swiftly with a dedicated patch.

The Core Issue: Product Duplication Failure

Users reported that after updating their Shopware instances to version 6.7.14.1, attempts to duplicate products, either via the "3-dots menu" in the product overview or the "Save and duplicate" button within an product's edit page, would fail. This functionality, essential for efficient product management and catalog expansion, became inoperable, causing frustration among merchants and administrators.

Technical Details and Error Message

A linked GitHub issue (shopware/shopware/issues/20528) provided crucial technical insight into the problem. The error manifested as a failed request, returning a 400 Bad Request status with a specific error code: FRAMEWORK__WRITE_CONSTRAINT_VIOLATION. The detailed error message indicated a write protection issue:

{
	"errors": [
		{
			"status": "400",
			"code": "FRAMEWORK__WRITE_CONSTRAINT_VIOLATION",
			"detail": "This field is write-protected. (Got: "crud" scope and "system" is required)",
			"source": {
				"pointer": "/childCountchildCount"
			},
			"meta": {
				"parameters": [
					"crud",
					"system"
				]
			}
		}
	]
}

The issue was categorized with "priority/critical" and affected the "Platform(Default)" and "domain/inventory," underscoring its severity. The problematic request payload included an attempt to set "childCount": 0 and other fields, which triggered the write protection.

{
	"cloneChildren": false,
	"overwrites": {
		"active": false,
		"childCount": 0,
		"mainVariantId": null,
		"name": "EVA Foam Tape 5mm wide, 3mm thick, 4m length Kopie",
		"productNumber": "RT10231",
		"variantListingConfig": {
			"configuratorGroupConfig": null,
			"displayParent": null,
			"extensions": [],
			"mainVariantId": null
		}
	}
}

Community Reaction and Development Insights

The community's sentiment ranged from surprise to frustration. One user, swdiego, expressed, "Ist schon krass, dass eine einfachste und wichtige Funktion in einer bezahlten Software einfach nicht mehr geht. Und, dass es dann 1 Woche dauert bis der Bug dann (eventuell / teilweise) behoben ist." (It's pretty crazy that a simple and important function in paid software just stops working. And that it then takes a week for the bug to be (possibly / partially) fixed.) Benjamin_Hummel, a forum member, provided valuable context on the complexities of software development and bug resolution, explaining that reproducing, finding the cause, and thoroughly testing a solution takes time, influenced by the bug's impact, potential workarounds, and team workload. This helped temper expectations while acknowledging the user's frustration.

The Swift Resolution: Shopware 6.7.14.2

Despite the initial frustration, Shopware demonstrated its commitment to stability by releasing a targeted hotfix. As confirmed by raymond-de, Shopware specifically released version 6.7.14.2 to address this single critical bug. The release notes clearly indicated this fix: Shopware 6.7.14.2 Release Info. This rapid response ensured that merchants could quickly restore essential product management capabilities.

What This Means for Merchants and Developers

For any Shopware store running on version 6.7.14.1 and experiencing issues with product duplication, the immediate and recommended action is to update to Shopware 6.7.14.2. This incident serves as a reminder of the importance of staying informed about official updates and community discussions, especially after major version upgrades. It also highlights the robust support and rapid response mechanisms within the Shopware ecosystem, ensuring critical functionalities are quickly restored.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools