Deprecated strpos in WebformSubmissionListBuilder::getEntityIds()

Created on 29 August 2023, almost 2 years ago
Updated 13 September 2023, almost 2 years ago

Getting this error on Webform on my D10 site while viewing webform submissions: (e.g. /admin/structure/webform/manage/**webform_machine_name**/results/submissions)

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\webform\WebformSubmissionListBuilder->getEntityIds() (line 1310 of modules/contrib/webform/src/WebformSubmissionListBuilder.php).

This appears to happen because TableSort::getOrder($header, $this->request) can return $order['sql'] null, and the subsequent strpos can't handle the null value.

πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada TrevorBradley

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

Comments & Activities

Production build 0.71.5 2024