Getting 'Trying to access array offset on null' error
Good day. We are struggling with getting the generic error "Trying to access array offset on null" when using code that used to work for us on Livewire 2. We have 2 instances, one where we use CroppieJS code, converted to AlpineJS where the base64 image is dispatched to a parent component, and then QuillJS code where the text is set to a wire:model when there are text changes.
For CroppieJS the parent component looks as follow, where $data is the base64
#[On('newPicture')]
public function newPicture($data): void
{
$this->hasImage = true;
$this->dispatch(
'updateLogo',
$data
)->to(LogoComponent::class);
}
and LogoComponent is as follow
#[On('updateLogo')]
public function updateLogo(string $newImageUrl): void
{
$this->logoImage = $newImageUrl;
}
The error link points to livewire/update which is also strange
"POST https://livewire-system.test/livewire/update".
Any help would be greatly appreciated!
Please or to participate in this conversation.