croustibat/filament-jobs-monitor

Call to a member function getPlugin() on null

PedroReichert opened this issue · 14 comments

Hello, first of all, thank you for the package.

I'm trying to install it in a fresh Laravel project, and when I add the FilamentJobsMonitorPlugin::make() on AdminPanelProvider, I get the following error:
Call to a member function getPlugin() on null
Captura de tela de 2024-03-26 16-54-29

I was about to open a PR about the same. I described my findings in this comment

+1

same for me fresh laravel 10 & filament3 or laravel 11 & filament 3

it's working for me on my local setup. but ok I will dig into this problem.

it's working for me on my local setup. but ok I will dig into this problem.

I faced this issue after updating filament and livewire versions with composer update.

ok i've got something !
It's working with Filament 3.1.x but it crashed with Filament 3.2.x
I'm fixing it !

So i came acrosse with this PR to quick fix the getCluster plugin issue. I'm not very happy with the config() inside the resources, but i don't understand why FilamentJobsMonitorPlugin::get()->getCluster() isn't working :/

#39

Thanks but still the same: Call to a member function getPlugin() on null

The pull request changes do work. I added them manually to my local project and it does resolve the issue. I do not use clusters so I can not say whether it breaks that functionality or not.

Version 2.4.0 is released. It should fix this issue.