Title: PHP Warning
Last modified: November 18, 2020

---

# PHP Warning

 *  Resolved [WeePee](https://wordpress.org/support/users/weepee/)
 * (@weepee)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-warning-263/)
 * Hi!
 *  I get this PHP warning in my debug.log all the time:
 * `PHP Warning: Cannot modify header information - headers already sent in /var/
   www/coaching_test/wp-content/advanced-cache.php on line 218`
 * This is the code that causes it:
 *     ```
       217 function hyper_cache_header($value) {
       218     header('X-Hyper-Cache: ' . $value, false);
       219 }
       ```
   
 * My PHP version: PHP 7.2.24-0ubuntu0.18.04.7

Viewing 1 replies (of 1 total)

 *  [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [5 years ago](https://wordpress.org/support/topic/php-warning-263/#post-14375224)
 * Hi there,
 * You can try to fix yourself while waiting for the author to respond or do the
   updates.
 * Before:
 *     ```
       function hyper_cache_header($value) {
            header('X-Hyper-Cache: ' . $value, false);
        }
       ```
   
 * After:
 *     ```
       function hyper_cache_header($value) {
           if (!headers_sent()) {
               header('X-Hyper-Cache: ' . $value, false);
           }
       }
       ```
   
 * File: wp-content/plugins/hyper-cache/advanced-cache.php
    Line: 217
 * On the hyper cache panel, click save to overwrite the wp-content/advanced-cache.
   php file.
 * Hope this will help.
 * Thanks.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/hyper-cache/assets/icon-256x256.png?rev=3452725)
 * [Hyper Cache](https://wordpress.org/plugins/hyper-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hyper-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hyper-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/hyper-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hyper-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hyper-cache/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-warning-263/#post-14375224)
 * Status: resolved