• Resolved alfarosebud

    (@alfarosebud)


    Hello Frank,

    since the last update autoptimize doesn′t work corrctly with my websites. They are all done with AIT-Themes and everything was fine – till the last update.

    I had to de-activate the “Optimize CSS-Code” option – otherwise all my pages look like this one:

    https://www.textilhersteller-weltweit.de

    Is this an issue of the plugin? Or is there something I could tell to AIT-THemes? It would be great to make the websites work again with all features which are offered by your wunderful plugin:)

    Kind regards and thanks for your advice

    Rose-Marie

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

    (@optimizingmatters)

    OK, can you try the following things one by one (undoing every change before trying the next):

    * exclude wp-content/uploads/cache/directory2/style-2.12.css from CSS optimization
    * exclude wp-content/uploads/cache/directory2/ from CSS optimization
    * disable CSS processing (or optimization or caching or whatever it’s called) in your theme if there is such an option
    * disable the speedupper (the new, faster optimization logic in 2.2.x) by adding this line to your (child) theme’s functions.php;
    add_filter('autoptimize_filter_speedupper','__return_false');

    based on the outcome of those we can decide what the next step could be.

    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    never mind all of the above, I digged in, copying cache/directory2/style-2.12.css and working with that. the fix is committed to github and is just a question-mark to add on one specific place actually.

    would be great if you could confirm by adding that question-mark;
    * open wp-content/plugins/autoptimize/classes/autoptimizeStyles.php
    * to to line 547
    * change that line from`
    $code = preg_replace( '#@import ("|\')(.+?)\.css.*("|\')#', '@import url("${2}.css")', $code );`
    into
    $code = preg_replace( '#@import ("|\')(.+?)\.css.*?("|\')#', '@import url("${2}.css")', $code );

    so the question-mark goes after \.css.*

    looking forward to your feedback! ??

    frank

    Thread Starter alfarosebud

    (@alfarosebud)

    Hello Frank,

    worked great – thank you very much!!

    Kind regards
    Rose-Marie

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    great, thanks for confirming @alfarosebud! this fix will be in AO 2.2.3 (eta somewhere in Q3).

    have a nice weekend ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems after last update’ is closed to new replies.