Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Font Awesome plugin causes crash

Started by Andrew Bernard 6 years ago · 1 replies · 1105 views
6 years ago

Using grav v1.7.0-rc.11, adding the Font Awesome Embed or Markdown module crashes the site. Has this been observed by others? Here's the error:

Grav \ Plugin \ EmbedFontAwesomePlugin \ IconNotFoundError (404)
Icon not found: "solid/code.svg".

So, I have not installed any icons yet, but I would not have thought turning this on would crash.

I am using the default theme Quartz.

last edited 06/08/20 by Andrew Bernard
6 years ago

@andro, It seems throwing an exception is the default behaviour of Embed FontAwesome plugin.

You can change its behaviour by setting its configuration options. According the docs:

fail_behaviour ( hard / soft ): Behaviour when icon files are missing ( hard => throw an exception, soft => replace the icon with a question mark).

I think I would prefer the plugin to throw an exception ('hard') and show me immediately and clearely which svg is missing. A kind of fail early approach. When using the 'soft' approach a missing svg is easily overlooked unless every web page is checked carefully.

last edited 06/08/20 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago