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
Running the attached JSON via the Architect import area of the CMS works fine but attempting to import this via the CLI command results in the following error:
Digging deeper into this, I can see that this occurs because of line 351 in /vendor/spicyweb/craft-neo/src/Field.php that does this: } elseif ($request->getBodyParam('neoBlockType' . (string)$blockTypeId) !== null) {
And I've confirmed adding !$request->getIsConsoleRequest() resolves the issue.
Is this an Architect issue or should I raise with the developers of Neo instead?
It may be something I can fix. I'll have to do some testing. I may be able to re-create the bodyParam if run from cli but it could also just be that neo is complicated and maybe cli support isn't worth it for plugins that could change at any time and need constant maintenance.
Running the attached JSON via the Architect import area of the CMS works fine but attempting to import this via the CLI command results in the following error:
Calling unknown method: craft\console\Request::getBodyParam()
Digging deeper into this, I can see that this occurs because of line 351 in
/vendor/spicyweb/craft-neo/src/Field.php
that does this:} elseif ($request->getBodyParam('neoBlockType' . (string)$blockTypeId) !== null) {
And I've confirmed adding
!$request->getIsConsoleRequest()
resolves the issue.Is this an Architect issue or should I raise with the developers of Neo instead?
To Reproduce
Use the following JSON file:
neo-import.json.zip
Environment:
The text was updated successfully, but these errors were encountered: