• Resolved lucfox

    (@lucfox)


    Hi guys, in different wordpress installations where I use your plugin I’m having problems with the new version. Some sites go into error 500, others do not work with css or js compression.

    I state that no other cache and compression system is installed. With the same settings, the old version works perfectly (it’s a bomb).

    I had to restore my site backups for them to work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    So you’re back at 2.5.1 now I presume? Can you check your php errorlogs for relevant info (esp. for the 50x errors)?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    additional tip; disabling AO either in the admin menu OR renaming the wp-content/plguins/autoptimize folder through (s)ftp/ cpanel would allow you not to have to restore a backup.

    Thread Starter lucfox

    (@lucfox)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Ah, that’s actually a bug in smart cookiekit which breaks the output buffer AO uses:

    2019-12-26 17:25:37.169827 [NOTICE] [3095812] [95.233.135.251:58904-Q:0846CC939E9CC6BC-7] [STDERR] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SmartCookieKit\NMOD_SmartCookieKit_Frontend::exclude_min_resources_autoptimize(), 1 passed in /home/campzoo/domains/campingzoo.it/public_html/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/campzoo/domains/campingzoo.it/public_html/wp-content/plugins/smart-cookie-kit/plugin_frontend.php:524

    No idea why this would only happen on AO 26, I’ll test to see if I can work around that somehow.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, my bad; the crash is because SCK depends on a 2nd parameter available in an AO filter which was not there any more. I added a workaround which will be in AO 2.6.1, you can download the zip-file from Github if you want to test. SCK’s developer is also working on this on his side.

    @lucfox a filter in Autoptimize has been upset so every plugin that used that filter has going to fail.
    The filter in Autoptimize has changed in terms of definition (from 2 parameters accepted, it has changed to 1) and in terms of logic.

    that’s actually a bug in smart cookiekit which breaks the output buffer AO uses

    Let’s say that the problem was NOT a bug in Smart Cookie Kit.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Let’s say that the problem was NOT a bug in Smart Cookie Kit.

    in hindsight I cannot but agree; it’s a change in AO’s filter that caused this. my apologies for the inconvenience, 2.6.1 will work around this by adding a 2nd parameter again (albeit an empty one)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    2.6.1 was released re-adding a 3rd param. to the filter, so those ugly crashes/ non-optimized pages should not happen any more. kudo’s to shark986 for working on this on his side as well!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘error 500 or not work with new autoptimize’ is closed to new replies.