strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

Created on 31 March 2023, over 1 year ago
  • Drupal 9.4
  • PHP 8.1

Getting error when using PHP 8.1:

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\Core\Url::fromUserInput() (line 215 of D:\wamp64\www\st-drupal8\html\core\lib\Drupal\Core\Url.php)

🐛 Bug report
Status

Needs work

Version

9.5

Component
Other 

Last updated about 2 hours ago

Created by

🇮🇳India gouthamraon

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024