Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Media WYSIWYG
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2015 at 16:50 UTC
Updated:
30 Nov 2016 at 13:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dsnopekPatch is attached!
(Note: I've also attached a 2nd patch that applies against the Media included in Panopoly which has a bunch of other patches. This is just for my personal convenience so I've marked it as hidden.)
Comment #2
dsnopekHrm! Interestingly, it looks like the Panopoly patch wasn't necessary and actually won't apply whereas the other one will.. :-) Sorry for the extra noise with the extra patch!
Comment #3
zerolab commentedThis is somewhat related to #2317519: Blank WYSIWYG with existing multiple Media content and the patch https://www.drupal.org/node/2317519#comment-9852867 from solves the error.
However, when you have multiple WYSIWYG inserted items (and multiple editors), some placeholders do not get rendered, but stay as media tokens.
Cheers,
Dan
Comment #4
dsnopekI think staying Media tokens is fine. It's better than losing the data!
Comment #5
zerolab commentedI agree it is better than losing data.
#2317519-22: Blank WYSIWYG with existing multiple Media content has a patch that fixes both issues.
Comment #6
azinck commentedComment #7
dsnopekAh, #2317519-22: Blank WYSIWYG with existing multiple Media content definitely looks like it'd fix this issue too, but I can't vouch for the rest of the changes because I don't have steps to reproduce the other problems..
Comment #8
rooby commentedI have the same problem and it results in create_element gets called with no media and you get the following error on the first line in create_element():
My error is different because I'm using a slightly older version of media but it's the same root cause.
I'm not sure how viable it is to support copy and paste of media tokens however we need to at least make it so that it doesn't error out if source is empty. At a glance, the patch in the related issue #22 seems it would fix it.
It would possibly even be good to pop up a message to the user to let them know what's going on but maybe we can't be sure enough of the exact cause for that to be viable.
I agree that leaving the token if no matching media is found is preferable.
Comment #9
sambonner commentedI've applied the patch in #1 and while its a suboptimal situation to get into, this behaviour is much preferable to an execution error in the JS causing Ckeditor to die partway through initialisation.
Comment #10
rooby commented@sambonner:
It looks like this issue will get closed in favour of the patch at #2317519-56: Blank WYSIWYG with existing multiple Media content.
Is there any chance you could see if that patch resolves your bug?
Comment #11
scuba_flyI'm still having this issue with the latest dev which includes the #2317519-56 patch
Comment #12
joseph.olstadHi @scuba_fly , can you please test patch #1 in this issue, I just tried applying it and it still applies to the latest beta5 release or 2.x dev branch
Let us know if patch#1 addresses your issue.
Comment #14
joseph.olstadThanks @dsnopek committed to dev branch 7.x-2.x
Comment #15
scuba_flyA bit late, but confirming that the #1 patch at least lets you keep your data and can switch back to the editor mode.