Missing thin.min.css (404)

Created on 5 April 2022, over 2 years ago
Updated 1 August 2023, over 1 year ago

Problem/Motivation

After module is enabled and files are downloaded to "/libraries/fontawesome", 404 error is produced on page requests because of the missing library files (thin.min.css / thin.min.js).
Files are missing because the FREE version of library being downloaded does not include them (PRO version is required).

Proposed resolution

To avoid this issue I have removed the reference to the non existing library files (see patch).

Additional configuration could be added so user can select if FREE/PRO version is used and load the appropriate library files.

🐛 Bug report
Status

Closed: works as designed

Version

2.22

Component

Code

Created by

🇸🇮Slovenia borutpiletic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany Tomefa Dresden

    Patch file attached for people that use fontawesome 5 with latest drupal/fontawesome version.

  • 🇫🇷France GaëlG Lille, France

    I'm wondering if Thin is available in fontawesome-free. It looks like it's only in Pro (https://fontawesome.com/plans).

    So there's a problem when you upgrade from a previous version of fontawesome module which did not have the use_thin_file config parameter. An upgrade path may be missing.

    The problem is not only with Thin but also with other styles. Anyway, I could get rid of the problem like this:

    drush cset fontawesome.settings use_thin_file 0
    drush cset fontawesome.settings use_sharpregular_file 0
    drush cset fontawesome.settings use_sharplight_file 0
    drush cset fontawesome.settings use_sharpsolid_file 0
    drush cset fontawesome.settings use_custom_file 0
    
Production build 0.71.5 2024