On file (image) upload: " Some error occured during uploading" error tooltip shows up with Tinymce 7 editor.
NafiurSiddiqui opened this issue · 10 comments
Version: 7
I have read the installation and necessary documentation This is with Tinymce 7 editor.
Expected Behavior
No error tooltip occurs when the image is uploaded. Simply uploads, close the modal, image shows up.
Actual Behavior
Some error occured during uploading red tooltip pops up below the image with a cross mark. Nothing on console log.
Close the window, go back to the filemanager panel, refresh frame/ click thumbnails to refresh the lists, image shows up.
Without the refresh the image won't show up when you close the modal.
Steps to Reproduce the Problem
- upload an image via the filemanager
Specifications
- Operating system : Ubuntu 22.04.4 LTS x86_64
- Laravel version : 11
- Package version : 7
- Screenshots of browser console :

I have simply followed the guided instructions from the official documentation.
@NafiurSiddiqui Updating the config file should_create_thumbnails to false would solve the problem.
@NafiurSiddiqui Updating the config file
should_create_thumbnailsto false would solve the problem.
Doesn't that turn off the thumbnails and upload progress bar altogether? If that is the case, ot merely turns off the issue, does not solve the issue.
I had similar issue with this package use following.
I have the following error in my log file that is related to this issue:
development.ERROR: Class "Intervention\Image\Laravel\Facades\Image" not found {"file":"\vendor\unisharp\laravel-filemanager\src\LfmPath.php"
laravel/framework v11.23.4 The Laravel Framework.
unisharp/laravel-filemanager v2.9.1
intervention/image 3.8.0 PHP image manipulation
I think you can either disable thumbnails in the LFM package configuration, or install the package mentioned by Anshul-code
use another version its automatic works
I tried changing should create thumbnails' => false in the lfm.php config and it worked, try checking when the error message appears, is the upload process still successful? if success then do the method above. Maybe that's a quicker way than having to wait for this package to update.
I faced the same issue.
Class "Intervention\Image\Laravel\Facades\Image" not found {"file":"\vendor\unisharp\laravel-filemanager\src\LfmPath.php"
then I installed required packages
composer require intervention/image
composer require intervention/image-laravel
Class Image not found issue gone. Then I tried to upload image it appears with new error
[2024-10-28 19:54:51] local.ERROR: Class "gd" not found .
I tried to find out what exactly issue is. In my config/lfm.php file 'should_create_thumbnails' => true,
Then I changed it to
'should_create_thumbnails' => false,
After that I ran php artisan optimize:clear
Now its working fine now.
But I am confuse that, in my system gd extension is enabled and it's available. So why it stills still searching for gd extension and that's why it gives error [2024-10-28 19:54:51] local.ERROR: Class "gd" not found .



