pxlrbt / filament-activity-log

Spatie activity log integration into Filament
MIT License
126 stars 24 forks source link

Typed property pxlrbt\FilamentActivityLog\Pages\ListActivities::$record must not be accessed before initialization #23

Closed flashmediasolutions closed 8 months ago

flashmediasolutions commented 9 months ago

Having an issue on fresh install.

Not sure if this is related to this statement, that I am unsure how to execute:

Make sure you use a custom theme and the vendor folder for this plugins is published, so that it includes the Tailwind CSS classes.

If I go into the cache file and remove @livewire('livewire-ui-spotlight') it loads the page.

Any help would be greatly appreciated!

Screenshot 2023-10-04 at 2 44 38 PM

flashmediasolutions commented 9 months ago

It looks like it's a conflict with your other plugin https://filamentphp.com/plugins/pxlrbt-spotlight

pxlrbt commented 9 months ago

Yeah looks like. Does it break immediately or only when you visit that page? Can you please share the Flare error instead of the screenshot?

flashmediasolutions commented 9 months ago

It breaks immediately. I don't have Flare. What would you need from Telescope?

pxlrbt commented 9 months ago

You just sent a screenshot of it 😅 Just click "Share" in the top right to create a shareable link.

Saifallak commented 8 months ago

same error when using something like this:

   Forms\Components\Section::make(__('Address Information'))
                            ->relationship('address')
                            ->collapsible()
                            ->columnSpan(3)
                            ->schema(fn(Forms\Get $get) => self::addressForm(defaultName: ($get('name') ?? 'Shop') . ' Name')),
DevRaeph commented 8 months ago

Same problem here :D Here's my Flare share: https://flareapp.io/share/xmNw6L8P

pxlrbt commented 8 months ago

Figured out, that this is related to the getBreadcrumb() method, which uses the record's title. I think there were some changes with v3, but I guess it should be fixed by defining the method on the page class.

public function getBreadcrumb(): string
{
        return static::$breadcrumb ?? 'Activities';
}
pxlrbt commented 8 months ago

Can anyone verify whether this PR fixes it? https://github.com/pxlrbt/filament-activity-log/pull/24

DevRaeph commented 8 months ago

@pxlrbt i can confirm this PR fixed the issue.