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
After upgrading from 5.2.7 to 5.2.8, when running a FeedMe run to create a new product, it fails to create fully.
The product is created but the variant isn't and feedme throws the following error:
craft\commerce\services\Inventory::getInventoryItemById(): Argument #1 ($id) must be of type int, null given, called in /home/jamiesoncarry/site/[jamieson-carry.com/vendor/craftcms/commerce/src/services/Inventory.php](http://jamieson-carry.com/vendor/craftcms/commerce/src/services/Inventory.php) on line 81 - Inventory.php: 88
I've tried to debug this myself by going through the changes introduced in 5.2.8 (compare is here) but reverseing each of these in turn and I've been unable to find the exact problem.
Steps to reproduce
Install Commerce 5.2.8
Try to create a new product via feed me.
I can send over a screen grab of the feedme settings and a copy of the json from the product I'm trying to create if needed, however I've a feeling you'll spot the issue that I couldn't.
Craft CMS version
5.5.7
Craft Commerce version
5.2.8
PHP version
8.3.9
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
After upgrading from 5.2.7 to 5.2.8, when running a FeedMe run to create a new product, it fails to create fully.
The product is created but the variant isn't and feedme throws the following error:
craft\commerce\services\Inventory::getInventoryItemById(): Argument #1 ($id) must be of type int, null given, called in /home/jamiesoncarry/site/[jamieson-carry.com/vendor/craftcms/commerce/src/services/Inventory.php](http://jamieson-carry.com/vendor/craftcms/commerce/src/services/Inventory.php) on line 81 - Inventory.php: 88
I've tried to debug this myself by going through the changes introduced in 5.2.8 (compare is here) but reverseing each of these in turn and I've been unable to find the exact problem.
Steps to reproduce
I can send over a screen grab of the feedme settings and a copy of the json from the product I'm trying to create if needed, however I've a feeling you'll spot the issue that I couldn't.
Craft CMS version
5.5.7
Craft Commerce version
5.2.8
PHP version
8.3.9
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: