Running the new sulu:reference:refresh command fails when there are unpublished articles.
bin/websiteconsole sulu:reference:refresh
Refresh snippets
----------------
2 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓]
Refresh pages
-------------
16 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓]
Refresh articles
----------------
2 [▓░░░░░░░░░░░░░░░░░░░░░░░░░░░]
In StructureManager.php line 69:
Sulu\Component\Content\Compat\StructureManager::wrapStructure(): Argument #2 ($structure) must be of type Sulu\Component\Content\Metadata\StructureMetadata, null given, called
in ../sulu-demo/vendor/sulu/sulu/src/Sulu/Component/Content/Compat/StructureManager.php on line 54
sulu:reference:refresh [<resource-key>]
Actual Behavior
Running the new sulu:reference:refresh command fails when there are unpublished articles.
Expected Behavior
Does not fail.
Steps to Reproduce
Run
It should work fine.
Now follow these steps:
Possible Solutions