Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 39350

Arioman on "Login problem after move from localhost to site"

$
0
0

hi , i move my site from localhost to my website ...
the site works well in showing post and plugins but when i try to enter admin panel with "wp-admin" these two errors show on the top of page :

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/wp-content/themes/7khatds/functions.php:29) in /home/*/public_html/wp-login.php on line 368

the code in line 368 is : header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/wp-content/themes/7khatds/functions.php:29) in /home/*/public_html/wp-login.php on line 380

the code in line 380 is : setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);

and when i input my user and pass and try to login these error lines added too :

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/wp-content/themes/7khatds/functions.php:29) in /home/*/public_html/wp-includes/pluggable.php on line 680

the code in line 680 : `setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
`

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/wp-content/themes/7khatds/functions.php:29) in /home/*/public_html/wp-includes/pluggable.php on line 681

the code in 681 :setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);

Warning: Cannot modify header information - headers already sent by (output started at /home/**/themes/7khatds/functions.php:29) in /home/*/public_html/wp-includes/pluggable.php on line 682

the code in 682 : setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true);

Warning: Cannot modify header information - headers already sent by (output started at /home/**/themes/7khatds/functions.php:29) in /home/*/public_html/wp-includes/pluggable.php on line 876

the code in line 876 : header("Location: $location", true, $status);

and in Internet explorer the wp-admin link not load and only this error apear :

Warning: Cannot modify header information - headers already sent by (output started at /home/**/functions.php:29) in /home/**/public_html/wp-includes/pluggable.php on line 876

any idea why this happend ? please help me


Viewing all articles
Browse latest Browse all 39350

Trending Articles