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.
libraries_load() into fontawesome_page_attachments() is causing a warning:
'Warning: call_user_func() expects parameter 1 to be a valid callback, function '_drupal_add_css' not found or invalid function name in libraries_load_files() (line 735 of modules/contrib/libraries/libraries.module).'
I realized that that function can be replaced by libraries_detect() and module is still working and warning is avoided. (Other patch will be uploaded to libraries module, see related issues)
Patch is coming.
Comment | File | Size | Author |
---|---|---|---|
#2 | fontawesome_warning-2846786-1.patch | 842 bytes | CRZDEV |
Comments
Comment #2
CRZDEV CreditAttribution: CRZDEV at Metadrop commentedHere is the patch. Please test it, thanks!
Comment #3
CRZDEV CreditAttribution: CRZDEV at Metadrop commentedComment #4
merolhack CreditAttribution: merolhack as a volunteer commentedThe patch works like a charm, without it when i go to the admin page:
It shows me a message:
With the patch the Warning is going away!
Comment #5
freelockSeems to work fine -- and based on https://www.drupal.org/node/2702563#comment-11888375 and https://www.drupal.org/docs/7/modules/libraries-api/using-libraries-api-... , this is an appropriate fix.
Comment #7
freelock@CRZDEV looks like this is fixed with your commit? I see the patch is in the new release.
Comment #8
CRZDEV CreditAttribution: CRZDEV as a volunteer and at Metadrop commentedYeah, thanks to everyone!
Comment #9
inders CreditAttribution: inders as a volunteer and at Faichi Solutions Pvt Ltd commented