Font Awesome Manager

Font Awesome Manager 1.2.7

No permission to download
there are still some ARROWS not showing up.. I got our server tech guy to install the pyftsubset as described in the beginning of the thread.. but still they don't show up.
 
I have been following all instructions, all is well installed, also got help from our tech guy we hire for such jobs.. all is installed correct.

None the less, in SAFARI the ARROWS show up, in Chrome, IE, Firefox it's not working.
screen-arrows.webp
 
I've tried everything, but icons are still missing or otherwise broken. How can I get help?
  1. Set Log level to Debug and perform a rebuild
  2. Enable option Automatically add missing icons
  3. Visit a page that has missing/broken icons in an fresh browsing context (private tab, other browser, completely cleared site data, etc.)
  4. Continue browsing the forums for a few minutes
    This is necessary to trigger the execution of jobs if the site does have only a low amount of traffic (or no traffic at all).
    If this is the case you can simulate traffic by just visiting many different pages to trigger job execution.
    Alternatively it is also possible to run a rebuild job manually at his point.
  5. Recheck the page from step 3)
  6. Take a screenshot of the page that has missing icons and mark the area(s) where icons are missing/broken
  7. Disable the Add-on
  8. Revisit the page from step 3), take another screenshot and mark the area(s) where icons were missing/broken
  9. Take a screenshot showing all settings in Font Awesome
  10. Take a screnshot showing all style properties in Font Awesome
  11. Perform a manual rebuild and save the log to a textfile
  12. Start a conversation with me
    Your message must include the URL of the page from step 3), the screenshots as attachments (not embedded!) and the rebuild log.

    If you do provide multiple URLs for pages that have missing icons please include a table like this in your conversation message:
    URLFilename screenshot FAM disabledFilename screenshot FAM enabled
    thread-fam-disabled.pngthread-fam-enabled.png
    member-profile-fam-disabled.pngmember-profile-fam-enabled.png
    If the pages are not publically accesssible please also provide login details for an account that can access them.
 
@fionix, in the other topic I read that you have added these two icons to the Solid Icons section in Font Awesome Manager:
chevron-left
chevron-right


Can you verify this again?

Also, you mentioned that pyftsubset is installed on the server.
Did you also configure this in the add-on:
1646237434473.webp

Are you sure that path to pyftsubset is correct? You may have to verify this with your host.

If this is all correct, then try to rebuild the fonts by going to your ACP > Tools > Rebuild Caches > Rebuild Font Awesome subsets
You don't get any errors when you run this?
 
@Kirby I'm having ginormous issues with this mod. When trying to use transfonter.org I get this server error:

Code:
LogException: Font Awesome Subset Rebuild N/A:1
Generated by: Unknown account Mar 6, 2022 at 1:17 AM
Stack trace
Client error: `GET https://transfonter.org` resulted in a `403 Forbidden` response:
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr> (truncated...)
Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(69) "https://zoldos.net/admin.php?add-ons/Kirby-FontAwesomeManager/options"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(5) {
    ["only_ids"] => array(1) {
      [0] => string(4) "2497"
    }
    ["_xfRequestUri"] => string(51) "/admin.php?add-ons/Kirby-FontAwesomeManager/options"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}

GuzzleHttp\Exception\ClientException: Client error: `GET https://transfonter.org` resulted in a `403 Forbidden` response: <html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr> (truncated...) src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Generated by: Unknown account Mar 6, 2022 at 1:17 AM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 src/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('get', 'https://transfo...', Array)
#11 src/addons/Kirby/FontAwesomeManager/Processor/Transfonter.php(75): GuzzleHttp\Client->__call('get', Array)
#12 src/addons/Kirby/FontAwesomeManager/Processor/Transfonter.php(308): Kirby\FontAwesomeManager\Processor\Transfonter->getUserId()
#13 src/addons/Kirby/FontAwesomeManager/Helper.php(215): Kirby\FontAwesomeManager\Processor\Transfonter->createSubsets(Array, '/var/www/vhosts...', Array)
#14 src/addons/Kirby/FontAwesomeManager/Job/FontAwesome.php(806): Kirby\FontAwesomeManager\Helper->createSubsets(Array)
#15 src/addons/Kirby/FontAwesomeManager/Job/FontAwesome.php(133): Kirby\FontAwesomeManager\Job\FontAwesome->rebuildFontFiles(Array, Array)
#16 src/XF/Job/Manager.php(260): Kirby\FontAwesomeManager\Job\FontAwesome->run(8)
#17 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#18 src/XF/Job/Manager.php(118): XF\Job\Manager->runJobEntry(Array, 8)
#19 job.php(22): XF\Job\Manager->runByIds(Array, 8)
#20 {main}
Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(69) "https://zoldos.net/admin.php?add-ons/Kirby-FontAwesomeManager/options"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(5) {
    ["only_ids"] => array(1) {
      [0] => string(4) "2497"
    }
    ["_xfRequestUri"] => string(51) "/admin.php?add-ons/Kirby-FontAwesomeManager/options"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}

So I installed pyftsubset on my Ubunto 20.04 server via fontTools. I found the executable in usr/bin/ and entered this in the add-on's settings but it throws a base_dir error and "pyftsubset not configured correctly". I then copied the file to my site's root which is inside the base_dir. I got the same errors. I even tried the standalone download you offer and it doesn't work either.

