Zoltán Lehóczky
Zoltán Lehóczky
Details of the investigation: https://github.com/OrchardCMS/OrchardCore.Commerce/pull/526#discussion_r1987068238.
If you run this code, then you're updating an already published version, which won't run the `PublishedAsync` handler event, since that (and `PublishingAsync`) doesn't run for already published events. For...
As said, use `VersionOptions.DraftRequired`. I.e.: ```c# var ci = await _contentManager.GetAsync(contentItemId, VersionOptions.DraftRequired); await _contentManager.UpdateAsync(ci); await _contentManager.PublishAsync(ci); ```
[Doesn't seem to be](https://github.com/search?q=repo%3AOrchardCMS%2FOrchardCore+DraftRequired+path%3Asrc%2Fdocs&type=code), would be a good contrib :).
I guess the root of the issue is that when building the sitemap (second exception) there will be just too much stuff in memory for 20k items. There's no batching/paging,...
And repro information would still be useful.
FYI this too @MikeAlhayek.
What's up here, @sarahelsaig?
Start from here: https://docs.orchardcore.net/en/latest/guides/assets-manager/#prerequisites And run the command not in the wwwroot folder but in the repo root.
I can only recommend you to look into the error message. That, and what comes from CI, suggests an improper NPM installation, what might be possible to solve simply with...