trippo / ResponsiveFilemanager

Completely Responsive Filemanager with integration for tinyMCE,CKEditor and CLEditor editor
http://responsivefilemanager.com
Other
816 stars 366 forks source link

SyntaxError: Unexpected token < in JSON at position 0 #602

Open khadkasimon opened 4 years ago

khadkasimon commented 4 years ago

SyntaxError: Unexpected token < in JSON at position 0 While Uploading Image php 7.4.0 image

trippo commented 4 years ago

You must check the error on the network tab of inspector

Il giorno 27 mar 2020, alle ore 10:29, Suresh Khadka notifications@github.com ha scritto:

SyntaxError: Unexpected token < in JSON at position 0 While Uploading Image php 7.4.0 https://user-images.githubusercontent.com/10781554/77741779-8ed71e00-703d-11ea-991e-15bf10ba7a3c.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trippo/ResponsiveFilemanager/issues/602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZMEOZQJRGWYARRTXRGQLRJRWWVANCNFSM4LU3TTSQ.

labby commented 4 years ago

please see image, error bug_json appears with php 7.4.4 with php 7.2x it is working well (same file, same procedure)

labby commented 4 years ago

using drag and drop it throws Fatal error: Uncaught Error: Call to undefined function mime_content_type() in F:_LEPTON\LEPTON_mobile\root\4x\upload\modules\lib_r_filemanager\filemanager\include\php_image_magician.php:2723 Stack trace: #0 F:_LEPTON\LEPTON_mobile\root\4x\upload\modules\lib_r_filemanager\filemanager\include\php_image_magician.php(230): imageLib->openImage('../../..//media...') #1 F:_LEPTON\LEPTON_mobile\root\4x\upload\modules\lib_r_filemanager\filemanager\include\utils.php(425): imageLib->__construct('../../..//media...') #2 F:_LEPTON\LEPTON_mobile\root\4x\upload\modules\lib_r_filemanager\filemanager\dialog.php(1116): create_img('../../..//media...', '../thumbs/produ...', 122, 91, 'crop', Array) #3 {main} thrown in F:_LEPTON\LEPTON_mobile\root\4x\upload\modules\lib_r_filemanager\filemanager\include\php_image_magician.php on line 2723

topapay commented 4 years ago

SyntaxError: Unexpected token < in JSON at position 0 While Uploading Image php 7.4.5 , use FTP, error on the network tab of inspector


Warning: move_uploaded_file(../temp/1hYOVXH.jpg): failed to open stream: Permission denied in /var/www/html/kelola/assets/tinymce/filemanager/UploadHandler.php on line 1168

Warning: move_uploaded_file(): Unable to move '/tmp/phpnqJiWh' to '../temp/1hYOVXH.jpg' in /var/www/html/kelola/assets/tinymce/filemanager/UploadHandler.php on line 1168

Warning: filesize(): stat failed for ../temp/1hYOVXH.jpg in /var/www/html/kelola/assets/tinymce/filemanager/UploadHandler.php on line 322

Warning: unlink(../temp/1hYOVXH.jpg): No such file or directory in /var/www/html/kelola/assets/tinymce/filemanager/UploadHandler.php on line 1187
{"files":[{"name":"1hYOVXH.jpg","size":false,"type":"image\/jpeg","error":"File upload aborted","deleteUrl":"https:\/\/rsud.brebeskab.go.id\/kelola\/assets\/tinymce\/filemanager\/upload.php?file=1hYOVXH.jpg","deleteType":"DELETE"}]}