WordPress.org

Ready to get started?Download WordPress

Forums

Autoptimize
[resolved] Get this error when i optimize the CSS Code (45 posts)

  1. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    ok, could you open up <your site name>/settings/php.ini and in there look for the line that says

    output_buffering=4096

    and change that into
    output_buffering=off

    then restart apache and see if you can use Autoptimize that way?

  2. tokar86a
    Member
    Posted 1 year ago #

    I cannot restart apache. I dont have access to that. So what should i do then?

  3. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    hmm, guess you're on shared hosting? in that case you'll have to ask your hoster for assistance I'm afraid.

  4. tokar86a
    Member
    Posted 1 year ago #

    yes i am.

  5. tokar86a
    Member
    Posted 1 year ago #

    Hi

    I have get this error away now. But when i Optimize CSS Code my site lock weary strange on google chrome.

    The Sidebar and the header seams to get all wrong.

  6. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    great to hear the original problem is fixed. for my education: what change solved this, what did you (or your hoster) have to change to solve this output buffering problem?

    regarding the CSS-rendering problem: does that only occur in chrome? did you try in other browsers and did everything display ok in them? when logged out or while logged in?

  7. tokar86a
    Member
    Posted 1 year ago #

    I dont know how i fix it.

    Ni i get the problem in IE to. I was not logged on.

  8. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    In general similar problems are caused by javascript in the body of the page. Checking the option next to

    Look for scripts only in <head>?

    should solve such issues.

    Hope this helps,
    frank

  9. tokar86a
    Member
    Posted 1 year ago #

    But what should i do if i need to have the script there?

  10. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    check that option, this tells autoptimize to leave that JavaScript as is.

  11. tokar86a
    Member
    Posted 1 year ago #

    but i get this problem only when i click on the css.

  12. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    In that case you could try with "Look for scripts only in <head>" and/or "Look for styles on just <head>?" checked. They behave in a similar fashion by preventing autoptimize from changing inline (in-body) javascript and/or CSS.

  13. tokar86a
    Member
    Posted 1 year ago #

    still the same problem.

  14. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    Weird. In that case I can indeed only advise you to disable CSS optimization altogether. You'll still be able to enjoy JavaScript & HTML optimization, so not all is lost.

  15. tokar86a
    Member
    Posted 1 year ago #

    yes. But it is in the css files i need to optimize.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.