WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Login problem after move from localhost to site (2 posts)

  1. Arioman
    Member
    Posted 1 year ago #

    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

  2. Arioman
    Member
    Posted 1 year ago #

    ok i solve the problem ...

    i find in my template folder : function.php

    and i see some codes like this :

    <?php
    some code;
    ?>
    
    <?php
    some other codes;
    ?>

    i just remove the secound <?php ?> and put all codes in one <?php ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.