Laravel-Backpack / community-forum

A workspace to discuss improvement and feature ideas, before they're actually implemented.
28 stars 0 forks source link

[Bug] Editable columns update error #898

Closed sca1235 closed 3 months ago

sca1235 commented 3 months ago

Bug report

What I did

Updated to latest versions of backpack editable columns. 3.0.8

What I expected to happen

save minor update to work

What happened

production.ERROR: Call to a member function withFakes() on bool {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function withFakes() on bool at /var/www/static/vendor/backpack/editable-columns/src/Http/Controllers/Operations/MinorUpdateOperation.php:95) [stacktrace]

rest of error log https://codeshare.io/64VkRO

What I've already tried to fix it

update composer

Is it a bug in the latest version of Backpack?

After I run composer update backpack/crud the bug... is it still there?

Yes

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

LARAVEL VERSION:

10.48.4.0

BACKPACK PACKAGE VERSIONS:

backpack/basset: 1.3.0 backpack/crud: 6.7.2 backpack/editable-columns: 3.0.8 backpack/filemanager: 3.0.7 backpack/permissionmanager: 7.2.0 backpack/pro: 2.1.11 backpack/revise-operation: 2.0.0 backpack/theme-coreuiv2: 1.2.3 backpack/theme-tabler: 1.2.8

pxpm commented 3 months ago

Hey @sca1235 thanks for the heads up. 🙏

I've just tagged editable-columns 3.0.9 with the fix. It should take a little bit for our private repository to pick the changes, and you will be able to get the fix with a composer update.

Let me know if you are still experiencing issues after the update.

Cheers

sca1235 commented 3 months ago

@pxpm yes fixed thanks

allam2002 commented 6 days ago

i have the same problem even in the last update vendor/backpack/editable-columns/src/Http/Controllers/Operations/MinorUpdateOperation.php#95 CRUD::setCurrentOperation('list'); $this->setupConfigurationForCurrentOperation();

    return CRUD::getEntriesAsJsonForDatatables([$this->minorUpdateEntry->withFakes()], 1, 1)['data'][0] ?? null;
}

/**
pxpm commented 6 days ago

@allam2002 can you check that you have at least 3.0.9 version ?

You can check your installed version with: php artisan backpack:version.

Cheers

allam2002 commented 6 days ago

BACKPACK PACKAGE VERSIONS:

backpack/backupmanager: v5.0.3 backpack/basset: 1.3.4 backpack/crud: 6.7.17 backpack/devtools: 2.0.3 backpack/editable-columns: 3.0.9 backpack/filemanager: 3.0.8 backpack/generators: v4.0.5 backpack/logmanager: v5.0.2 backpack/medialibrary-uploaders: 1.2.0 backpack/permissionmanager: 7.2.1 backpack/pro: 2.2.4 backpack/revise-operation: 2.0.0 backpack/theme-tabler: 1.2.10

allam2002 commented 5 days ago

BACKPACK PACKAGE VERSIONS:

backpack/backupmanager: v5.0.3 backpack/basset: 1.3.4 backpack/crud: 6.7.17 backpack/devtools: 2.0.3 backpack/editable-columns: 3.0.9 backpack/filemanager: 3.0.8 backpack/generators: v4.0.5 backpack/logmanager: v5.0.2 backpack/medialibrary-uploaders: 1.2.0 backpack/permissionmanager: 7.2.1 backpack/pro: 2.2.4 backpack/revise-operation: 2.0.0 backpack/theme-tabler: 1.2.10

On Fri, Jun 28, 2024 at 12:09 PM Pedro Martins @.***> wrote:

@allam2002 https://github.com/allam2002 can you check that you have at least 3.0.9 version ?

You can check your installed version with: php artisan backpack:version.

Cheers

— Reply to this email directly, view it on GitHub https://github.com/Laravel-Backpack/community-forum/issues/898#issuecomment-2196466164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVMC54NT2SVYMR4XXB5W33ZJUR3FAVCNFSM6AAAAABFJGHRZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGQ3DMMJWGQ . You are receiving this because you were mentioned.Message ID: @.***>