Support » Plugin: Autoptimize » Multisite?

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Morning Pat;
    It is multisite compatible, but there’s no network admin page.

    Kind regards,
    frank

    Hi,

    I got a problem on my multi-site. It works perfectly on the main site. The html looks well optimised.
    The settings are exactly the same on the 2. site, but the html is not optimised, neither the CSS.

    Main page: http://jobshubnct.org.au/
    2. page: http://jobshubnct.org.au/wollongbar/

    Any advice? That would be great. Thanks in advance

    Plugin Author Frank Goossens

    (@futtta)

    Hi Stoetzman;
    Did a quick test on my own multisite (my test-environment) and am relieved to be able to write that AO works on all sites (cfr. http://futtta.be/wordpress/, http://futtta.be/wordpress/hondenzorg and http://futtta.be/wordpress/normalcss/).

    So the question is; why doesn’t it work on your multisite. The weird thing is that on the 2nd site (wollongbar) there’s no indication what-so-ever that AO is active. Some questions that will hopefully help us identify the problem:
    * are you using the exact same theme & plugins on both sides?
    * are there other sites on the multisite (and if not, can you test with one)? do they get optimized?
    * is there any information in your phperror-logfile that could be helpful?

    frank

    Plugin Author Frank Goossens

    (@futtta)

    double post, damn that flaky mobile data connection on the train 😉

    Hi Frank,

    thanks for your reply. I forgot to tick the ‘follow-up’ box, so I didn’t get your message… silly me 😉

    Okay, back to the problem.
    – Yes, I’m using the same theme and plugins on all sides
    – and yes, there are other sides as well (8 altogether), but all of them using the same theme and plugins.
    – Re. phperror-logfile. is this the file in the root directory called ‘error_log’? If yes, there is nothing helpful in there either.

    Actually I had one plugin deactivated on all sub pages, the slider, but now it’s activated on all of them but AO still works only on the main page. From the top navigation ‘Campus’ you can visit all the sub pages. AO is activated now on all of them. It would be such a shame if I can’t use your plugin. It would be nice if you could have another look.

    Thanks again for your time.
    Regards
    Thomas (Stoetzman)

    I’ve just realised, the Cache Info shows on all sub sides as followed:

    Cache folder: /home/…./public_html/…./wp-content/cache/autoptimize/9/
    Can we write? Yes
    Cached styles and scripts: 0

    And here the main page:
    Cache folder: /home/…./public_html/…./wp-content/cache/autoptimize/1/
    Can we write? Yes
    Cached styles and scripts: 12

    funny, isn’t it…?

    Plugin Author Frank Goossens

    (@futtta)

    re: error-log; depends on your hoster’s configuration, really, but if the file you looked into has PHP-errors, -warnings and -notices, then yeah, that one.

    the cache info makes sense; your main site has cached styles & scripts because AO works, the other ones don’t because somehow AO does not get triggered. I can create a autoptimize.php with some debug code in it, if you’re interested? That way we would at least have the start of an idea of why AO isn’t autoptimizing your subsites?

    frank

    Hi Frank

    sorry for my very late reply but I was knocked out by a bl… virus.

    If you could create me an autoptimze.php file with debug code in it, that would be awesome. How do we do that?

    Thanks
    Stoetzman

    Plugin Author Frank Goossens

    (@futtta)

    OK, just whipped up a autoptimize.php with debug-output; https://gist.github.com/futtta/10373800354595e3f395

    Can you overwrite autoptimize.php (maybe first copy the original one to a backup-file, so you can easily roll back) with this content and see what that outputs on but the main and the sub-blogs?

    frank

    Hi Frank,

    Thanks for your help. Unfortunately it worked only on the main page. All other sub pages became unavailable (Content Encoding Error). Tried to refresh permalink but it didn’t work either.

    Here the output on main page:
    AO go: hooking to WP
    AO go: config done, switching to buffer
    AO go: all done
    AO go: going through classes

    I had to upload the original again. What a pity…

    Anyway, thanks again for all your efforts 🙂

    Thomas

    Plugin Author Frank Goossens

    (@futtta)

    well, that “content encoding error” is interesting in its own right … if the content is gzipped/ deflated, ao won’t see a thing and won’t be able to optimize. the debug-output would then be inserted in the gzipped/ deflated content, leading to the “content encoding error”.

    could you retry and
    * disable/ reenable your other plugins (esp. other performance-related plugins)?
    * toggle some settings on/off to see if you still have the content encoding error when HTML, CSS or JS optimalisation are off?

    frank

    Hi Frank,
    sorry it took me so long, but I had to create another sub page.

    I’ve tried all combinations, disabled and re-enabled different plugins – nothing. Unfortunately I can’t deactivate all the plugins. The site wouldn’t function anymore and I never know when and whether students are using the site or not. I might give it another go on the weekend.
    If you have any particular plugin in mind that could cause the problem, please let me know.
    Your plugin is activated on the main site and here at the moment.

    By the way, I tried once Better WP Minify. Works on the main page only and breaks all sub pages – so, even worse…
    Cheers

    Sorry, it is actually activated on all sites right now 🙂

    Plugin Author Frank Goossens

    (@futtta)

    If you have any particular plugin in mind that could cause the problem, please let me know.

    A page caching plugin or a plugin that does performance optimizations (something that gzips the content)?

    No, nothing like that is running but what about gzip stuff in my htaccess file? I also deactivated the heartbeat. Could that be it? I should have a look at those things again.

    Thanks

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Multisite?’ is closed to new replies.