π¨π¦Canada gordonio
I ran into this issue as well. It looks like it's because enable_social is set to false to begin with.
π | Drupal core | Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\views\Plugin\views\display\DisplayPluginBase
π¨π¦Canada gordonio
I have been able to reproduce this issue with the following:
- Add a view to a global section of the site (Mine is an exposed form search block in the site header)
- Go to a url that gives you a 404.
In the following, $route_name returns null and then fails the strpos.
public function viewExposedFormBlocks() {
// Avoid interfering with the admin forms.
$route_name = \Drupal::routeMatch()->getRouteName();
if (strpos($route_name, 'views_ui.') === 0) {
return;
}
$this->view->initHandlers();
if ($this->usesExposed() && $this->getOption('exposed_block')) {
/** @var \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface $exposed_form */
$exposed_form = $this->getPlugin('exposed_form');
return $exposed_form->renderExposedForm(TRUE);
}
}
π¨π¦Canada gordonio
gordonio β made their first commit to this issueβs fork.
π¨π¦Canada gordonio
gordonio β created an issue.