Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On file (image) upload: " Some error occured during uploading" error tooltip shows up with Tinymce 7 editor. #1239

Open
NafiurSiddiqui opened this issue Jun 3, 2024 · 10 comments

Comments

@NafiurSiddiqui
Copy link

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.

Screenshot from 2024-06-03 21-57-04

Steps to Reproduce the Problem

  1. 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 :
    image

I have simply followed the guided instructions from the official documentation.

@ObaydaAlesawi
Copy link

@NafiurSiddiqui Updating the config file should_create_thumbnails to false would solve the problem.

@NafiurSiddiqui
Copy link
Author

@NafiurSiddiqui Updating the config file should_create_thumbnails to 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.

@k111ra
Copy link

k111ra commented Aug 14, 2024

Hi, have the same error. i run laravel 10.x someone can help me?
image
Capture d'écran 2024-08-14 114357

@Anshul-code
Copy link

Anshul-code commented Sep 3, 2024

I had similar issue with this package use following.

https://github.com/Intervention/image-laravel

@ChristopheBossens
Copy link

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

@Shamsudin-Aalam
Copy link

I have same issue, how can I solve it ?
error

@ChristopheBossens
Copy link

I think you can either disable thumbnails in the LFM package configuration, or install the package mentioned by Anshul-code

@Shamsudin-Aalam
Copy link

use another version its automatic works

@jarwonozt
Copy link

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.

@arif98741
Copy link

arif98741 commented Oct 28, 2024

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants