Critical Error on “Save & Optimize”
-
Hello, I get a fatal error on trying to use (Save & Optimize / Refresh Cache) the plugin recently. It used to work fine in the past.
Attached is the error message created by WordPress (sorry it’s German, if you need English please let me know)
This is solely affecting the backend (…/wp-admin/…), because of the error the local caching of the fonts is not happening and they get loaded from Google server
Thank you for any help, we love your plugin and would like to continue using it
——————————————
WordPress-Version 6.1.1
Aktives Theme: Flatsome 3.16.5
Aktuelles Plugin: OMGF (Version 5.5.2)
PHP-Version 8.0.27
Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 181 der Datei /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php verursacht. Fehlermeldung: Uncaught TypeError: ucfirst(): Argument #1 ($string) must be of type string, array given in /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php:181
Stack trace:
#0 [internal function]: ucfirst()
#1 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php(181): array_map()
#2 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php(143): OMGF_Optimize_Run->fluent_implode()
#3 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php(50): OMGF_Optimize_Run->optimization_succeeded()
#4 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/optimize/class-run.php(33): OMGF_Optimize_Run->run()
#5 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/admin/class-optimize.php(89): OMGF_Optimize_Run->__construct()
#6 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/admin/class-optimize.php(63): OMGF_Admin_Optimize->run()
#7 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/admin/class-optimize.php(39): OMGF_Admin_Optimize->init()
#8 /var/www/vhosts/****/httpdocs/wp-content/plugins/host-webfonts-local/includes/class-omgf.php(239): OMGF_Admin_Optimize->__construct()
#9 /var/www/vhosts/****/httpdocs/wp-includes/class-wp-hook.php(308): OMGF->do_optimize()
#10 /var/www/vhosts/****/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#11 /var/www/vhosts/****/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#12 /var/www/vhosts/****/httpdocs/wp-admin/admin.php(175): do_action()
#13 /var/www/vhosts/****/httpdocs/wp-admin/options-general.php(10): require_once(‘…’)
#14 {main}
thrown
- The topic ‘Critical Error on “Save & Optimize”’ is closed to new replies.