Title: PHP Notice: Undefined variable: header
Last modified: December 2, 2018

---

# PHP Notice: Undefined variable: header

 *  Resolved [WEBHAUS](https://wordpress.org/support/users/webhaus/)
 * (@webhaus)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-header/)
 * Hello,
 * Started to get this error on my website:
 * [02-Dec-2018 21:39:44 UTC] PHP Notice: Undefined variable: header in /var/www/
   clients/client43/web71/web/wp-content/plugins/fast-velocity-minify/fvm.php on
   line 2093
 * PHP Version: 7.2.5
    WordPress Version: 4.9.8 W3 Total Cache installed
 * Since I don’t want to go into deeper inspection, I added a quick fix, right before
   line 2093:
 *     ```
       # register and enqueue minified file, consider excluding of mediatype "print" and inline css
       		$header[$i]['media'] = isset($header) && isset($header[$i]) && isset($header[$i]['media']) ? $header[$i]['media'] : '';
       ```
   
 * Please investigate this error further. Thanks!

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

 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-header/#post-10939969)
 * That one has been fixed on 2.4.3, thanks for reporting!
 *  Thread Starter [WEBHAUS](https://wordpress.org/support/users/webhaus/)
 * (@webhaus)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-header/#post-10943506)
 * Wow! I’ve never seen that someone would solve bugs this fast for WordPress plugins.
   Usually it takes weeks for others. Thank you for the hard work you do! 🙂

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

The topic ‘PHP Notice: Undefined variable: header’ is closed to new replies.

 * ![](https://ps.w.org/fast-velocity-minify/assets/icon-128x128.jpg?rev=1440946)
 * [Fast Velocity Minify](https://wordpress.org/plugins/fast-velocity-minify/)
 * [Support Threads](https://wordpress.org/support/plugin/fast-velocity-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/fast-velocity-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fast-velocity-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fast-velocity-minify/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WEBHAUS](https://wordpress.org/support/users/webhaus/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/php-notice-undefined-variable-header/#post-10943506)
 * Status: resolved