• (First, I’ll just get it out of the way: No! There’s no blank spaces before, after, above, below, diagonally, etc!)

    I originally created my own theme from scratch on my local machine. Everything works fine locally.

    I recently had the development portion of my website completed, and I’ve uploaded the blog portion to the live server. I installed WordPress 3.2.1 on the server and everything works fine…UNTIL I upload my theme to the /wp-content/themes folder.

    I can view the blog’s index.php file okay…there are some issues, but I’ll deal with those in another post.

    Currently, after uploading my theme to the /themes folder, I cannot get into wp-admin. When I try, I receive the following error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/…/functions.php:8) in /home/…/pluggable.php on line 934

    This ONLY happens when I try to get into wp-admin.

    Any ideas? Again, there’s NO blank spaces in the files listed and wp-config.

    Thanks for any and all help.

Viewing 1 replies (of 1 total)
  • Thread Starter rgwhitaker

    (@rgwhitaker)

    Okay…my bad. There WERE blank spaces. Here’s what I did to resolve the issue:

    Originally, the code in question, based on the error message, looked like this:

    ?>

    <?php

    function mytheme_comment($comment, $args, $depth) {

    I took out ALL spaces and crammed it all together, so that it looked like this:

    ?>
    <?php
    function mytheme_comment($comment, $args, $depth) {

    And now I can log into wp-admin.

    Is WordPress on a server THAT finicky?! That’s ridiculous!!

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot modify header information’ is closed to new replies.