• Hi – I just installed a new theme a few days ago and played around with a few of the files (adding adsense codde) and I think this may have screwed up the login procedure.

    My usual login route is this: https://www.modernhood.com/wp-admin/
    But it just comes up with the following error message:

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-includes/pluggable.php on line 865

    So I tried this route: https://www.modernhood.com/wp-login.php
    The following error message appears at the top of the screen above the login boxes:

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-login.php on line 290

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-login.php on line 302

    But when I login the following error message show up and nothing else:

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-login.php on line 290

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-login.php on line 302

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-includes/pluggable.php on line 662

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-includes/pluggable.php on line 663

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-includes/pluggable.php on line 664

    Warning: Cannot modify header information – headers already sent by (output started at /home1/modernh6/public_html/wp-content/themes/carrington-text/functions/sidebars.php:36) in /home1/modernh6/public_html/wp-includes/pluggable.php on line 865

    Is there another way to login? I haven’t set up an FTP server yet so I’ve got no way of editing files to even attempt to fix the problem.

    Help! Cheers,
    Tom

Viewing 7 replies - 1 through 7 (of 7 total)
  • Ok you need to access wp-content/themes/carrington-text/functions/sidebars.php How did you upload the files if you don’t have FTP? Who is your webhost and can you access your files via the web?

    Is working now.

    Please share how you solved the problem. My problem is exactly the same, only the files are wp-login.php and pluggables.php.

    Nothing i try seems to work!

    Hi,

    It is usually due to spaces, new lines, or other garbage at opening/closing PHP file <?php tag or after a closing ?> tag in wp-config.php. It can be other file too so need to check error message as it may list file name where the error occurred.

    One can either upload error file from the backup or edit erroneous file. To edit the file one need to check below mentioned points:

    1. Download the file mentioned in the error message.
    2. Open that file in a plain text editor
    3. Check that the very first characters are <?php
    4. Check that the very last characters are ?>
    5. Place the cursor between the ? and >
    6. Now press the DELETE key on your computer and keep that key pressed for at least 15 seconds.
    7. Now type > and
    8. Save without pressing any other key at all.

    That’s it!

    Thanks,

    Shane G.

    leyton

    (@leyton)

    yes i have the same problem
    Warning: Cannot modify header information – headers already sent by (output started at /home/leyton/public_html/renegadehomebusinessguide.com/wp-content/plugins/wordpress-blog-stat/stat.php:37) in /home/leyton/public_html/renegadehomebusinessguide.com/wp-login.php on line 302

    Warning: Cannot modify header information – headers already sent by (output started at /home/leyton/public_html/renegadehomebusinessguide.com/wp-content/plugins/wordpress-blog-stat/stat.php:37) in /home/leyton/public_html/renegadehomebusinessguide.com/wp-login.php on line 314

    Warning: Cannot modify header information – headers already sent by (output started at /home/leyton/public_html/renegadehomebusinessguide.com/wp-content/plugins/wordpress-blog-stat/stat.php:37) in /home/leyton/public_html/renegadehomebusinessguide.com/wp-includes/pluggable.php on line 665

    Warning: Cannot modify header information – headers already sent by (output started at /home/leyton/public_html/renegadehomebusinessguide.com/wp-content/plugins/wordpress-blog-stat/stat.php:37) in /home/leyton/public_html/renegadehomebusinessguide.com/wp-includes/pluggable.php on line 666

    Warning: Cannot modify header information – headers already sent by (output started at /home/leyton/public_html/renegadehomebusinessguide.com/wp-content/plugins/wordpress-blog-stat/stat.php:37) in /home/leyton/public_html/renegadehomebusinessguide.com/wp-includes/pluggable.php on line 667

    Warning: Cannot modify header information – headers already sent by (output started at /home/leyton/public_html/renegadehomebusinessguide.com/wp-content/plugins/wordpress-blog-stat/stat.php:37) in /home/leyton/public_html/renegadehomebusinessguide.com/wp-includes/pluggable.php on line 868

    But i don’t know how to fix can not log in and can not see in my file zilla where to look help i have hostagator but can not see there too

    Warning: Cannot modify header information – headers already sent by (output started at C:\HostingSpaces\maxximas\expertsglobal.com\wwwroot\test\wp-config.php:1) in C:\HostingSpaces\maxximas\expertsglobal.com\wwwroot\test\wp-login.php on line 302

    Warning: Cannot modify header information – headers already sent by (output started at C:\HostingSpaces\maxximas\expertsglobal.com\wwwroot\test\wp-config.php:1) in C:\HostingSpaces\maxximas\expertsglobal.com\wwwroot\test\wp-login.php on line 314

    I tried what Shane G has suggested. There aren’t any spaces. Nothing happened.

    Can modernhood or tomontoast suggest what to do?

    You can check the site here. https://www.expertsglobal/test/wp-login.php

    Moderator James Huff

    (@macmanx)

    The space (either a single space or entire line) is on line 1 of the wp-config.php file. See this for more info:

    https://codex.www.ads-software.com/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

    Alternatively, you could download WordPress again and use the included wp-config-sample.php file to replace your wp-config.php file. Don’t forget to fill in your database info and rename the file.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t login through wp-admin or wp-login’ is closed to new replies.