Problem
Can't insert image in CKEditor even if the editor plugin is available and enabled.
The media plugin is the plugin included with the CKEditor module. This plugin is to be removed as outdated :
Proposed resolution
- Enable Media WYSIWYG, in order to use the plugin provided by Media
Original report by @lanzs
After updating to 7.x-2.0-alpha3 I can`t add any images in body. I`m using wysiwyg with CKEditor 4.0.1 and when I`m trying to upload image - after page update (after selecting image and clicking "upload/next" button) nothing happans. I only see blank pop-up. Console shows this error: Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://example.com/media/111555/format-form?render=media-popup&fields=undefined
I have no ideas how to fix it, please help me with this.
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | CKEditor-support-2138953-21.patch | 1.78 KB | tarekdj |
Comments
Comment #1
philipz commentedI've just bumped into the same problem. Just wanted to let you know this is not an isolated problem ;) Unfotunately I have no idea yet what is the cause of this problem.
Comment #2
ParisLiakos commentedif it says status 500, then you should check your servers error logs and let us know what the error says
Comment #3
kiwad commentedWarning : require_once(.../media/includes/media.filter.inc): failed to open stream: No such file or directory dans menu_execute_active_handler() (line 515 in .../includes/menu.inc).
Comment #4
kiwad commentedComment #5
kiwad commentedComment #6
lanzs commentedI've got this error:
Comment #7
lanzs commentedfixed this by manual creating 'media.variables.inc' inside 'includes' folder (http://drupalcontrib.org/api/drupal/contributions!media!includes!media.v...) and embedding this file in 'media.module' (require_once dirname(__FILE__) . '/includes/media.variables.inc';)
Comment #8
philipz commented@lanzs I did the same though I'm pretty sure this couldn't be fixed by clearing caches only. The file was missing causing the error. After adding it back (from previous media release) I remebered I didn't clear caches after updating and then the file could be deleted and it worked without it.
Now in my case I get no error in apache logs. I'm getting a page with
Requested page "/media/13/format-form?render=media-popup&fields=undefined" could not be found.I'm translating this back to english so it might vary a little :)
Comment #9
micbar commentedi experienced the same problem with coeditor module and current media dev. media_wysiwyg.filter.inc could not be included because the media_wysiwyg module has not been enabled.
Comment #11
nuncium commentedAfter updating to media 7.x-2.x-dev i get this error: "The requested page "/media/178/format-form?render=media-popup&fields=undefined" could not be found. "
Still not able to upload image.
Comment #12
JennyGB commentedI don't use wysiwyg but ckeditor 7.x-1.15 (lib CKEditor 3.6.2) ; File entity 7.x-2.0-beta1 ; Media 7.x-2.0-alpha4
Don't have any video module.
I have the issue since File entity and Media upgrade (i upgraded both together).
Then I tried to lower (and even disabled) jQuery update -> same issue.
Tried to upgrade the ckeditor library (from 3.6.2 to latest): same issue.
Tried on an other pc to upgrade to 7.x-2.0-alpha4+4-dev: same issue.
When I try to add an image with media browser, I have 404 error while saving.
In log: Where http://mysite/media/ID/format-form?render=media-popup&fields=undefined
Message media/ID/format-form
Edit: on the test env, I tried to activate media_wysiwyg -> seemed to resolve the issue. Trying on prod (I'll come bach here later)
Edit 2: Yes, enabling media_wysiwyg resolved the issue (with Media 7.x-2.0-alpha4 and 7.x-2.0-alpha4+4-dev) even with no wysiwyg installed (but ckeditor alone)
Comment #13
rwilson0429 commentedI was having the same problem ("the requested page "/media/77/format-form?render=media-popup&fields=undefined" could not be found.") using the Latest dev release of CKEditor 7.x-1.x-dev and the latest Media 7.x-2.x-dev (2014-Oct-08).
Enabling media_wysiwyg module as suggested by JennyGB in #12 resolved it for me too. Thanks JennyGB.
For added control of the media display, I also enabled Media_WYSIWYG_View_Mode module to allow users to select the view mode (default, teaser, full, etc) of the media being uploaded in the CkEditor.
Comment #14
dankh commentedComment #15
dankh commentedComment #16
dobie_gillis commentedThe "Activate media_wysiwyg" fix isn't working for me. I've tried uninstalling and re-installing media_wysiwyg.
I'm running into this problem after updating the Media module to 7.x-2.0-alpha4, and I upgraded media_wysiwyg to 7.x-2.0-alpha4, too. I'm using CKEditor as well.
I have the media_wysiwyg module already enabled, and I've cleared the Drupal caches, but I'm still getting the 500 error, on the AJAX request to
/media/browser?render=media-popup&plugins=undefined.I also tried the dev version of Media.
The JavaScript error I'm getting is:
Comment #17
parasolx commented@dobie_gillis, what version of CKEditor module you use?
Comment #18
msemenov commentedI ve seen this issue, found that combination with Media: YouTube 7.x-2.0-rc4 was causing this problem
Comment #19
himanshupathak3 commentedenabling media_wysiwyg resolved the issue
This module is is avaiable under media 7.x-2
Comment #20
khumbu commentedI can confirm that enabling media_wysiwyg soves the issue...
Comment #21
tarekdj commentedThis issue is related the standalone CKEditor module. I attached a patch that fixes this (I'm using ckeditor v3, needs tests on ckeditor v4).
Comment #23
tarekdj commentedComment #26
dave reidAny ckeditor module support specifically must go into media_ckeditor.
Comment #28
dave reidComment #29
dave reidComment #30
OnkelTem commentedI get this error: "The requested page "/media/31/format-form?render=media-popup&fields=undefined" could not be found. "
Can not upload image.
I didn't get "the proposed solution" regarding "Enable Media WYSIWYG" - what does it mean? I don't use "WYSIWYG", I use CKEditor + Media. Ideas?
Comment #31
devin carlson commentedMake sure that you are using the appropriate version of Media CKEditor for the version of Media that you have installed. Each branch of Media CKEditor only works with the corresponding version of Media.