Title: Problem after adding function
Last modified: August 18, 2016

---

# Problem after adding function

 *  [kprensac](https://wordpress.org/support/users/kprensac/)
 * (@kprensac)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/problem-after-adding-function/)
 * I am trying to internationalize my theme with the gettext method (e.g. using 
   _e() and __() in theme files. ) Having done this, I added the following function
   as the first line to my function.php file: <?php load_theme_textdomain(‘new theme’);?
   >
 * This functions calls in the .mo files for outputting the other languages. So 
   far, so good. Everything is outputting fine.
 * Here is the problem I’m having. Everytime I create or edit a post in the admin
   module and hit “Save”, I get the following error message:
 * Warning: Cannot modify header information – headers already sent by (output started
   at C:\xampplite\htdocs\wordpress\wp-content\themes\new_theme\functions.php:3)
   in C:\xampplite\htdocs\wordpress\wp-includes\pluggable.php on line 390
 * FYI – functions.php:3 is the new function I inserted as described above.
 * Also, the “Save” works. The file is updated and the site works fine. However,
   I have tried to figure out why I am still getting this error message and what
   I need to do to fix it. Can anyone help? Thanks in advance.

The topic ‘Problem after adding function’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kprensac](https://wordpress.org/support/users/kprensac/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/problem-after-adding-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
