Give help. Get help.

  • # December 9, 2012 at 10:29 am

    Wordpress: Why when I’m using chris coyer blank template it’s working fine on localhost
    and after I’m trying to upload it i can’t login to the admin, i’m getting error:

    Warning: Cannot modify header information – headers already sent by (output started at …/functions.php:10) in …/wp-includes/pluggable.php on line 881

    (and when I’m deleteing functions.php i can login to the admin)

    # December 9, 2012 at 11:57 am

    Well, what’s on line 881?

    # December 9, 2012 at 12:05 pm

    header(“Location: $location”, true, $status);

    it’s probably calling the header twice…
    i never could upload chriscoyer blank template without this error

    # December 9, 2012 at 12:24 pm

    > `Warning: Cannot modify header information – headers already sent `…

    This means that output (HTML, another HTTP header, even just whitespace) has already been sent to the client, so it’s **too late** to send another header (the `Location` header, in this case).

    I’m a little confused by your second post. Are you getting this error when you’re trying to *upload* the file? If so, how exactly are you trying to upload it?

    …or, are you getting this error *after* you upload the file – when you’re trying to use it?

    In any case, you can fix the error by moving all output *after* the header call, or vice-versa. (This may or may not be easier said than done.) If you need more help, you’re going to have to provide the relevant code.

    # December 9, 2012 at 4:30 pm

    i’m not uploading the file, i’m uploading the all wordpress folder
    btw – this is the website:
    let me explain the steps i did:

    1. i did download the chriscoyer blank template
    2. i’ve built the website and styled it (so far it’s working fine on the localhost)
    3. i did upload all the wordpress folder and import all the database to the online
    4. now as you can see.. try to login to the wp-admin you’ll get this error

    now when i’m deleteing the functions.php i can login to the wp-admin
    so i’m not sure why is that hapenning, now i don’t have a special code in the functions.php, i just enabled the ‘featured image’ and the ‘custom menu’ in the function, that’s all

    please help if you know the answer

    # December 9, 2012 at 4:31 pm

    Did you update the database to match the new URL’s?

    # December 9, 2012 at 4:36 pm

    yes, i opened the sql file, and replaced all to the new URL (to the domain)

    # December 9, 2012 at 4:50 pm

    @realife Do you have WordPress in a subfolder?

    # December 9, 2012 at 4:55 pm

    no, it’s in the root of the domain directory

    # December 9, 2012 at 4:57 pm

    @realife Okay, do you have any plugins? Also, please post your index.php file

    # December 9, 2012 at 5:00 pm

    none, didn’t install nothing, just worked on my design
    index.php, header.php, page.php, single.php, footer.php, archive.php, 404.php, style.css

    # December 9, 2012 at 5:00 pm

    @realife Post your index.php file that is in your root, not from your theme.

    # December 9, 2012 at 5:10 pm

    < ?php
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    * @package WordPress

    * Tells WordPress to load the WordPress theme and output it.
    * @var bool

    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */

    # December 9, 2012 at 5:17 pm

    @realife Try removing the period and forward slash before `wp-blog-header.php

    So basically this:

    /** Loads the WordPress Environment and Template */

    # December 9, 2012 at 5:35 pm

    ok… still having that error when trying to login to the wp-admin

Viewing 15 posts - 1 through 15 (of 32 total)

You must be logged in to reply to this topic.