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.

CommentFileSizeAuthor
#2 fontawesome_warning-2846786-1.patch842 bytesCRZDEV
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

CRZDEV created an issue. See original summary.

CRZDEV’s picture

Here is the patch. Please test it, thanks!

CRZDEV’s picture

Status: Active » Needs review
merolhack’s picture

The patch works like a charm, without it when i go to the admin page:

/admin/config/content/formats

It shows me a message:

Please make sure that fontawesome was download & extracted at /libraries/fontawesome directory.Please check README.txt for more details.

With the patch the Warning is going away!

freelock’s picture

Status: Needs review » Reviewed & tested by the community

  • CRZDEV authored ccf95dc on 8.x-1.x
    Issue #2846786 by CRZDEV: Use libraries_detect() instead libraries_load...
freelock’s picture

Status: Reviewed & tested by the community » Fixed

@CRZDEV looks like this is fixed with your commit? I see the patch is in the new release.

CRZDEV’s picture

Yeah, thanks to everyone!

inders’s picture

Status: Fixed » Closed (fixed)