Got this error when trying to attach an export display to a page display.

Comments

killes@www.drop.org created an issue. See original summary.

killes@www.drop.org’s picture

Stack trace:

Jun 1 14:50:20 instyle ool www: PHP Fatal error: Call to undefined method Drupal\views_feed_xml\Plugin\views\style\Xml::attachTo() in /vagrant_data/docroot/modules/contrib/views_data_export/src/Plugin/views/display/DataExport.php on line 193
Jun 1 14:50:20 instyle ool www: PHP Stack trace:
Jun 1 14:50:20 instyle ool www: PHP 1. {main}() /vagrant_data/docroot/index.php:0
Jun 1 14:50:20 instyle ool www: PHP 2. Drupal\Core\DrupalKernel->handle() /vagrant_data/docroot/index.php:19
Jun 1 14:50:20 instyle ool www: PHP 3. Stack\StackedHttpKernel->handle() /vagrant_data/docroot/core/lib/Drupal/Core/DrupalKernel.php:652
Jun 1 14:50:20 instyle ool www: PHP 4. Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() /vagrant_data/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23
Jun 1 14:50:20 instyle ool www: PHP 5. Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() /vagrant_data/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php:50
Jun 1 14:50:20 instyle ool www: PHP 6. Drupal\page_cache\StackMiddleware\PageCache->handle() /vagrant_data/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php:47
Jun 1 14:50:20 instyle ool www: PHP 7. Drupal\page_cache\StackMiddleware\PageCache->pass() /vagrant_data/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php:78
Jun 1 14:50:20 instyle ool www: PHP 8. Drupal\Core\StackMiddleware\KernelPreHandle->handle() /vagrant_data/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php:99
Jun 1 14:50:20 instyle ool www: PHP 9. Drupal\Core\StackMiddleware\Session->handle() /vagrant_data/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:47
Jun 1 14:50:20 instyle ool www: PHP 10. Symfony\Component\HttpKernel\HttpKernel->handle() /vagrant_data/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php:57
Jun 1 14:50:20 instyle ool www: PHP 11. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /vagrant_data/vendor/symfony/http-kernel/HttpKernel.php:64
Jun 1 14:50:20 instyle ool www: PHP 12. Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() /vagrant_data/vendor/symfony/http-kernel/HttpKernel.php:149
Jun 1 14:50:20 instyle ool www: PHP 13. Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() /vagrant_data/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111
Jun 1 14:50:20 instyle ool www: PHP 14. Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() /vagrant_data/docroot/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php:90
Jun 1 14:50:20 instyle ool www: PHP 15. Drupal\Core\Render\MainContent\HtmlRenderer->prepare() /vagrant_data/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php:117
Jun 1 14:50:20 instyle ool www: PHP 16. Drupal\Core\Render\Renderer->executeInRenderContext() /vagrant_data/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php:227
Jun 1 14:50:20 instyle ool www: PHP 17. Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() /vagrant_data/docroot/core/lib/Drupal/Core/Render/Renderer.php:574
Jun 1 14:50:20 instyle ool www: PHP 18. Drupal\Core\Render\Renderer->render() /vagrant_data/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php:226
Jun 1 14:50:20 instyle ool www: PHP 19. Drupal\Core\Render\Renderer->doRender() /vagrant_data/docroot/core/lib/Drupal/Core/Render/Renderer.php:195
Jun 1 14:50:20 instyle ool www: PHP 20. call_user_func:{/vagrant_data/docroot/core/lib/Drupal/Core/Render/Renderer.php:376}() /vagrant_data/docroot/core/lib/Drupal/Core/Render/Renderer.php:376
Jun 1 14:50:20 instyle ool www: PHP 21. Drupal\views\Element\View::preRenderViewElement() /vagrant_data/docroot/core/lib/Drupal/Core/Render/Renderer.php:376
Jun 1 14:50:20 instyle ool www: PHP 22. Drupal\views\ViewExecutable->executeDisplay() /vagrant_data/docroot/core/modules/views/src/Element/View.php:78
Jun 1 14:50:20 instyle ool www: PHP 23. Drupal\views\Plugin\views\display\Page->execute() /vagrant_data/docroot/core/modules/views/src/ViewExecutable.php:1617
Jun 1 14:50:20 instyle ool www: PHP 24. Drupal\views\Plugin\views\display\PathPluginBase->execute() /vagrant_data/docroot/core/modules/views/src/Plugin/views/display/Page.php:168
Jun 1 14:50:20 instyle ool www: PHP 25. Drupal\views\ViewExecutable->build() /vagrant_data/docroot/core/modules/views/src/Plugin/views/display/PathPluginBase.php:351
Jun 1 14:50:20 instyle ool www: PHP 26. Drupal\views\ViewExecutable->attachDisplays() /vagrant_data/docroot/core/modules/views/src/ViewExecutable.php:1315
Jun 1 14:50:20 instyle ool www: PHP 27. Drupal\views_data_export\Plugin\views\display\DataExport->attachTo() /vagrant_data/docroot/core/modules/views/src/ViewExecutable.php:1715

killes@www.drop.org’s picture

Status: Active » Closed (won't fix)

I had copied the display from rest export and not changed it to views_data_export ...