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

Image Uploader hangs if settings>general>images>height or width is set to 0 #1524

Open
Philip-Wittamore opened this issue Aug 19, 2023 · 0 comments

Comments

@Philip-Wittamore
Copy link

Philip-Wittamore commented Aug 19, 2023

Describe your problem

the ajax image uploader hangs if settings>general>images>height or width is set to 0
The progress bar fills to the end, and stays blue, instead of green with list of images uploaded.
The upload works, the images exist in bl_content/uploads/pages/xxx
but the ajax image panel hangs and doesn't display them.

Steps to reproduce the problem

set settings>general>images>height or width to 0 and try to upload an image

Using the debugger in Firefox (F12, Network) I found the following error:

500
Internal Server Error
https://wittamore.com/admin/ajax/upload-images
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

Bludit version

3.8.1 20190228

PHP version

8.2.8

@Philip-Wittamore Philip-Wittamore changed the title Imaage Image Uploader fails sometimes Aug 19, 2023
@Philip-Wittamore Philip-Wittamore changed the title Image Uploader fails sometimes Image Uploader hangs sometimes Aug 19, 2023
@Philip-Wittamore Philip-Wittamore changed the title Image Uploader hangs sometimes Image Uploader hangs Aug 20, 2023
@Philip-Wittamore Philip-Wittamore changed the title Image Uploader hangs Image Uploader hangs if settings>general>images>height or width is set to 0 Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant