• I upgraded to 3.0 and at the same time I moved my WordPress layout for public_html/test to the main page area so it is not the one that shows up when you go to the web site, ‘ lacrossebaptist.org ‘. The page opens and I can see the site, but I can’t log in as the administrator to do any editing. I’m not sure if the problem is with the upgrade or the move from one place to another on Bluehost. When I do long on all I get is seven warnings about ‘Cannot modify header information’. Also, on the home page the photo is gone but it was there earlier this afternoon, even after both changes. Any ideas?

Viewing 15 replies - 1 through 15 (of 25 total)
  • Moderator James Huff

    (@macmanx)

    When I do long on all I get is seven warnings about ‘Cannot modify header information’.

    You have unexpected whitespace (either a space or an entire line) at the specific line in the specific file that the error references. See this for more info:

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

    Thread Starter donloftus

    (@donloftus)

    Macmanx, thanks for responding. One of the problems I was having before I upgraded and moved the pages was that the side bars on the right side of the home page showed up at the bottom of the page but at the top of the page on all other pages. The sidebars on the left side were OK on all pages. I don’t know if there is additional white space or lines, it was a question I was going to post, but this came up first. At this point I can’t get to the editor to chance any code. As for Safari, I’m using version 4.0.5 and now WordPress 3.0

    Moderator James Huff

    (@macmanx)

    The two issues are probably not related.

    You’ll have to use an FTP or SFTP client to access the specific file and a plain text editor to edit it.

    Thread Starter donloftus

    (@donloftus)

    I downloaded Cyberduck and have TextEdit open, but I can’t seem to download the file that is listed in the warning. Here it is what shows up on the WordPress longin page:
    Warning: Header may not contain more than a single header, new line detected. in /home1/lacross3/public_html/wp-login.php on line 349

    Warning: Cannot modify header information – headers already sent by (output started at /home1/lacross3/public_html/wp-login.php:349) in /home1/lacross3/public_html/wp-login.php on line 351

    how do I download the file using Cyberduck? When I try I get an I/O Connection Failed.

    Moderator James Huff

    (@macmanx)

    First, try Fraise instead of TextEdit. It’s better at this stuff.

    Now, open Cyberduck and go to the Cyberduck/Preferences. Go to the “Editor” section and choose “Fraise” from the pull-down menu, and check “Always use this application.”

    No, login to your server via Cyberduck, navigate to the /public_html/ directory, select the wp-login.php file and click the “Edit” button in the toolbar (or right-click the file and choose “Edit” from the contextual menu).

    Now, look for excess whitespace on line 349 according to the guide that I linked to earlier.

    Thread Starter donloftus

    (@donloftus)

    I was able to open and download the wp-login file from the Bluehost web site after logging into my account. Short of counting each line, how do I know where line 349 is? And exactly what am I looking for?

    Thread Starter donloftus

    (@donloftus)

    I don’t think I can use Fraise since I’m using OS 10.5.8 not 10.6, so I don’t think it will work.

    Moderator James Huff

    (@macmanx)

    No, Fraise won’t, but Smultron will. Smultron will display the line numbers, so there’s no counting required.

    Thread Starter donloftus

    (@donloftus)

    Your are right, Smultron worked fine, thank you. I copied the text over and checked the offending lines, but I don’t see any extra space at line 349. Here is line 346 to 355:
    ———–
    346:}
    347:
    348://Set a cookie now to see if they are supported by the browser.
    349:setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
    350:if ( SITECOOKIEPATH != COOKIEPATH )
    351: setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);
    352:
    353:// allow plugins to override the default actions, and to add extra actions if they want
    354:do_action(‘login_form_’ . $action);
    355:
    ————-
    The first warning again was: Warning: Header may not contain more than a single header, new line detected. in /home1/lacross3/public_html/wp-login.php on line 349

    I don’t see what the problem is. It’s all Greek to me.

    Moderator James Huff

    (@macmanx)

    Yeah, it looks fine, which means that there could be a problem with the function on that line. Finding out which file is the route of the problem would be like finding a needle in a haystack, so download WordPress again and delete then replace every file except wp-config.php and the /wp-content/ directory with fresh copies from the download.

    Thread Starter donloftus

    (@donloftus)

    OK, I’ll try that. Right now it is 11:35 in Florida so I’ll try it tomorrow. I’m getting tired and don’t want to make a mistake. Thank you for all your help and I will probably be back later this weekend with more questions. Macmanx, thanks and have a good weekend.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

    Thread Starter donloftus

    (@donloftus)

    I’m back! Well, I downloaded WordPress 3.0 to my home computer and then went to my host site and removed all the files except wp-config and wp-content. I then uploaded all the files from my computer to the folder I just cleared using the FTP function on Bluehost. I still had to go back and make a new wp-config file for some reason but I finally got the site back up. BUT, it still has the same problems. The biggest issue is I can not log on as the administrator so I can edit the site. What should I try next? Do you need to see more of the warning messages I get? I’m about ready to dump the entire site and start over from scratch. I saved the scripts from each page and should be able to copy and paste (they are on Word documents, so I hope that doesn’t cause a problem). Any suggestions before I go with the nuclear option?

    Moderator James Huff

    (@macmanx)

    Just to clarify, is the problem that you cannot login to the admin panel, or is it that when you login you’re not an administrator?

    Thread Starter donloftus

    (@donloftus)

    When I go to https://www.lacrossebaptist.org/wp-login.php I get the error messages mentioned above about line 349 but the log-in box does show. When I actually try to log in I get another list of warnings. Here is the first couple of lines:

    Warning: Header may not contain more than a single header, new line detected. in /home1/lacross3/public_html/wp-login.php on line 349

    Warning: Cannot modify header information – headers already sent by (output started at /home1/lacross3/public_html/wp-login.php:349) in /home1/lacross3/public_html/wp-login.php on line 351

    Warning: Cannot modify header information – headers already sent by (output started at /home1/lacross3/public_html/wp-login.php:349) in /home1/lacross3/public_html/wp-includes/pluggable.php on line 690

    There are a few more warnings that show additional line numbers, but at this point I can’t go any further. Now that I look at it, the first two warnings are the same as what is listed on the other page, but they are the only two. This page has a total of 7.

    Thanks for the input, it is appreciated.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Can’t open my site to edit’ is closed to new replies.