Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
rest.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Mar 2018 at 02:43 UTC
Updated:
8 Jul 2023 at 17:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
brooke_heaton commentedComment #3
brooke_heaton commentedComment #4
wim leersCan you please export your view and post the YAML here, so we can reproduce?
Comment #5
brooke_heaton commentedI actually have ZERO Rest export views, so I don't know why or how I'm getting this error. This happens on every drush cr and I have not been able to clear my cache since upgrading to Drupal 8.5
Comment #6
brooke_heaton commentedI do however have a few Data Export views.
Comment #7
brooke_heaton commentedWim - I can verify that disabling the view with the Data Export displays does allow me to skip that error and flush the cache.
Comment #8
wim leersLet's continue this in #2955378, I already posted an initial analysis in #2955378-2: Fatal error on Drupal 8.5, on a data_export display that uses not the data_export style but the *default* style.
Comment #10
arne_hortell commentedIn core/modules/rest/src/Plugin/views/display/RestExport.php function collectRoutes
find the line
$formats = $style_plugin->getFormats();
replace with
$formats=false;
if (method_exists($style_plugin,'getFormats'))
$formats = $style_plugin->getFormats();
Comment #11
arne_hortell commentedHere is a patch for 9.5.x