Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in rename_admin_paths_url_outbound_alter() (line 82 of rename_admin_paths.module).

Drupal 7.94, PHP8.1.13

Any one able to help with this please?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Frosty29 created an issue. See original summary.

frosty29’s picture

By casting second parameter to (string) for all preg_match calls in rename_admin_paths.module, I have supressed the messages.

drupalprojects’s picture

StatusFileSize
new1.85 KB

Patch added

drupalprojects’s picture

Status: Active » Needs review
frosty29’s picture

I have not patched this in mysefl but identical to my own changes that have been working for some time.

Tech-Tonic’s picture

All module features working and no debug error with patch at #3, many thanks.

Drupal 7.94
PHP 8.1.14

Raphael Apard made their first commit to this issue’s fork.

  • Raphael Apard committed b5bf9aa9 on 7.x-2.x
    Issue #3327832 by drupalprojects, Raphael Apard, Frosty29, Tech-Tonic...

raphael apard’s picture

Status: Needs review » Fixed

Thanks for your work

raphael apard’s picture

Status: Fixed » Closed (fixed)