WordPress.org

Forums

[resolved] [closed] Can't log into wp/admin (34 posts)

  1. Hal
    Member
    Posted 1 year ago #

    I can't log into wp-admin. Here's the error message: Warning: Cannot modify header information - headers already sent by (output started at /home/content/42/12781042/html/wp-content/themes/megahost/inc/extra-codes/extra-functions.php:119) in /home/content/42/12781042/html/wp-login.php on line 414.

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/42/12781042/html/wp-content/themes/megahost/inc/extra-codes/extra-functions.php:119) in /home/content/42/12781042/html/wp-includes/pluggable.php on line 883

    I've read the thread here but none seems to help. Can someone help? Thanks.

  2. James Huff
    Volunteer Moderator
    Posted 1 year ago #

    Try manually resetting your plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

  3. Hal
    Member
    Posted 1 year ago #

    Thanks MacManX. I'm going to try that.

  4. James Huff
    Volunteer Moderator
    Posted 1 year ago #

    You're welcome!

  5. Hal
    Member
    Posted 1 year ago #

    James,

    It's me again. I followed the link to manually reset plugins and renamed the plugins folder to plugins.hold then I tried to log into wp-admin and this is the error I get:

    Fatal error: Call to undefined function of_get_option() in /home/content/42/12781042/html/wp-content/themes/megahost/functions.php on line 194

    Then I renamed the folder to its old name. And it brought me back to where I started.

  6. Hal
    Member
    Posted 1 year ago #

    James, here's something I have noticed on my site. Please bear with me because I'm not highly technical, so I try to be descriptive.

    The whole web site works as a whole, except a set of internal links that I had created. I do believe that they refer to a script that is not properly referenced (???). I had just copied a table codes from another one of my friend's sites who was helping me understand how to do something. I copied the codes into a page.

    On The two pages where I had the tables - each of those links gives me the following error when I click on them:

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/42/12781042/html/wp-content/themes/megahost/inc/extra-codes/extra-functions.php:119) in /home/content/42/12781042/html/wp-includes/pluggable.php on line 1121

    The problem now is I don't know how to go in there and either delete or review since I can't log into wp-admin.

    Sorry this is quite long but I guess I am sharing whatever happened leading to these troubles. Hopefully you can help me or someone can point me to the right direction.

    Thanks for your patience.

  7. James Huff
    Volunteer Moderator
    Posted 1 year ago #

    Ok, so it wasn't the plugins. Now, try the second thing I suggested. ;)

  8. technicaldk
    Member
    Posted 1 year ago #

    Hello Hal,

    It's wrong with the file extra-functions.php in your theme 'megahost'
    Did you make some change in that file - adding filter, hooks, action or?

    Sometimes it can also be a blank line in the file, which produces a result of a header already sent error.

    [sig moderated; see http://codex.wordpress.org/Forum_Welcome#Signatures }

  9. Hal
    Member
    Posted 1 year ago #

    Thanks technicaldk. I do not recall touching the extra-functions.php file. I actually have already cleared all the whitespaces from that file, but no change. I am going to try MacManX (James') second idea and see what it gives me. Thanks all for the ideas.

  10. Evan Herman
    Member
    Posted 1 year ago #

    You probably have white space at the beginning or end of your functions or extra-functions.php file.

    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

  11. James Huff
    Volunteer Moderator
    Posted 1 year ago #

    Or rather on line 119 of /wp-content/themes/megahost/inc/extra-codes/extra-functions.php

    See the "Interpreting the Error Message" section there.

  12. Hal
    Member
    Posted 1 year ago #

    Hi MacManX (James),

    I renamed the theme folder, and suddenly I can log into the wp-admin. WOW! Thanks. Now, can you tell me what to do next? Is there anything I need to look at and / or fix? Is this folder going to stay like that with the new name? What do you think caused the problem and how can I fix it?

    Thanks again for your assistance.

  13. James Huff
    Volunteer Moderator
    Posted 1 year ago #

    Yep, take a look at the guide Evan linked to above. The problem is on line 119 of /wp-content/themes/megahost/inc/extra-codes/extra-functions.php

  14. Hal
    Member
    Posted 1 year ago #

    Okay. I will do that. Right now, when I go to a browser try to go to the web site, I am starring at a blank page. Is this what you would have expected? Meanwhile, I am going to look at Evan's recommendation. I did take a look at that file, at line 119, but I am not I even see what is wrong there. Like I said, I am not technical.

    Here's what line 119 looks like:

    echo '<style>'.$style.'</style>';

    And here's the lines around it:

    117
    118 if(of_get_option('general_skin_color_ch')){
    119 echo '<style>'.$style.'</style>';
    120 }
    121 $style = '';
    122

    I already removed the whitespaces at the top and at the bottom of the page. Lines 117 & 122 are blank. Must I remove those whitespaces as well?

    I apologize again for being detailed. I am learning and am trying to understand clearly.

    Thanks again.

  15. Hal
    Member
    Posted 1 year ago #

    Everyone, everything seems to work now. I renamed the theme fold back to its original name and both the dashboard and the site are up and running. Thanks everyone for your patience and input.

  16. James Huff
    Volunteer Moderator
    Posted 1 year ago #

    Perfect, I'm glad you found a solution. :)

  17. Meng.lim
    Member
    Posted 1 year ago #

    I need help and got a similar problem but different message and still can't login for a month and no user or password change but this message comes up under wp-login.php as my header:

    Warning: Cannot modify header information - headers already sent by (output started at /home/hopemelbourne/www.hopemelbourne.org/waverley/wp-config.php:2) in /home/hopemelbourne/www.hopemelbourne.org/waverley/wp-login.php on line 414

    Warning: Cannot modify header information - headers already sent by (output started at /home/hopemelbourne/www.hopemelbourne.org/waverley/wp-config.php:2) in /home/hopemelbourne/www.hopemelbourne.org/waverley/wp-login.php on line 426

    Can anyone help me please?

  18. James Huff
    Volunteer Moderator
    Posted 1 year ago #

  19. voidmstr
    Member
    Posted 1 year ago #

    Here's a new one. I am building a site for a client, updating an existing WP site.

    The client has 7 domains hosted @ GoDaddy (don't blame me) and after 4 days of tech support phone calls, all the domains now point to the one URL we are going to use.

    I uploaded a static index.html page to the home dir to hide things while I work on the site.

    The static index.html page didn't work at first because it was not in the "proper" home directory out of the 7 possible home dirs. Several phone calls later, we fixed that issue
    Now the static file appears properly. http://thedrivebyeconomist.com

    BUT the WP console, to which at first I could not login, says this

    Warning: fileperms() [function.fileperms]: stat failed for /home/content/47/11142147/html/thedrive-byeconomist/index.php in /home/content/47/11142147/html/thedrive-byeconomist/wp-admin/includes/file.php on line 912

    Has anyone seen that before? What is the issue?

    GoDaddy just told me "WordPress is very complicated -- we don't know everything."

    The error message refers to the specific home dir with the index.html file that loads instead of index.php, and is the home dir and URL that the original site was using.

  20. James Huff
    Volunteer Moderator
    Posted 1 year ago #

    No, that's not a new one, that's a very different one.

    Please open your own thread: http://wordpress.org/support/forum/how-to-and-troubleshooting#postform

  21. nikolicivan892
    Member
    Posted 1 year ago #

    "This webpage has a redirect loop"
    Always getting this problem.
    Tryed clearing cookies manually and with ccleaner.
    Defragment,Avast,Malwarebytes...Everything
    Tried different browsers and all but nothing solved my problem please help

  22. James Huff
    Volunteer Moderator
    Posted 1 year ago #

  23. Thomas Mathew
    Member
    Posted 11 months ago #

    I had a similar problem this morning and was looking around for help. Finallylanded on this page and saw response from "MacManX (James Huff). And I saw some explanation on WordPress.Org, under the Trouble Shooting. Based on theswe two I could rectify the problem. In my case the problem was this:
    <?php
    some code;
    ?>

    <?php
    some other codes;
    ?>

    The problem is solved when I removed the lines from ?> till <?php in the middle, so that there is only one block of code. My knowledge of php is an absulute zero.

    Thank God, I am relieved.

  24. James Huff
    Volunteer Moderator
    Posted 11 months ago #

    You're welcome, I'm glad it helped! :)

  25. lsanabria
    Member
    Posted 11 months ago #

    Good morning, I can not access my account on WordPress and I know you do to get into the account because I actializar my WebSite. Just load the page with URL lasalette.edu.co but when clicking on any link the URL becomes lasaletteschool.edu.co and obscures information. As I said before do not have to do with the start of session myself. Could help me solve this problem.

  26. James Huff
    Volunteer Moderator
    Posted 11 months ago #

    lsanabria, please open your own thread about this: https://wordpress.org/support/forum/how-to-and-troubleshooting#postform

  27. lsanabria
    Member
    Posted 11 months ago #

    MacManX (James Huff)Please tell me step by step it's my first interaction with WordPress.

  28. James Huff
    Volunteer Moderator
    Posted 11 months ago #

    Click https://wordpress.org/support/forum/how-to-and-troubleshooting#postform and in you don't see a for titled "New Topic in this Forum," scroll down until you see it. :)

  29. Jack Anderson
    Member
    Posted 11 months ago #

    Hello MacManX(James Huff)...

    Can you please help me, actually problem is that i am working on a website and a huge video (about size 173MB) need to be upload at WordPress website through admin, and i am unable to upload file not more than 10MB there...

    So can you please tell me how can i able to upload more than 10MB size file on my website.

  30. James Huff
    Volunteer Moderator
    Posted 11 months ago #

    I can help, but you'll need to open your own thread, as that is a completely separate issue: http://wordpress.org/support/forum/how-to-and-troubleshooting#postform

Topic Closed

This topic has been closed to new replies.

About this Topic