Well, I have been spending way too long figuring this one out. I am not sure where the problem lies, it may be a Media problem, but I think I ought to try here first.

How to reproduce:

  1. Install modules
    Fieldable panels pane (dev) + dependencies
    Media (dev) + dependencies
  2. Now, add a media field to a fieldable panels pane.
  3. Create a panel page/mini panel or have a panelizer node (with IPE).
  4. Add a FPP with media, click Finish
  5. Verify that this works as expected
  6. Edit the Pane u just created and Finish
  7. Now the preview does not work.

Note that it does not matter if you change anything. when you edit the existing Pane.

It is seriously driving me nuts. I recalled that Panopoly is using a similar methodology, so I checked there and found out they do not use Media for images. I added a Media field, and it worked! However, when i deleted the normal image field, preview didn't work again. I tested that on my clean install, added a regular image field, and lo and behold, now the preview works. If anyone can solve this, I am going to send you one of the best Belgian beers in the world.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dagomar’s picture

Status: Active » Closed (works as designed)

After a good night's sleep I was able to solve this excruciatingly annoying problem, or, I came up with a working workaround. It turns out that the problem is when you set the media field to display anything other than 'Rendered entity'. In my case, I had an image field and a video (file) field displaying as image and as generic file respectively. Once I changed those to Rendered entity, my problem was solved. Still it's an annoying problem, but at least I have it working now. I'll close this issue since the workaround is acceptable for me now. I hope this may help someone in the future.

MiroslavBanov’s picture

Issue summary: View changes
Status: Closed (works as designed) » Needs review
FileSize
1.76 KB

I have experienced the same issue.
This patch to a completely unrelated issue appears to fix the problem, but it prevents the use of uuid:
https://drupal.org/comment/7381446#comment-7381446

I attached a patch for this issue that still uses uuid, but it is not compatible with the other patch I link to.

DamienMcKenna’s picture

Status: Needs review » Closed (works as designed)

Not sure there's a bug here? The changes in the patch from #2 have been committed elsewhere.

MiroslavBanov’s picture

Status: Closed (works as designed) » Needs review

Are sure this was committed? I don't see it anywhere. There is an alternative patch in #1986334: Allow a particular revision of a fieldable panels pane to be placed in a panelized page, but it is different, and doesn't support load by vuuid.

Status: Needs review » Needs work

The last submitted patch, 2: FPE-media-problem-fieldable_panels_panes-2101255-2.diff, failed testing.

ruloweb’s picture

Status: Needs work » Closed (duplicate)