Thank you for your module.

We are using the following Library and Modules

Library
CKEditor version 4.4.8

Modules
One Click Upload 7.x-2.x-dev
Wysiwyg 7.x-2.x-dev

When Uploading a new image or any file type in wysiwyg CKEditor, We get the following error.

" Server response came not in JSON format:
{"status":true,"data":"\u003Cimg src=\u0022\/sites\/default\/files\/one_click_upload\/1234\/images\/image1.PNG\u0022 alt=\u0022\u0022 \/\u003E"}
Server response came not in JSON format: "

We are not able to figure it out. Any help or support is appreciated.

Comments

sk2013 created an issue. See original summary.

sk2013’s picture

Title: Image is not uploaded correctly in WYSIWYG - CKEditor » Image or file not getting uploaded WYSIWYG - CKEditor
Issue summary: View changes
Issue tags: -wysiwyg CKEditor image upload issue +wysiwyg CKEditor image / file upload issue
nilesh.addweb’s picture

I tried with same modules and libraries. I can upload images as well as files without any problem. Can you please provide steps to reproduce?

sk2013’s picture

It's working now after we changed the format to JSON.

Thanks

nilesh.addweb’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Oleksandr Berezko’s picture

Version: 7.x-2.x-dev » 7.x-2.0

Dear developers! First of all, thanks for the awesome module!

I have experienced a bug described above in one of my projects (Drupal 7.53 + CKEditor 7.x-1.17). I have managed to catch the situation when it appears, that's why I'm writing the comment. In my case the bug showed when I added Entity translation to my website (I followed the instructions from here - http://adellefrank.com/blog/how-to-set-up-simple-multilingual-drupal-7-s...).

The error message:

Server response came not in JSON format:
{"status":true,"data":"\u003Cp\u003E\u003Ca href=\u0022\/sites\/default\/files\/styles\/content-image-1200\/public\/inline\/images\/2016\/12\/11\/soul_of_the_mountains_dsc04918_4_2.jpg?itok=UtpThHAH\u0022 target=\u0022_blank\u0022 class=\u0022colorbox\u0022\u003E\u003Cimg src=\u0022\/sites\/default\/files\/styles\/content-image-790\/public\/inline\/images\/2016\/12\/11\/soul_of_the_mountains_dsc04918_4_2.jpg?itok=6JYekObF\u0022 alt=\u0022\u0022 \/\u003E\u003C\/a\u003E\u003C\/p\u003E"}

I hope my report helps. It would really be great to use the module on multilingual websites.