Title: Getting error php_data is not defined
Last modified: August 15, 2017

---

# Getting error php_data is not defined

 *  [bashwust](https://wordpress.org/support/users/bashwust/)
 * (@bashwust)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/)
 * 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 8 years, 9 months ago by [bashwust](https://wordpress.org/support/users/bashwust/).

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9413212)
 * hey [@bashwust](https://wordpress.org/support/users/bashwust/)
    * what are your
   JS autoptimize settings? * can you share your URL?
 *  Thread Starter [bashwust](https://wordpress.org/support/users/bashwust/)
 * (@bashwust)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9417481)
 * 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](https://wordpress.org/support/users/bashwust/)
 * (@bashwust)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9418179)
 * 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/](https://www.dev.propertyinvestmentsuk.co.uk/)
 * Thanks for any help you can give.
    -  This reply was modified 8 years, 9 months ago by [bashwust](https://wordpress.org/support/users/bashwust/).
      Reason: typo
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9418958)
 * guess you fixed in the mean time [@bashwust](https://wordpress.org/support/users/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](https://wordpress.org/support/users/bashwust/)
 * (@bashwust)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9421407)
 * 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](https://wordpress.org/support/users/bashwust/)
 * (@bashwust)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9421428)
 * 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](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9422422)
 * 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](https://wordpress.org/plugins/code-snippets) (the 
   less safe alternative being your child theme’s functions.php).
 *  Thread Starter [bashwust](https://wordpress.org/support/users/bashwust/)
 * (@bashwust)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9422580)
 * 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](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9422930)
 * OK, the [code snippets plugin](https://wordpress.org/plugins/code-snippets) 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.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/gettin-error-php_data-is-not-defined/#post-9422930)
 * Status: not resolved