Font Awesome Manager

Font Awesome Manager 1.2.7

No permission to download

Silmarillion

Active member
I once again encountered a problem using Russ' BOLT style:

Code:
    ErrorException: [E_WARNING] preg_match_all() expects parameter 2 to be string, array given src/addons/Kirby/FontAwesomeManager/Helper.php:327

    Generiert von: xxxxxx 20 Oktober 2022 um 13:37

Stack-Trace

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] pre...', '/homepages/33/d...', 327, Array)
#1 src/addons/Kirby/FontAwesomeManager/Helper.php(327): preg_match_all('#(fa-[a-z0-9][a...', Array, NULL)
#2 src/addons/Kirby/FontAwesomeManager/Listener.php(225): Kirby\FontAwesomeManager\Helper::getMatches(Object(XF\Entity\StyleProperty), Array)
#3 [internal function]: Kirby\FontAwesomeManager\Listener::Kirby\FontAwesomeManager\{closure}(Object(XF\Entity\StyleProperty))
#4 src/XF/Extension.php(50): call_user_func_array(Object(Closure), Array)
#5 src/XF.php(930): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\Style...')
#6 src/XF/Mvc/Entity/Entity.php(1272): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\Style...')
#7 src/XF/Repository/StyleProperty.php(258): XF\Mvc\Entity\Entity->save()
#8 src/XF/Admin/Controller/Style.php(312): XF\Repository\StyleProperty->updatePropertyValues(Object(XF\Entity\Style), Array, Array)
#9 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Style->actionStylePropertiesGroup(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Style', 'StyleProperties...', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Style), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Style), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#14 src/XF.php(488): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}

Code:
Status der Anfrage

array(4) {
  ["url"] => string(83) "/admin.php?styles/bolt-parent-do-not-edit.30/style-properties/group&group=headerNav"
  ["referrer"] => string(106) "https://www.fanlager.de/admin.php?styles/bolt-parent-do-not-edit.30/style-properties/group&group=headerNav"
  ["_GET"] => array(2) {
    ["styles/bolt-parent-do-not-edit_30/style-properties/group"] => string(0) ""
    ["group"] => string(9) "headerNav"
  }
  ["_POST"] => array(5) {
    ["json"] => string(5115) "{"properties_listed":["xbTopBar","publicHeaderAdjustColor","xbLogoPosition","xbLogoResponsive","xbSearchLocation","xbVisitorTabsLocation","xbStretchNav","xbNavigationIcons","xbNavSelectedStyle","publicNavPaddingV","publicNavPaddingH","xbStickyStaff","publicNavSticky","publicNavCollapseWidth","xbAccountText","xbDisableSubnav","publicSubNavPaddingV","publicSubNavPaddingH","xbTopBarStyle","publicHeader","xbHeaderInner","publicNav","publicNavTab","publicNavSelected","publicNavTabHover","publicNavTabMenuOpen","publicSubNav","publicSubNavElHover","publicSubNavElMenuOpen","xbSearchCSS","publicStaffBar"],"properties":{"publicHeaderAdjustColor":"fade(@xf-paletteNeutral3, 15%)","xbLogoPosition":"insidenav","xbSearchLocation":"default","xbVisitorTabsLocation":"default","xbStretchNav":"stretchboth","xbNavigationIcons":"above","xbNavSelectedStyle":"default","publicNavPaddingV":"14px","publicNavPaddingH":"20px","publicNavSticky":"primary","publicNavCollapseWidth":"@xf-responsiveMedium","xbAccountText":"","xbDisableSubnav":"1","publicSubNavPaddingV":"6px","publicSubNavPaddingH":"8px","xbTopBarStyle":{"font-size":"","color":"@xf-paletteColor2","font-weight":"","background-color":"#b2002a","background-image":"","border-width":"","border-color":"","border-top-width":"","border-top-color":"","border-right-width":"","border-right-color":"","border-bottom-width":"","border-bottom-color":"","border-left-width":"","border-left-color":"","padding":"","padding-top":"","padding-right":"","padding-bottom":"","padding-left":"","extra":""},"publicHeader":{"font-size":"","color":"@xf-paletteColor2","font-weight":"","background-color":"#f5f5f5","background-image":"","extra":"background-repeat: repeat-x;"},"xbHeaderInner":{"font-size":"","color":"","font-weight":"","background-color":"","background-image":"","border-width":"","border-color":"","border-top-width":"","border-top-color":"","border-right-width":"","border-right-color":"","border-bottom-width":"","border-bottom-color":"","border-left-width":"","border-left-color":"","padding":"","padding-top":"","padding-right":"","padding-bottom":"","padding-left":"","extra":""},"publicNav":{"font-size":"","color":"#000000","font-weight":"","background-color":"#ffffff","background-image":"","extra":""},"publicNavTab":{"font-size":"","color":"@xf-chromeTextColor","font-weight":"","text-decoration":"none","background-color":"","background-image":"","extra":""},"publicNavSelected":{"font-size":"","color":"#b2002a","font-weight":"@xf-fontWeightHeavy","background-color":"#ffffff","background-image":"","border-width":"","border-color":"","border-radius":"","border-top-width":"","border-top-color":"","border-top-left-radius":"@xf-borderRadiusSmall","border-right-width":"","border-right-color":"","border-top-right-radius":"@xf-borderRadiusSmall","border-bottom-width":"","border-bottom-color":"","border-bottom-right-radius":"","border-left-width":"","border-left-color":"","border-bottom-left-radius":"","extra":""},"publicNavTabHover":{"font-size":"","color":"","font-weight":"","text-decoration":"none","background-color":"fade(@xf-publicNavTab--color, 6%)","background-image":"","extra":""},"publicNavTabMenuOpen":{"font-size":"","color":"@xf-paletteColor1","font-weight":"","text-decoration":"none","background-color":"fade(@xf-paletteColor3, 50%)","background-image":"","extra":""},"publicSubNav":{"font-size":"@xf-fontSizeSmall","color":"@xf-publicNavSelected--color","font-weight":"","background-color":"#b2002a","background-image":"","border-width":"","border-color":"","border-top-width":"","border-top-color":"","border-right-width":"","border-right-color":"","border-bottom-width":"@xf-borderSize","border-bottom-color":"xf-intensify(@xf-publicSubNav--background-color, 10%)","border-left-width":"","border-left-color":"","extra":"padding: 5px 0px;"},"publicSubNavElHover":{"font-size":"","color":"xf-intensify(@xf-publicSubNav--color, 20%)","font-weight":"","extra":""},"publicSubNavElMenuOpen":{"font-size":"","color":"contrast(@xf-publicSubNavElMenuOpen--background-color)","font-weight":"","text-decoration":"none","background-color":"fade(@xf-paletteColor3, 65%)","background-image":"","extra":""},"xbSearchCSS":{"font-size":"","color":"#A4B5F6","font-weight":"","background-color":"rgba(0, 0, 0, 0)","background-image":"","border-width":"0px","border-color":"","border-top-width":"","border-top-color":"","border-right-width":"","border-right-color":"","border-bottom-width":"1px","border-bottom-color":"xf-diminish(@xf-publicHeader--background-color, 15%)","border-left-width":"","border-left-color":"","extra":"width: 280px;\r\nborder-radius: 0;"},"publicStaffBar":{"font-size":"@xf-fontSizeSmall","color":"contrast(@xf-publicStaffBar--background-color)","font-weight":"","background-color":"@xf-paletteColor5","background-image":"","border-width":"","border-color":"","border-top-width":"","border-top-color":"","border-right-width":"","border-right-color":"","border-bottom-width":"@xf-borderSize","border-bottom-color":"xf-intensify(@xf-publicStaffBar--background-color, 4%)","border-left-width":"","border-left-color":"","extra":""}}}"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(83) "/admin.php?styles/bolt-parent-do-not-edit.30/style-properties/group&group=headerNav"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

This happens, for example, when I want to change the background color.

Best regards,
Chris
 

Kirby

Well-known member
Please triple check that you are using the latest version (1.2.3.1) as the error message hints that you are using version 1.2.0 Beta 5 (which was never released publically).
 
Last edited:

Silmarillion

Active member
Hello Kirby! :) Thank you for your quick reply. Yes, that's right, I'm still using an ancient beta version, but it works perfectly. ;)
I am currently using XF 2.2.3. Is the latest FA version compatible with it? And is there anything I should/must watch out for when upgrading?

