Title: Polylang: Cannot modify header information (class.wp-styles.php:225)
Last modified: May 28, 2018

---

# Polylang: Cannot modify header information (class.wp-styles.php:225)

 *  [kamstob](https://wordpress.org/support/users/kamstob/)
 * (@kamstob)
 * [8 years ago](https://wordpress.org/support/topic/cannot-modify-header-information-class-wp-styles-php225/)
 * Hello WordPress Developers,
 * I’m not able to fix a problem with Polylang plugin.
    After activation Polylang
   plugin I receive an error:
 * > Warning: Cannot modify header information – headers already sent by (output
   > started at C:\xampp\htdocs\my-project\wp-includes\class.wp-styles.php:225) 
   > in C:\xampp\htdocs\my-theme\wp-includes\pluggable.php on line 1216
 * I have checked my theme in terms of empty lines at the very end of php files (
   including wp-config.php), but no results. Morover, I have tested previous versions
   of polylang but still not working.
 * Would you mind any ideas how to fix it or at least are you able to recommend 
   a nice free plugin to translate wordpress site (Custom Post Type translations
   are required)?
 * My WordPress version is: 4.9.6
    Installed plugins: Akisment, Hello Dolly, CF7
   and… Polylang PHP Ver: 7.1.8
 * Thank you for your help!
    -  This topic was modified 8 years ago by [kamstob](https://wordpress.org/support/users/kamstob/).
    -  This topic was modified 8 years ago by [kamstob](https://wordpress.org/support/users/kamstob/).
    -  This topic was modified 8 years ago by [kamstob](https://wordpress.org/support/users/kamstob/).

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

 *  [codestylist](https://wordpress.org/support/users/codestylist/)
 * (@codestylist)
 * [8 years ago](https://wordpress.org/support/topic/cannot-modify-header-information-class-wp-styles-php225/#post-10332186)
 * Switch to a standard theme, like Twenteseventeen, and check again.
    If the error
   disapears, you have to debug your theme. By the way, to make CF7 compatible with
   Polylang you need an extra plugin (search for CF7 and Polylang in the plugin 
   repository).
 *  Thread Starter [kamstob](https://wordpress.org/support/users/kamstob/)
 * (@kamstob)
 * [8 years ago](https://wordpress.org/support/topic/cannot-modify-header-information-class-wp-styles-php225/#post-10332300)
 * I’ve uninstalled CF7 and still not working.
    When I change theme to Twentyseventeen,
   plugin works OK, but well… I’m not very glad with this solution. I’m checking
   my theme and still looking for…
 *  [codestylist](https://wordpress.org/support/users/codestylist/)
 * (@codestylist)
 * [8 years ago](https://wordpress.org/support/topic/cannot-modify-header-information-class-wp-styles-php225/#post-10333007)
 * You can only find the solution within your theme. There is something wrong. Not
   with Polylang.

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

The topic ‘Polylang: Cannot modify header information (class.wp-styles.php:225)’
is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [codestylist](https://wordpress.org/support/users/codestylist/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/cannot-modify-header-information-class-wp-styles-php225/#post-10333007)
 * Status: not resolved