Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Multi-Store Inventory not loading #3696

Open
AndrewMac opened this issue Sep 30, 2024 · 9 comments
Open

[5.x]: Multi-Store Inventory not loading #3696

AndrewMac opened this issue Sep 30, 2024 · 9 comments

Comments

@AndrewMac
Copy link

What happened?

Inventory seemed to be working okay when I had just one store, but stopped working when I added a second store. The screen just sits there with the spinning loading icon.

I also tried an inventory transfer and got an error:
TypeError
craft\commerce\collections\UpdateInventoryLevelCollection::craft\commerce\collections{closure}(): Argument #1 ($updateInventoryLevel) must be of type craft\commerce\models\inventory\UpdateInventoryLevel, craft\commerce\models\inventory\UpdateInventoryLevelInTransfer given

Craft CMS version

Pro 5.4.6

Craft Commerce version

Pro 5.1.2

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Copy link

linear bot commented Sep 30, 2024

@lukeholder lukeholder self-assigned this Sep 30, 2024
@lukeholder
Copy link
Member

Hi, could you expand on "The screen just sits there with the spinning loading icon." which screen is that?

Could you send your DB backup, composer.json and composer.lock to [email protected] and reference this issue please? Include the steps to reproduce.

We can then take a look at trying to reproduce what is causing the issue. Thanks

@AndrewMac
Copy link
Author

The main Commerce: Inventory screen. I will ask my client about sending the DB, but they have not allowed that in the past.

@lukeholder
Copy link
Member

No worries, can you run the php craft gc and php craft resave/products commands and see if that fixes the issue?

@AndrewMac
Copy link
Author

I ran the gc command without issue, but when I tried "ddev craft resave/products" it told me that "No products exist for that criteria" (resaving entries worked just fine, though?). That's all a bit strange, though, because the same command works okay on a brand-new Craft/Commerce-only site I just set up to test this issue for incompatible plugins. I still get the spinning wheel on the project site, and with the resave command not working I can't see if that fixes things.

I can also report that the inventory screen loads okay on that new Craft/Commerce-only site I just set up. But the inventory transfer is still giving the error. Just to make sure I read the docs correctly: I set up the transfer, then tried to set the transfer to 'pending'. And that's when the TypeError I reported above kicks in.

@idleog
Copy link

idleog commented Oct 17, 2024

same problem here. when going in cp commerce->products site hangs, I have to restart ddev.

I ran craft resave/products, makes about 1 product per half an hour...

@idleog
Copy link

idleog commented Oct 17, 2024

Image

@lukeholder
Copy link
Member

@idleog did you send your db to [email protected] and reference this ticket?

@idleog
Copy link

idleog commented Nov 13, 2024

I did via wetransfer, but maybe without reference to this ticket. I am resending now again via wetarnsfer a dump with not all products (but still products with variants, causing problems)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants