nova-flexible-content: Cannot save resource that uses Flexible field. (Call to undefined method forceFill)

Upon saving I get the error: Call to undefined method Whitecube\NovaFlexibleContent\Layouts\Layout::forceFill()

I believe this is related to this issue here: https://github.com/outl1ne/nova-settings/issues/166

Followed same steps to reproduce the issue on a clean install with with whitecube/nova-flexible-content and still get this error as well.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 27 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Totally missed the imports ๐Ÿ˜‚ sorry, this is a bit of a mess. I added the imports and tagged yet another new version.

Can more people chime in on this fix? I have no time to investigate and Iโ€™m fine merging a PR if enough people can confirm that it solves the problem.

I really wish Nova would be more careful with breaking changes on minor and patch releases.

PS: hey @davidhemphill

I have an idea: provide free licenses to maintainers of some popular nova packages just to keep ecosystem healthy and avoid issues like this

We already do! https://github.com/laravel/nova-issues/discussions/4911#discussioncomment-3961246.

No tests, no licenses, I feel itโ€™s like 200X ๐Ÿ˜‚

Thanks a lot guys, it works now! ๐Ÿ’ช

Thanks @LTKort. I just tagged v1.0.10 with your fix. Please report back again @m-lotze @lptn

This should be fixed in v1.0.9 thanks to @LorenzoSapora. Can someone report back? I will reopen if needed.

PR submitted contributions welcome.

Perhaps this is already being done, or perhaps itโ€™s not feasible - however a pre-release notification to 3rd party package developers with a window to test and communicate breaking changes and collaborate on fixes before public release should alleviate issues like this.

Found the issue - Laravel Nova 4.26.0 (released today) introduces the error. Rolling back to 4.25.1 (one release prior) resolves the issue.