• 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?

Viewing 1 replies (of 1 total)
  • Plugin Author kontur

    (@kontur)

    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.