Best regards,
Chris
 

Kirby

Well-known member
I'm still using an ancient beta version, but it works perfectly.
It doesn't.

I am currently using XF 2.2.3. Is the latest FA version compatible with it?
The latest FA version is 6.2.0, this version is not compatible with XF 2.2.3 (or any other XenForo version); only the FA version that is shipped with XF is guaranteed to work.

And is there anything I should/must watch out for when upgrading?
1 2.0 Beta 5 is really ancient, so I am not fully sure if an upgrade would work flawlessly.
It might be better to note down your settings (options and style properties), uninstall and install 1.2.3.1
 
Last edited:

Blatchy

Well-known member
error message:

public/styles/fonts/fa//fa-solid-900-man.woff2): Failed to open stream: No such file or directory src/addons/Kirby/FontAwesomeManager/Job/FontAwesome.php:820
Generated by: Unknown account Oct 31, 2022 at 1:51 AM

It looks like it has the wrong path
 

Kirby

Well-known member
@Blatchy
Sorry for the delay :(

The log seems fine to me, can you check if /home/nginx/domains/domain.com/public/styles/fonts/fa/fa-solid-900-man.woff2 does exist and is read & writable by the user running PHP?
 

Blatchy

Well-known member
@Blatchy
Sorry for the delay :(

The log seems fine to me, can you check if /home/nginx/domains/domain.com/public/styles/fonts/fa/fa-solid-900-man.woff2 does exist and is read & writable by the user running PHP?
I will check later today.

I disabled and then renabled and haven’t seen the error since.

Will let you know if I see anything out of the ordinary.
 

Tracy Perry

Well-known member
I had to remove the add-on as there were a few icons that were not being imported, even with specifically listing them. Disable the add-on and those icons displayed correctly. They were ones that were specified in EXTRA.less.
 

Silmarillion

Active member
Hello @Kirby,

I finally uninstalled the beta and installed the latest version. Neither "Transfonter.org" nor "pyftsubset" was selected under "Processor". Still, everything seemed to work. Under the BETA I had selected Transfonter. Should I do it again and keep it that way?

Best regards,
Silmarillion
 

Silmarillion

Active member
Thanks for the quick response @Kirby. I had already selected Transfonter and couldn't deactivate it, so I had to uninstall and reinstall the addon again. The problem now is that various icons are not displayed again. https://www.fanlager.de .
"Rebuild" and repeated installation have so far brought no success. what do you suggest?

Best regards,
Silmarillion
 
Top