After upgrading from Views 3.1 to Views 3.3, old views, that use embed pages and works before normally, stops working. And I can't edit them, Drupal shows empty page.
If I try to import view, I got the error:
Display plugin embed is not available.
Seems that something changed in views module.

Comments

murz’s picture

Rolling back to Views 3.1 helps, view with embed go to work normally.

mesr01’s picture

Title: Not work with Views 3.3 » Not working with Views 3.3

Same here. Completely stopped working.

seddonym’s picture

I think I've got to the bottom of this.

The newer versions of views supply an 'embed' display. This is conflicting with the embed display defined in this module.

Unfortunately the views core embed display doesn't actually work... (See http://drupal.org/node/1471770.)

I've come up with a workaround which simply plumbs in the views core embed display to embed_views' handler. In a custom module, put the following hook:

  function MYMODULE_views_plugins_alter(&$plugins) {
    $plugins['display']['embed'] = array_merge($plugins['display']['embed'], array(
      'handler' => 'embed_views_plugin_display_embed',
      'theme' => 'views_view',
    ));
  }

You may also need to enable the embed display in the ui at Views > Settings > Basic, 'Show the embed display in the ui. '.

I suggest the maintainers of embed_views and views talk about how to resolve this!

carolalind’s picture

Can confirm that the workaround in #3 works like a charm! I have a lot of embedded views on my site and this really saved my day. Thanks!!!

murz’s picture

So, after #1471770: Embed display is missing its handler class is fixed, we can use integrated into Views embed displays, or it will miss some features, that exists in this module?

grndlvl’s picture

Assigned: Unassigned » grndlvl
grndlvl’s picture

Assigned: grndlvl » Unassigned

Hrmm, interesting I am not sure this is the first I have heard of it, I would imagine if its being implemented in views this module may become obsolete. I will have to look into it further. If so I will be implementing a fix / migration so that your current views will not break. Apologies for not seeing this sooner and I am glad you found a workaround.

grndlvl’s picture

Title: Not working with Views 3.3 » Not working with Views 3.2+
grndlvl’s picture

grndlvl’s picture

I went ahead and committed the workaround it is currently available in 7.x-2.x.

I have a couple of things to test before I mark this as beta2.

Commit: http://drupal.org/commitlog/commit/10124/fb3a939d97903ecf8aa703256c864fd...

grndlvl’s picture

Status: Active » Fixed
grndlvl’s picture

Status: Fixed » Active

I suppose I should also apply the fix to the 7.x-1.x branch.

grndlvl’s picture

Status: Active » Closed (fixed)

I have ported the fix from 7.x-2.x to 7.x-1.x and created a new release 7.x-1.2.

Also the latest beta release has this fix 7.x-2.x-beta2