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

The response is not a valid JSON response when uploading images via Gutenberg in IIS #12532

Niklassandqvist opened this Issue Dec 3, 2018 · 4 comments


None yet
6 participants
Copy link

Niklassandqvist commented Dec 3, 2018

Describe the bug
I cannot upload images in Gutenberg when running IIS 8.5 and PHP 7.2.3. Same site works with ngix.

To Reproduce
Steps to reproduce the behavior:

  1. Run WordPress with Gutenberg on IIS 8.5 and PHP 7.2.3
  2. Goto insert image block in Gutenberg
  3. Press upload and choose an image
  4. Click open, wait a while and then you get the error "The response is not a valid JSON response"
  5. The responce after insert is https://...../wp-admin/undefined (404)

Additional context
Inserting an image to media first works as a workaround.


This comment has been minimized.

Copy link

carolynzinn commented Dec 6, 2018

Same error here. IIS 7.5 and PHP 5.6.26
Image blocks and image gallery blocks.
Nothing in the WP_DEBUG_LOG
Same .../wp-admin/undefined as Niklassandqvist
This request originates in plugins/gutenberg/build/block-library/index.js



This comment has been minimized.

Copy link

mairin commented Jan 8, 2019

same issue here


This comment has been minimized.

Copy link

josephdickson commented Jan 14, 2019

For what it's worth, I'm running a server with Microsoft-IIS/7.5 with PHP 7.1.13.

Creating a reusable block and or uploading an image results in the same error.

The reusable block posts the error at the top of the page while the image posts the error within the image block upload area.

block errors

Although the error appears a reusable block is created and the image is uploaded to the media library.

I wasn't able to recreate this conflict on a LAMP server or in Desktop Server on Windows


This comment has been minimized.

Copy link

flatcapclancy commented Jan 16, 2019

Confirmed on Windows Plesk hosting (at GoDaddy) running IIS 7 on PHP 5.2.17, 5.4.45, 5.6.33 (tested each version) running as a FastCGI application, WordPress version 5.0.3

Workaround: Upload through "media" or using a Classic Block/Classic Editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment