Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecate

Created on 14 April 2022, almost 3 years ago
Updated 17 February 2023, about 2 years ago

Deprecated function: trim()

Receiving following message on editing view components after upgrade to Drupal 9 running on PHP 8.1.4

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\views\Plugin\views\display\DisplayPluginBase->optionsSummary() (line 1357 of core/modules/views/src/Plugin/views/display/DisplayPluginBase.php).
Drupal\views\Plugin\views\display\DisplayPluginBase->optionsSummary(Array, Array) (Line: 410)
Drupal\views\Plugin\views\display\PathPluginBase->optionsSummary(Array, Array) (Line: 277)
Drupal\rest\Plugin\views\display\RestExport->optionsSummary(Array, Array) (Line: 238)
** Drupal\views_data_export\Plugin\views\display\DataExport->optionsSummary(Array, Array) (Line: 575)
Drupal\views_ui\ViewEditForm->getDisplayDetails(Object, Array) (Line: 375)
Drupal\views_ui\ViewEditForm->getDisplayTab(Object) (Line: 204)
Drupal\views_ui\ViewEditForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object) (Line: 41)
Drupal\views_ui\ViewFormBase->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 531)
Drupal\Core\Form\FormBuilder->retrieveForm('view_edit_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object, 'edit', Array) (Line: 230)
Drupal\views_ui\Controller\ViewsUIController->edit(Object, 'data_export_1')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Note line marked ** to suggest it is related to this module

Steps to reproduce

Editing Drupal view displays view: data export and rest export

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

1.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024