Title: PHP warnings
Last modified: August 22, 2016

---

# PHP warnings

 *  [atomizer](https://wordpress.org/support/users/atomizer/)
 * (@atomizer)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-26/)
 *     ```
       [20-Feb-2015 13:55:02 UTC] PHP Notice:  Undefined variable: todo_styles in /home/dir/public_html/wp-content/plugins/bwp-minify/includes/class-bwp-minify.php on line 3120
       [20-Feb-2015 13:55:05 UTC] PHP Notice:  Undefined variable: todo_styles in /home/dir/public_html/wp-content/plugins/bwp-minify/includes/class-bwp-minify.php on line 3120
       [20-Feb-2015 13:55:08 UTC] PHP Notice:  Undefined variable: todo_styles in /home/dir/public_html/wp-content/plugins/bwp-minify/includes/class-bwp-minify.php on line 3120
       ```
   
 * [https://wordpress.org/plugins/bwp-minify/](https://wordpress.org/plugins/bwp-minify/)

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

 *  [Jamie O](https://wordpress.org/support/users/idealien/)
 * (@idealien)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-26/#post-5813977)
 * +1
 * Quick change from todo_styles to todo_style does resolve the immediate error.
   Have not done additional testing to confirm if that has larger impacts but seemed
   to resolve my error.
 *  Thread Starter [atomizer](https://wordpress.org/support/users/atomizer/)
 * (@atomizer)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-26/#post-5813982)
 * hi idealien
    did you make that change on line 3120 only?
 * line 3120…
 * `if ($todo_styles['depend'])`
 * changed to…
 * `if ($todo_style['depend'])`
 * if that’s what you did, it seems to make perfect sense to me when i look at the
   code, but i am no expert by any means
 * the original code…
 *     ```
       foreach ($todo as $handle)
       {
       	$style      = $wp_styles->registered[$handle];
       	$todo_style = $this->_init_todo_item($handle, 'style');
   
       	if (empty($style->src))
       	{
       		if ($todo_styles['depend'])
       			$this->todo_styles[$handle] = $todo_style;
   
       		continue;
       	}
       ```
   
 * that resolved my error also

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

The topic ‘PHP warnings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-minify.svg)
 * [Better WordPress Minify](https://wordpress.org/plugins/bwp-minify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-minify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-minify/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [atomizer](https://wordpress.org/support/users/atomizer/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-26/#post-5813982)
 * Status: not resolved