• Hi, i just updated fontsampler plugin. I have error note from wordpress say my website is experiencing technical issue:
    Error Details
    =============
    An error of type E_ERROR was caused in line 379 of the file /srv/htdocs/wp-content/plugins/fontsampler/FontsamplerHelpers.php. Error message: Uncaught Error: Class ‘Twig_SimpleFunction’ not found in /srv/htdocs/wp-content/plugins/fontsampler/FontsamplerHelpers.php:379
    Stack trace:
    #0 /srv/htdocs/wp-content/plugins/fontsampler/FontsamplerPlugin.php(179): FontsamplerHelpers->extend_twig(Object(Twig_Environment))
    #1 /srv/htdocs/wp-content/plugins/fontsampler/fontsampler.php(79): FontsamplerPlugin->init()
    #2 /wordpress/core/5.4.1/wp-includes/class-wp-hook.php(287): fontsampler_init(”)
    #3 /wordpress/core/5.4.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /wordpress/core/5.4.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /wordpress/core/5.4.1/wp-settings.php(540): do_action(‘init’)
    #6 /srv/htdocs/wp-config.php(82): require_once(‘/wordpress/core…’)
    #7 /wordpress/core/5.4.1/wp-load.php(42): require_once(‘/srv/htdocs/wp-…’)
    #8 /wordpress/core/5.4.1/wp-admin/admin-ajax.php(22): require_once(‘/wordpress/core…’)
    #9 {main}
    thrown

    Please help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author kontur

    (@kontur)

    Hey,

    it seems odd that the update would cause any conflict to do with this particular part of the code.

    If your site if completely unresponsive due to this error, you can first of all remove/move the “fontsampler” folder from the /wp-content/plugins folder to get the site running.

    Can you let me know what version of PHP your site is using before doing anything else beyond the above?

    Secondly I am wondering if this could be an issue with file permissions somehow. The error code above basically says a certain function cannot be found, but I can see the the latest version of the plugin definitely ships the file that contains that function (/wp-content/plugins/fontsampler/vendor/twig/twig/lib/Twig/SimpleFunction.php).

    Take a backup of the Fontsampler database tables (or better yet your entire site database) and try reinstalling the plugin fresh, or confirm with your host that the files of the plugin are readable to the webserver.

    Thread Starter hella66

    (@hella66)

    Hi, php version is 7.3.17. This error didnt stop website running completely.

    Plugin Author kontur

    (@kontur)

    Hey, thanks for that info. The PHP version seems no problem, and I’m glad to hear there was no bigger impact.

    So to understand right though, this error comes always when you visit/enable Fontsampler?

    I suspect there is some permission issue or something like that. One thing you could try (if you have FTP access to the site) is that you download Fontsampler 0.4.9 as zip and extract it on your computer. Then via FTP replace the extracted “vendors” folder from the zip to /wp-content/plugins/fontsampler/vendor – this will take a while because there is many unique files. Overwrite the files that are currently on the server.

    Let me know if that helps, please.

    If it does not, I think “re-installing” all of Fontsampler might be our best bet, but before that you should take a database backup.

    Plugin Author kontur

    (@kontur)

    Hey there,

    has any of the above suggestions resulted in positive progress? ??

    Best,
    J

    Thread Starter hella66

    (@hella66)

    hello, i havent done above steps as i dont know how to do with FTP. I need ask developer to do it. Will let you know if i had result. Thank you for support!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error wordpress’ is closed to new replies.