verbb / navigation

A Craft CMS plugin to create navigation menus for your site.
Other
90 stars 23 forks source link

Bug when calling `./craft resave/navigation-nodes` #362

Closed rungta closed 1 year ago

rungta commented 1 year ago

Describe the bug

$ ./craft resave/navigation-nodes
Exception 'TypeError' with message 'craft\console\controllers\ResaveController::saveElements():
Argument #1 ($query) must be of type craft\elements\db\ElementQueryInterface,
string given, called in .../vendor/verbb/navigation/src/Navigation.php on line 312'

in .../vendor/craftcms/cms/src/console/controllers/ResaveController.php:433

Steps to reproduce

  1. Run the ./craft resave/navigation-nodes console command via the command line

Craft CMS version

4.4.15

Plugin version

2.0.19

Multi-site?

Yes

Additional context

No response

engram-design commented 1 year ago

Fixed in 2.0.20

rungta commented 1 year ago

Thanks Josh!