Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End chriscoyer blank template uploading

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 32 total)
  • Author
    Posts
  • #41242
    realife
    Member

    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)

    #116593
    chrisburton
    Participant

    Well, what’s on line 881?

    #116594
    realife
    Member

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

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

    #116597
    __
    Participant

    > `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.

    #116604
    realife
    Member

    i’m not uploading the file, i’m uploading the all wordpress folder
    btw – this is the website: http://pierangelochifari.com/
    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

    #116605
    chrisburton
    Participant

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

    #116606
    realife
    Member

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

    #116607
    chrisburton
    Participant

    @realife Do you have WordPress in a subfolder?

    #116610
    realife
    Member

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

    #116612
    chrisburton
    Participant

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

    #116613
    realife
    Member

    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

    #116614
    chrisburton
    Participant

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

    #116617
    realife
    Member


    /**
    * 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 */
    require('./wp-blog-header.php');

    #116620
    chrisburton
    Participant

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

    So basically this:

    /** Loads the WordPress Environment and Template */
    require(‘wp-blog-header.php’);

    #116624
    realife
    Member

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

Viewing 15 posts - 1 through 15 (of 32 total)
  • The forum ‘Back End’ is closed to new topics and replies.