Help please!
 
As pointed out several times, transfonter.org can't be used any longer as they are blocking the XenForo user agent.

If you get an erorr that pyftsubset is not configured correctly, this most certainly means that the path to the executable is not correct, that pyftsubset is not installed correctly or that the user running PHP does not have permission to execute it (at that location).

In Debian/Ubuntu systemsm the path to pyftsubset (if installed via apt) is usually /usr/bin/pyftsubset.
If it is located there (check via SSH) and you get an error about open_basedir you'll need to configure your PHP to allow access to this path or install pyftsubset in a python virtualenv in another directory within your open_basedir.
(If possible I'd try to avoid open_basedir altogether as it is bad for performance anyway).

I really can't help much except telling you that it needs to be configured correctly, though posting a screenshot of the options and the exact error(s) you are getting might help.
 
My bad, I didn't see that anywhere. But, good news, I got it working with pyftsubset as I had an error in my open base dir syntax.

So what exactly can I do with the mod now that it's working? It saves on bandwidth by locally hosting FA? What else does it do? Thanks!
 
It saves on bandwidth
Yes.

by locally hosting FA?
Not really, Font Awesome used in XenForo is "always" hosted and served locally.

What else does it do? Thanks!
Please read the Add-on description, if you still have questions afterwards ask specific questions so I can help to explain what is still unclear.

Why do you install an Add-on that you don't seem to understand what it does?
 
Last edited:
I used it without problem with PHP 8.0 and even now with PHP 8.1
 
Yes.


Not really, Font Awesome used in XenForo is "always" hosted and served locally.


Please read the Add-on description, if you still have questions afterwards ask specific questions so I can help to explain what is still unclear.

Why do you install an Add-on that you don't seem to understand what it does?
I thought I needed it to use another add-on. Turns out it is actually not compatible with said plugin so I removed it. Thanks anyway!
 
This is exactly what I was asking for, but unfortunately it us incomplete and missing the most important part.


Yes please, ideally as a text file attachment.
Please also carefully read the FAQ on error message Subset is too large to be processed and support for 3rd party Styles/Add-ons.

This is exactly what I was asking for, but unfortunately it us incomplete and missing the most important part.


Yes please, ideally as a text file attachment.
Please also carefully read the FAQ on error message Subset is too large to be processed and support for 3rd party Styles/Add-ons.

I am using Themehouse UI.X so I updated the list of ignored templates as per the FAQ and tried to upgrade the addon again. Error log results attached.
 

Attachments

Yeah, I guess I am already a bit tired - forget that part, it's wrong. Sorry.


You get that error when you go to admin.php?tools/rebuild and execute Rebuild Font Awesome subsets?
Hi @Kirby
Sorry for the late reply, but i executed the Rebuild Font Awesome subset, and tried installing 1.2.1 but still got the same error:
Code:
TypeError: Return value of Kirby\FontAwesomeManager\Helper::getCache() must be of the type array, null returned in src/addons/Kirby/FontAwesomeManager/Helper.php at line 77
Kirby\FontAwesomeManager\Helper->getCache() in src/addons/Kirby/FontAwesomeManager/Setup.php at line 105
Kirby\FontAwesomeManager\Setup->upgrade1020054Step1() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 124
Kirby\FontAwesomeManager\Setup->upgradeStepRunner() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 73
Kirby\FontAwesomeManager\Setup->upgrade() in src/XF/Admin/Controller/AddOn.php at line 597
XF\Admin\Controller\AddOn->actionUpgrade() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2351
XF\App->run() in src/XF.php at line 517
XF::runApp() in admin.php at line 13

Happy to provide you ACP access to my site if you would like to help resolve? Right now i cannot uninstall 1.2.0 RC2 or install the 1.2.1 version due to the issue.
 
I am using Themehouse UI.X so I updated the list of ignored templates as per the FAQ and tried to upgrade the addon again. Error log results attached.
The log does show two issues
  1. You've configured the Add-on to use Transfonter.org webservice.
    This won't work any longer as they are actively blocking the XenForio useragent - you will have ot use pyftsubset (or cheat around by temporaily changing the useragen, though that is discouraged)
  2. File addons/vw/vw/_core/model/fontawesome/five/vw.php seems to reference ~ 300 icons, that is a lot and you might want/have to exclude this file
    Please do not ask me what this file is being used for, I have no idea what it does nor where it des belong to - it's your setup :)
Happy to provide you ACP access to my site if you would like to help resolve? Right now i cannot uninstall 1.2.0 RC2 or install the 1.2.1 version due to the issue.
Feel free to start a conversation with me.
 
UI.x uses google's material icons, not FA, i thought?

Is there a way to 'hack' the Xf UA while running this process?

EDIT code removed, because reasons....


it's a total hack, but might work as a true hacky unethical workaround :)
 
Last edited:
UI.x uses google's material icons, not FA, i thought?
Depends on how it is configured - it can use Material Icons or FA.

Is there a way to 'hack' the Xf UA while running this process?
Yes. But it shouldn't be done so I am not going to implement this.
The proper solution for now (until a replacement for transfonter.org is found) is to use pyftsubset (which is superior anyway).

This should even be possible on many shared/managed hosts without ability to install pyftsubset on the server (though that would be preferred):
 
Last edited:
Back
Top Bottom