• Hi,
    In Chrome console I am getting the error Uncaught ReferenceError: php_data is not defined
    at autoptimize_07478c6646be8783b9ecf21cd72b7bfe.js:91 where the large number is different for each page or post.

    The site is currently running on PHP version 5.6.

    Any help appreciated.
    Ian.

    • This topic was modified 7 years, 3 months ago by bashwust.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hey @bashwust
    * what are your JS autoptimize settings?
    * can you share your URL?

    Thread Starter bashwust

    (@bashwust)

    Hi Thanks for your reply.
    I have just unselected all the settings and the problem has gone. I will now redo all of the settings and get back to you. I don’t own the site and so sharing the URL might be a problem at the moment.

    Cheers

    Thread Starter bashwust

    (@bashwust)

    Hi I have just the “optimize CSS” checked but after looking at the source code the CSS has not been aggregated.

    The site URL is https://www.dev.propertyinvestmentsuk.co.uk/

    Thanks for any help you can give.

    • This reply was modified 7 years, 3 months ago by bashwust. Reason: typo
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    guess you fixed in the mean time @bashwust, I had a quick look and do see;

    <link type="text/css" media="all" href="https://www.dev.propertyinvestmentsuk.co.uk/wp-content/cache/autoptimize/autoptimize_bab3760699af7b7bb6103d9a54d6a203.php" rel="stylesheet" />

    ??

    Thread Starter bashwust

    (@bashwust)

    Thanks for the reply but it seems like the CSS is broken now. This is a great plugin and I used it on other sites just seem to be getting errors this time.

    Thread Starter bashwust

    (@bashwust)

    I have seen the issue listed in the FAQ and will give that a try later. Can you tell which file it is I am edit and where please?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    not entirely sure what part of the FAQ you’re referring to, but if you mean where those “code snippets” should be added then your easiest and safest bet is using the code snippets plugin (the less safe alternative being your child theme’s functions.php).

    Thread Starter bashwust

    (@bashwust)

    I was thinking it was this:
    add_filter(‘autoptimize_filter_speedupper’,’__return_false’);

    from : My Autoptimized CSS/ JS is broken after upgrading from 2.1 to 2.2!

    Even though I haven’t upgraded I just came in at 2.2

    Thanks for the support.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, the code snippets plugin is your friend.

    but how is your CSS broken? do you get a “white page of death”, or an entirely unstyled page, or a partially unstyled page? and have you tried excluding one or more CSS files from optimization?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Getting error php_data is not defined’ is closed to new replies.