whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
788 stars 231 forks source link

Call to undefined method forceFill #468

Closed Jaspur closed 1 year ago

Jaspur commented 1 year ago

For some reason this occurred after updating dependencies:

    "class": "Error",
    "message": "Call to undefined method App\\Nova\\Flexible\\Layouts\\Hero::forceFill()",
    "code": 0,
    "file": "/var/task/vendor/laravel/nova/src/Fields/Field.php:492",
    "trace": [
        "/var/task/vendor/laravel/nova/src/Fields/Field.php:475",
        "/var/task/vendor/laravel/framework/src/Illuminate/Support/helpers.php:307",
        "/var/task/vendor/laravel/nova/src/Fields/Field.php:472",
        "/var/task/vendor/laravel/nova/src/Fields/Field.php:457",
        "/var/task/vendor/laravel/nova/src/Fields/Field.php:439",
        "/var/task/vendor/laravel/nova/src/Fields/Field.php:413",
        "/var/task/vendor/whitecube/nova-flexible-content/src/Layouts/Layout.php:381",

@toonvandenbos

malekmajzoub commented 1 year ago

Rollback to an earlier version of laravel nova. The newest version seems to be incompatible with nova-flexible-content. Use version "laravel/nova": "4.25.1".

Jaspur commented 1 year ago

That’s a workaround. Not a fix. I’ll keep this open, so it’ll be clear it’s a bug ;) On 4 Jul 2023 at 18:10 +0200, Malek Majzoub @.***>, wrote:

Rollback to an earlier version of laravel nova. The newest version seems to be incompatible with nova-flexible-content. Use version "laravel/nova": "4.25.1". — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

LorenzoSapora commented 1 year ago

Currently it's unclear if nova is going to be patched or 3rd party packages are expected to PR fixes.. See replies from the nova team here: https://github.com/whitecube/nova-flexible-content/issues/464

MohammadAsafrahOyoun commented 1 year ago

I am facing the same problem, I hope to solve it if possible.

LorenzoSapora commented 1 year ago

@MohammadAsafrahOyoun you can workaround it by rolling back to v4.25.1, or fork this repo and change \stdClass to \Laravel\Nova\Support\Fluent

MohammadAsafrahOyoun commented 1 year ago

where change fork this repo and change \stdClass to \Laravel\Nova\Support\Fluent ?

voidgraphics commented 1 year ago

Duplicate of #464