• Resolved ThemeHeap

    (@themeheap)


    Hi, We have installed autopotimze on our site but it is not working. if i switch the theme to twenty seventeen it works. What can be the issues and how can we debug this.

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

    (@optimizingmatters)

    OK, some questions;
    * did you have a look at the FAQ (which amongst other things lists conditions under which AO will bail)?
    * what theme are you trying with?
    * what does “not working mean”? does the HTML stay exactly the same with and without AO? or does the look&feel of the site break? or does some functionality (e.g. a slider/caroussel) break?
    * what settings did you try AO with?
    * do you see any relevant entries in the PHP errorlog?

    frank

    Thread Starter ThemeHeap

    (@themeheap)

    1.
    2. onfleek https://themeforest.net/item/onfleek-amp-ready-responsive-magazine-theme/16039200
    3. it is not aggerating js files and not compressing html the output html remains same before and after configuring
    4. I have enabled html css and js, now i have only enabled Js setting but also not working
    5. i have enabled error log not seeing any thing.
    our test site is https://stg28mar.wpengine.com/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    is “onfleek” your own theme (given “themeheap” you might be in the theme dev business)?

    Thread Starter ThemeHeap

    (@themeheap)

    No, this is not our theme.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    in that case; as AO works with twentyseventeen but does not work with onfleek I would create a ticket with the theme developer. you paid for the theme & support after all ??

    Thread Starter ThemeHeap

    (@themeheap)

    I have investigated it a bit, also in contact with support team. cache files are being generated but not invoked in page. what can be the causes if you can point me to some files of hooks so i can have a look and solve.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, that sounds like an output buffer conflict to me .. does onfleek use the output buffer?

    Thread Starter ThemeHeap

    (@themeheap)

    Which hook does it use to insert tags in html ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO hooks into template_redirect after which the output buffer is started which results in AO getting the fully rendered HTML which is then used to extract the CSS/ JS, removing original CSS/ JS, aggregating, minifying and caching the result (which seems to work as you have files in wp-content/cache/autoptimize), injecting links to the cached autoptimized files and finally returns the HTML.

    So if you have cached files in wp-content/cache/autoptimize but the HTML does not refer to those optimized files, then something must be breaking the output buffer …

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Autoptimze not working for our site’ is closed to new replies.