Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Problem/Motivation
PHP 8.1, Drupal 9.3.2 returns
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in _fontawesome_unparse_url() (line 160 of modules/contrib/fontawesome/fontawesome.module).
Comment | File | Size | Author |
---|---|---|---|
#4 | strlen_null_deprecation-3258575-4.patch | 1.1 KB | daniel.moberly |
Issue fork fontawesome-3258575
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
Comment #3
vladimirausComment #4
daniel.moberly CreditAttribution: daniel.moberly commentedI think this is significantly simplified by just changing the parse function as attached
Comment #5
j-barnes CreditAttribution: j-barnes as a volunteer commented@daniel.moberly
Tested and confirmed working. I think changing the parse function is definitely the way to go.
Comment #6
j-barnes CreditAttribution: j-barnes as a volunteer commentedComment #8
daniel.moberly CreditAttribution: daniel.moberly commentedThanks! Committed.
Comment #9
vladimirausW00t! That was quick!
Thanks everyone!
Comment #11
willabby CreditAttribution: willabby commentedI encountered this issue when i updated, but i think it was related to:
https://www.drupal.org/project/drupal/issues/3267535