Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
use Drupal\Component\Utility\String as String was not used any where in printable.module file. So I deleted the line use Drupal\Component\Utility\String. below is the patch.
Comment | File | Size | Author |
---|---|---|---|
#2 | printable.module-patch-issue-id-2854769.patch | 397 bytes | FlutterStack |
Comments
Comment #2
FlutterStack CreditAttribution: FlutterStack as a volunteer and at Azri Solutions commentedComment #3
singularoThis patch resolved a fatal error. Might be PHP7 specific
[Sat Jun 17 10:41:35.471570 2017] [:error] [pid 40] [client 172.20.0.2:35940] PHP Fatal error: Cannot use Drupal\\Component\\Utility\\String as String because 'String' is a special class name in /code/web/modules/contrib/printable/printable.module on line 8
Comment #4
step21 CreditAttribution: step21 as a volunteer commentedWould you also have to change the places where String is used to Html?
Comment #5
Nigel CunninghamApplied in commit 3aaadc452106456c99e006b41ee59b6590315b80.
Thanks!
Comment #6
Nigel Cunningham