PHP Fatal error related to Minifier
-
Hi,
I’ve just tried installing and activating Super Optimizer for the first time, but I wasn’t able to turn on or off any of its options.
Here’s a few related lines I saw on my server’s error_log:
[27-Oct-2023 21:31:15 UTC] PHP Warning: Undefined variable $minifier in /home/macmagazine/public_html/wp-content/plugins/sg-cachepress/core/Minifier/Minifier.php on line 204 [27-Oct-2023 21:31:15 UTC] PHP Fatal error: Uncaught Error: Call to a member function minify() on null in /home/macmagazine/public_html/wp-content/plugins/sg-cachepress/core/Minifier/Minifier.php:204 Stack trace: #0 /home/macmagazine/public_html/wp-content/plugins/sg-cachepress/core/Minifier/Minifier.php(251): SiteGround_Optimizer\Minifier\Minifier->minify_scripts_lib('WOFF', '/home/macmagazi...', '/home/macmagazi...') #1 /home/macmagazine/public_html/wp-content/plugins/sg-cachepress/core/Minifier/Minifier.php(330): SiteGround_Optimizer\Minifier\Minifier->check_and_create_file('/home/macmagazi...', '/home/macmagazi...') #2 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(310): SiteGround_Optimizer\Minifier\Minifier->minify_styles('') #3 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #4 /home/macmagazine/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/macmagazine/public_html/wp-includes/functions.wp-styles.php(57): do_action('wp_print_styles') #6 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(310): wp_print_styles(false) #7 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #8 /home/macmagazine/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home/macmagazine/public_html/wp-includes/general-template.php(3053): do_action('wp_head') #10 /home/macmagazine/public_html/wp-content/themes/newsblock/header.php(17): wp_head() #11 /home/macmagazine/public_html/wp-includes/template.php(785): require_once('/home/macmagazi...') #12 /home/macmagazine/public_html/wp-includes/template.php(720): load_template('/home/macmagazi...', true, Array) #13 /home/macmagazine/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #14 /home/macmagazine/public_html/wp-content/plugins/canvas/page-templates/template-canvas-fullwidth.php(15): get_header() #15 /home/macmagazine/public_html/wp-includes/template-loader.php(106): include('/home/macmagazi...') #16 /home/macmagazine/public_html/wp-blog-header.php(19): require_once('/home/macmagazi...') #17 /home/macmagazine/public_html/index.php(17): require('/home/macmagazi...') #18 {main} thrown in /home/macmagazine/public_html/wp-content/plugins/sg-cachepress/core/Minifier/Minifier.php on line 204
Any ideas? Cheers!
- The topic ‘PHP Fatal error related to Minifier’ is closed to new replies.