Problem after adding function (1 post)

  1. kprensac
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic