Title: Fatale Errors &#8211; must be a valid callback
Last modified: March 7, 2023

---

# Fatale Errors – must be a valid callback

 *  Resolved [hope13](https://wordpress.org/support/users/hope13/)
 * (@hope13)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatale-errors-must-be-a-valid-callback/)
 * Hi,
   I have since 30.01.2023 Fatale Errors. I do not understand what exactly triggers
   the error here and why. What is the reason? The latest looks like this:
 *     ```wp-block-code
       2023-02-04T00:04:26+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, cannot access protected method Relio\Integration\Autooptimize::excludeJavascript() in /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/class-wp-hook.php:310Stack trace:
   
       0 /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array)
   
       1 /www/htdocs/w0150ebd/goodvaporations.com/wp-content/plugins/autoptimize/classes/autoptimizeScripts.php(298): apply_filters('autoptimize_fil…', '', '…')
   
       2 /www/htdocs/w0150ebd/goodvaporations.com/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(577): autoptimizeScripts->read(Array)
   
       3 [internal function]: autoptimizeMain->end_buffering('…', 11)
   
       4 /www/htdocs/w0150ebd/goodvaporations.com/wp-content/plugins/sctv-sales-countdown-timer/includes/frontend/single-product-countdown.php(206): ob_get_clean()
   
       5 /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/class-wp-hook.php(308): VI_SCT_SALES_COUNTDOWN_TIMER_Frontend_Single_Product_Countdown->woocommerce_single_product_summary('')
   
       6 /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
   
       7 /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       8 /www/htdocs/w0150ebd/goodvaporations.com/wp-content/themes/greenmart/woocommerce/content-single-product.php(87): do_action('woocommerce_sin…')
   
       9 /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/template.php(785): require('/www/htdocs/w01…')
   
       10 /www/htdocs/w0150ebd/goodvaporations.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/www/htdocs/w01…', false)
   
       11 /www/htdocs/w0150ebd/goodvaporations.com/wp-content/themes/greenmart/woocommerce.php(92): wc_get_template_part('content', 'single-product')
   
       12 /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/template-loader.php(106): include('/www/htdocs/w01…')
   
       13 /www/htdocs/w0150ebd/goodvaporations.com/wp-blog-header.php(19): require_once('/www/htdocs/w01…')
   
       14 /www/htdocs/w0150ebd/goodvaporations.com/index.php(17): require('/www/htdocs/w01…')
   
       15 {main}
   
       thrown in /www/htdocs/w0150ebd/goodvaporations.com/wp-includes/class-wp-hook.php in Zeile 310
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatale-errors-must-be-a-valid-callback%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatale-errors-must-be-a-valid-callback/#post-16536707)
 * You have *something* (a plugin very likely) called or made by Relio which has
   integration code with Autoptimize to automatically exclude javascript and it 
   looks like they are failing in calling that logic (as `Relio\Integration\Autooptimize::
   excludeJavascript` is a protected method, they’ll have to change that to public
   likely).
 * Afraid you’ll have to try finding whatever plugin (or theme?) that is doing that
   and reach out to their support?
 * hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Fatale Errors – must be a valid callback’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/fatale-errors-must-be-a-valid-callback/#post-16536707)
 * Status: resolved