classic-o / nova-media-library

Media Library for admin panel "Laravel Nova"
MIT License
157 stars 66 forks source link

"Undefined index: resize" error when uploading images #8

Closed kandidaterne closed 5 years ago

kandidaterne commented 5 years ago

I followed the setup instructions and when I try to upload an image I get the error "Undefined index: resize" and the text on the button etc look strange...

Can someone tell me what is the Issue here?

classic_nova_media_library
classic-o commented 5 years ago

Hi, I think you forgot publish the package php artisan vendor:publish --provider="ClassicO\NovaMediaLibrary\ToolServiceProvider"

kandidaterne commented 5 years ago

I did the publish command but there is no change, still the same error :-/

classic-o commented 5 years ago

Try to reinstall the package. I test it now and I have no problem.

kandidaterne commented 5 years ago

Doesn't work. I've updated my Nova version to 2.0.7 and Laravel to 5.8.26. I've reinstalled the package, followed the instructions, and when it comes to migration I get the message: nothing to migrate and the button-text doesn't seem to be translated and are still like the image I've posted previously...

I've no clue :-/

classic-o commented 5 years ago

Check files. Do you have in config folder media-library.php and in resources/lang/vendor/nova-media-library/en/ messages.php. And third file in migration

The tool does not work without these files.

kandidaterne commented 5 years ago

I have these files but it still doesn't work :-/ I'm about to give up...

The thing is that some months ago I've installed it already and it did work, but after a short time it was not needed anymore. Now when I want to use it again it doesn't work. When I look at my migrations, the previous _create_nova_media_librarytable.php migration is untracked and does not get migrated When I create the table manually it still doesn't work.

I also tried do remove it from my composer.json and then run composer update and then install it again but no luck.

Even php artisan config:cache or php artisan cache:clear

Its really strange...

kandidaterne commented 5 years ago

Interesting, when I check the console I get TypeError: Cannot read property 'length' of undefined - which is located in media-library

classic-o commented 5 years ago

Can you show your project? :) I think you have problem with application... something went wrong

kandidaterne commented 5 years ago

Can you show your project? :) I think you have problem with application... something went wrong

How do you mean show your project?

classic-o commented 5 years ago

I can`t help you if I dont see what happend. With new laravel project and this package everything works well

kandidaterne commented 5 years ago

But I don't know what you want to see... specific files?

classic-o commented 5 years ago

I want to see how you broke laravel :) No, It makes no sense to show me, see where you changed\broke the structure of the laravel nova