Problems with a new theme.
-
Making a new theme i have come across a few errors i cant seem to work out. I am in no way new to making themes for wordpress but i have never seen these errors before and im sure its juts something small i have forgot to do.
1: after i active the theme i get this error
“Warning: Cannot modify header information – headers already sent by (output started at /homepages/20/d159566430/htdocs/vastjobsinfo/pj/wp-content/themes/blusky/functions.php:12) in /homepages/20/d159566430/htdocs/vastjobsinfo/pj/wp-includes/functions.php on line 698Warning: Cannot modify header information – headers already sent by (output started at /homepages/20/d159566430/htdocs/vastjobsinfo/pj/wp-content/themes/blusky/functions.php:12) in /homepages/20/d159566430/htdocs/vastjobsinfo/pj/wp-includes/functions.php on line 699″
After looking on line 698 and 699 i see this code
setcookie( 'wp-settings-' . $user->ID, $settings, time() + 31536000, SITECOOKIEPATH ); setcookie( 'wp-settings-time-' . $user->ID, time(), time() + 31536000, SITECOOKIEPATH );
So what is causing this?
2: when i try to leave a comment i get this error
“Warning: Cannot modify header information – headers already sent by (output started at /homepages/20/d159566430/htdocs/vastjobsinfo/pj/wp-content/themes/blusky/functions.php:12) in /homepages/20/d159566430/htdocs/vastjobsinfo/pj/wp-includes/pluggable.php on line 850”And looking on line 850 i see this
header("Location: $location");
- The topic ‘Problems with a new theme.’ is closed to new replies.