Title: It’s not compatible with Autoptimize
Last modified: December 26, 2019

---

# It’s not compatible with Autoptimize

 *  Resolved anonymized-17631918
 * (@anonymized-17631918)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/hello-developers-2/)
 * Hello,
 * i hope some developers here. I really like this Plugin. The Autoblock function
   is very nice and that the page dont reload after accept is nicer.
 * But looks like the devs dont support this Plugin.
 * This Version is not compatible with new Autoptimize 2.6.0 version.
 *     ```
       2019/12/26 01:37:42 [error] 6578#6578: *37827 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function SmartCookieKit\NMOD_SmartCookieKit_Frontend::exclude_min_resources_autoptimize(), 1 passed in /var/www/xxxxx/docs/wordpress/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /var/www/xxxxx/docs/wordpress/wp-content/plugins/smart-cookie-kit/plugin_frontend.php:524
       Stack trace:
       #0 /var/www/xxxxx/docs/wordpress/wp-includes/class-wp-hook.php(288): SmartCookieKit\NMOD_SmartCookieKit_Frontend->exclude_min_resources_autoptimize(true)
       #1 /var/www/xxxxx/docs/wordpress/wp-includes/plugin.php(206): WP_Hook->apply_filters(true, Array)
       #2 /var/www/xxxxx/docs/wordpress/wp-content/plugins/autoptimize/classes/autoptimizeScripts.php(98): apply_filters('autoptimize_fil...', true)
       #3 /var/www/xxxxx/docs/wordpress/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(496): autoptimizeScripts->read(Ar" while reading response header from upstream, client: xxxxx, server: xxxxx.de, request: "GET /404-2/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.3-xxxxx.sock:", host: "xxxxx.de", referrer: "https://xxxxx.de/"
   
       2019/12/26 01:38:57 [error] 6578#6578: *37847 FastCGI sent in stderr: "PHP message: PHP Warning:  ob_end_flush(): Could not call the sapi_header_callback in /var/www/xxxxx/docs/wordpress/wp-includes/functions.php on line 4552" while reading response header from upstream, client: xxxxx, server: xxxxx.de, request: "GET /?ao_speedup_cachebuster=26530 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.3-xxxxx.sock:", host: "xxxxx.de", referrer: "https://xxxxx.de/?ao_speedup_cachebuster=26530"
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Nicola Modugno](https://wordpress.org/support/users/shark986/)
 * (@shark986)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/hello-developers-2/#post-12273565)
 * Hello @tkwpweb,
 * I don’t know the reason, but they changed their code and the filter used to tell
   their plugin to ignore SCK script has been upset!!
 * It has now a different definition and it seems that it is changed even in terms
   of logic. I have disabled that filter in this moment and will re-test their whole
   plugin.
 * Could you check if v. 2.2.3 of SCK works fine?
 * I have seen your messages and their replies and I will answer there, too.
 * Thankyou for your bug report.
 * Nicola.
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/hello-developers-2/#post-12273580)
 * I just looked into this as well and confirm this is due to a change in a filter
   on my side, 2.6.1 will contain a workaround to avoid the ugly breakeage, the 
   fix is already in [the github version which can be downloaded here](https://github.com/futtta/autoptimize/archive/beta.zip).
 * sorry for the inconvenience!
    frank

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘It’s not compatible with Autoptimize’ is closed to new replies.

 * ![](https://ps.w.org/smart-cookie-kit/assets/icon-128x128.png?rev=1306201)
 * [Smart Cookie Kit](https://wordpress.org/plugins/smart-cookie-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-cookie-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-cookie-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-cookie-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-cookie-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-cookie-kit/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/hello-developers-2/#post-12273580)
 * Status: resolved