Title: PHP 7.2 Warning
Last modified: December 4, 2018

---

# PHP 7.2 Warning

 *  [feedarmy](https://wordpress.org/support/users/feedarmy/)
 * (@feedarmy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-warning-4/)
 * I upgraded to PHP 7.2 and get the following warning.
 * `wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1197\n',`

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-7-2-warning-4/#post-11016334)
 * What is the error? Looks like it was removed by the editor here.
 *  Thread Starter [feedarmy](https://wordpress.org/support/users/feedarmy/)
 * (@feedarmy)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-7-2-warning-4/#post-11022710)
 * The error is : AH01071: Got error ‘PHP message: PHP Warning: Cannot modify header
   information – headers already sent by (output started at /var/www/vhosts/…/nav-
   desktop.php:1) in /var/www/vhosts/…/kb/wp-content/plugins/wp-super-cache/wp-cache-
   phase2.php on line 1197\n’
 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-7-2-warning-4/#post-11051656)
 * It seems similar issue as [“WP Super Cache and PHP 7?”](https://wordpress.org/support/topic/wp-super-cache-and-php-7/).
   It isn’t related to WPSC plugin and it could be an issue with other plugins (
   sitemaps,feeds for example).
 * It’s most likely that file _nav-desktop.php_ is saved with [a Byte order mark (BOM)](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8)
   or contains empty space before an opening `<?php` tag.
 * More details – [ How do I solve the Headers already sent warning problem](https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F).

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

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

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

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Saša](https://wordpress.org/support/users/stodorovic/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/php-7-2-warning-4/#post-11051656)
 * Status: not resolved