Title: Twig error
Last modified: July 13, 2020

---

# Twig error

 *  [mikeydiamonds](https://wordpress.org/support/users/mikeydiamonds/)
 * (@mikeydiamonds)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/twig-error-2/)
 * Hello, I’m having a bit of trouble activating the plugin on a bone stock WordPress
   install. FontSampler is the only plugin installed using the default twenty twenty
   theme, WordPress v5.4.2, PHP v7.4.8, Nginx v1.18.0.
 * When the plugin is active it crashes the site with the following error message:
 * `Fatal error: Uncaught Error: Class 'Twig_Loader_Filesystem' not found in /app/
   wp-content/plugins/fontsampler/fontsampler.php:56 Stack trace: #0 /app/wp-settings.
   php(371): include_once() #1 /app/wp-config.php(99): require_once('/app/wp-setting...')#
   2 /app/wp-load.php(37): require_once('/app/wp-config....') #3 /app/wp-blog-header.
   php(13): require_once('/app/wp-load.ph...') #4 /app/index.php(17): require('/
   app/wp-blog-he...') #5 {main} thrown in /app/wp-content/plugins/fontsampler/fontsampler.
   php on line 56`
 * I suspect this is related to the url proxying that this plugin deploys to protect
   the fonts.
 * I also discovered that with the plugin enabled the Gutenberg block editor fails
   to update any posts/pages?
    -  This topic was modified 5 years, 11 months ago by [mikeydiamonds](https://wordpress.org/support/users/mikeydiamonds/).
    -  This topic was modified 5 years, 11 months ago by [mikeydiamonds](https://wordpress.org/support/users/mikeydiamonds/).
    -  This topic was modified 5 years, 11 months ago by [mikeydiamonds](https://wordpress.org/support/users/mikeydiamonds/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [kontur](https://wordpress.org/support/users/kontur/)
 * (@kontur)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/twig-error-2/#post-13254983)
 * Hey there,
 * sorry for the late reply.
 * I will have to sanitize some of the plugin code for latest PHP 7.4.* versions…
   I think this could be related, but cannot currently test. The error message rather
   sounds like it is failing to locate some template engine files, which in turn
   breaks all sorts of things.
 * Did you install the plugin through the admin panel install, or by copying the
   files from the plugin page/zip to your server?
 * Best
    Johannes

Viewing 1 replies (of 1 total)

The topic ‘Twig error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fontsampler_e1c3c0.svg)
 * [Fontsampler](https://wordpress.org/plugins/fontsampler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fontsampler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fontsampler/)
 * [Active Topics](https://wordpress.org/support/plugin/fontsampler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fontsampler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fontsampler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [kontur](https://wordpress.org/support/users/kontur/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/twig-error-2/#post-13254983)
 * Status: not resolved