- This topic is empty.
-
AuthorPosts
-
December 9, 2012 at 10:29 am #41242realifeMember
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 #116593chrisburtonParticipantWell, what’s on line 881?
December 9, 2012 at 12:05 pm #116594realifeMemberheader(“Location: $location”, true, $status);
it’s probably calling the header twice…
i never could upload chriscoyer blank template without this errorDecember 9, 2012 at 12:24 pm #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.
December 9, 2012 at 4:30 pm #116604realifeMemberi’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 errornow 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 allplease help if you know the answer
December 9, 2012 at 4:31 pm #116605chrisburtonParticipantDid you update the database to match the new URL’s?
December 9, 2012 at 4:36 pm #116606realifeMemberyes, i opened the sql file, and replaced all to the new URL (to the domain)
December 9, 2012 at 4:50 pm #116607chrisburtonParticipant@realife Do you have WordPress in a subfolder?
December 9, 2012 at 4:55 pm #116610realifeMemberno, it’s in the root of the domain directory
December 9, 2012 at 4:57 pm #116612chrisburtonParticipant@realife Okay, do you have any plugins? Also, please post your index.php file
December 9, 2012 at 5:00 pm #116613realifeMembernone, didn’t install nothing, just worked on my design
index.php, header.php, page.php, single.php, footer.php, archive.php, 404.php, style.cssDecember 9, 2012 at 5:00 pm #116614chrisburtonParticipant@realife Post your index.php file that is in your root, not from your theme.
December 9, 2012 at 5:10 pm #116617realifeMember
/**
* 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');
December 9, 2012 at 5:17 pm #116620chrisburtonParticipant@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’);December 9, 2012 at 5:35 pm #116624realifeMemberok… still having that error when trying to login to the wp-admin
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.