Osclass forums

Development => Development => Topic started by: Xefiron on April 29, 2019, 11:32:22 pm

Title: Error when upload an image
Post by: Xefiron on April 29, 2019, 11:32:22 pm
When I try to load images for the items in the server version of my site I get the following error in the console:

Code: [Select]
jquery.fineuploader.min.js: 16 [FineUploader 3.8.0] Error when attempting to parse xhr response text (Unexpected end of JSON input)
qq.log @ jquery.fineuploader.min.js: 16
log @ jquery.fineuploader.min.js: 16
log @ jquery.fineuploader.min.js: 16
or @ jquery.fineuploader.min.js: 18
s @ jquery.fineuploader.min.js: 18
(anonymous) @ jquery.fineuploader.min.js: 18
XMLHttpRequest.send (async)
D @ jquery.fineuploader.min.js: 18
E @ jquery.fineuploader.min.js: 18
upload @ jquery.fineuploader.min.js: 17
upload @ jquery.fineuploader.min.js: 17
_onSubmitCallbackSuccess @ jquery.fineuploader.min.js: 16
(anonymous) @ jquery.fineuploader.min.js: 16
_handleCheckedCallback @ jquery.fineuploader.min.js: 16
_upload @ jquery.fineuploader.min.js: 16
_onValidateCallbackSuccess @ jquery.fineuploader.min.js: 16
(anonymous) @ jquery.fineuploader.min.js: 16
_handleCheckedCallback @ jquery.fineuploader.min.js: 16
_onValidateBatchCallbackSuccess @ jquery.fineuploader.min.js: 16
(anonymous) @ jquery.fineuploader.min.js: 16
_handleCheckedCallback @ jquery.fineuploader.min.js: 16
_prepareItemsForUpload @ jquery.fineuploader.min.js: 16
_prepareItemsForUpload @ jquery.fineuploader.min.js: 17
addFiles @ jquery.fineuploader.min.js: 16
_onInputChange @ jquery.fineuploader.min.js: 16
onChange @ jquery.fineuploader.min.js: 16
(anonymous) @ jquery.fineuploader.min.js: 16

The site in my localhost does not have any problem, the images load well. Also, I do not have any plugin installed.

Please, someone who can tell me what happens  :(
Title: Re: Error when upload an image
Post by: Xefiron on April 30, 2019, 07:43:35 pm
This is the solution that worked for me to solve this. For some reason the server lost the write permissions in the folder of the oc-content / uploads route. So I reassigned the permissions to the uploads folder and all its contents. I hope it will be useful to someone else with the same problem. Greetings.