Hi,
I have an issue with media plugin, and inserting styled images. I am hitting the "503 Service Unavailable - Image generation in progress. Try again shortly.". The problem is that when the <img> tag is passed to the jquery constructor $(), jquery preloads the src and the image derivative starts building. But then the html is taken from the jquery element and passed to CKEDITOR. CKEDITOR inserts the tag in the DOM, and the browser requests the src a second time, and when the browsers get the "503 Service Unavailable - Image generation in progress. Try again shortly.", they usually retry, but not IE8. With IE8, I see a broken image instead.

I am using:
ckeditor module 7.x-1.x revision 493649f5bc9f494f16975949b38ca946369c7207
media module 7.x=2.x revision ecb93923272336edcbe83db2cb6871ead8188912 (Tried using a newer version of media, but I am getting a type error.)
CKEDITOR library 3.6.6.1

My fix is the attached file, but I am interested if anyone has experienced the issue, or has an alternative setup that does not require a fix.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MiroslavBanov’s picture

MiroslavBanov’s picture

Adding it again because my drush make doesn't like ".diff" extension apparently

iSoLate’s picture

Issue summary: View changes
Status: Active » Needs review

This seems to work for me.

The last submitted patch, 1: 2024149-ckeditor-media-broken-image-ie8-1.diff, failed testing.

Status: Needs review » Needs work

The last submitted patch, 2: 2024149-ckeditor-media-broken-image-ie8-2.patch, failed testing.

angel.h’s picture

Status: Needs work » Closed (outdated)

This issue is no longer relevant since https://www.drupal.org/node/2542566 was done and media integration was removed. The plugins/media/library.js file which it patches no longer exists. Closing it.