spatie / medialibrary.pro

The source code of medialibrary.pro
https://medialibrary.pro
36 stars 9 forks source link

Media Library Pro stopped working after upgrading to v3 #54

Closed amshehzad closed 6 months ago

amshehzad commented 10 months ago

I've followed the upgrade guide but I'm getting this error:

image

riasvdv commented 10 months ago

Can you share the full exception with us? I'm lacking a bit of context with just the screenshot

amshehzad commented 10 months ago

Yes sure here is full error stack: https://flareapp.io/share/NPL8lbQP

amshehzad commented 10 months ago

Sorry my bad, I missed this part from upgrade:

MAKE SURE YOU'RE SETTING YOUR MEDIA PROPERTIES TO A DEFAULT EMPTY ARRAY

I changed public array $documents; to public array $documents = []; and the problem is solved.

but I'm still not able to use the component. in console I can see a lot of errors: image

If I try to upload something despite these errors I get this error: https://flareapp.io/share/W7zDk6lm

riasvdv commented 10 months ago

Can you share your full console errors including the warnings?

amshehzad commented 10 months ago

Yes here it is: image

image

image

image

riasvdv commented 10 months ago

Can you try running php artisan view:clear and see if that solves your issue?

amshehzad commented 10 months ago

Unfortunatly it didn't

amshehzad commented 10 months ago

if it's possible, can we connect on discord so I can share more details or share whatever you need to check more details about the issue?

riasvdv commented 10 months ago

Can you set up an example repo which reproduces your issue?

amshehzad commented 10 months ago

Ok I created a new repo but the error is not there, after some debugging it seems like the problem occurs when I use it inside wire-elments modal component. I'll try to setup a new repo with wire-elements producing the issue

amshehzad commented 10 months ago

@riasvdv please check the repo: https://github.com/amshehzad/medialibrary

the component does not work inside wire-elements modal

amshehzad commented 10 months ago

@riasvdv I've discussed the issue with Philo the creator of wire-elements and here is what he suggested:

I found that the issue is related to how Livewire works. The modals are loaded dynamically and the Githubissues.

  • Githubissues is a development platform for aggregating issues.