4

I am getting the following error when I upload any file using the responsive filemanager lastupdate

Error: SyntaxError: Unexpected token < in JSON at position 0

enter image description here

I following the documentation for ckeditor

I appreciate any help

Thank you

Marcelo
  • 61
  • 5
  • Please add some of your code, and folks will be more than happy to help. – alphapilgrim Nov 13 '19 at 21:21
  • I just downloaded the files from [link]https://www.responsivefilemanager.com/index.php#download-section I uploaded it to the webserver and when I try to upload any file using this script show the error SyntaxError: Unexpected token < in JSON at position 0 – Marcelo Nov 14 '19 at 11:44
  • https://stackoverflow.com/a/60552341/14011923 This answer is the solution, I hope it works for you – CLGG Dec 30 '20 at 23:41

1 Answers1

3

UploadHandler.php change line: 1431 and 496 to

$uploaded_bytes = $this->fix_integer_overflow((int)(isset($content_range[1]) ? $content_range[1]: 1));

This works for me!

Martin
  • 2,411
  • 11
  • 28
  • 30