<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Hi,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm running Drupal 4.7.2 and was working with CCK when things suddenly stopped working. I realize that CCK (and views, which I was also using) are not yet core, but at the time this error began I was simply adding and editing nodes, so I really don't know where this thing came from.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Anyway, when I try to execute any page (basically anything in which I click a button) I get a blank page. If I reload the page or hit enter in the address bar, the action is executed but I get errors popping up, specifically the "cannot modify header information" error, which from prior experience I know probably is indicative of some other unknown error.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So then I made the big mistake, which was that I thought if I logged in as user #1 I could troubleshoot things more exactly ... silly me, I can't log in because, of course, the form isn't being executed.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Since I can't log in there's not a lot I can do. But looking at the watchdog table in the database I'm getting the following entries each time I try to log in:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BLOCKQUOTE type="cite"><DIV>Session opened for &lt;em&gt;[user1]&lt;/em&gt;. [that's good!]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>session_regenerate_id(): Cannot send session cookie - headers already sent by (output started at /var/www/[mypath]/themes/[mytheme]/template.php:50) in /var/www/[mypath]/modules/user.module on line 943. [not so good]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cannot modify header information - headers already sent by (output started at /var/www/darfurscores/themes/[mytheme]/template.php:50) in /var/www/[mypath]/includes/common.inc on line 266.</DIV></BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Line 943 in the user.module is, as it specifies, session_regenerate_id, which I gather tries to set the cookie that marks me as logged in. Line 266 in common.inc is in the drupal_goto function, where it tries to invoke the header.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If anyone has any ideas at this point, I would love to hear them. Some specific things that would be helpful for me to gather more information:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- Anyone have any ideas how I could log in or set that cookie without going through that form?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- Anyone know what row in which table controls what theme is set? Since I'm using a custom theme, and the problem could be in the template, switching to another theme might solve it or at least allow me to investigate.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- Is there anywhere else I could look for besides watchdog to figure out what the errors are?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- Are there any good database analysis/repair tools, in case it's some kind of corrupted database entry?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- I tried turning off all modules (everything except the required ones, even core) and that didn't fix it. I turned them all back on before I tried switching users, so I could turn them all back off directly in the database if that would be a good idea. Should I try removing the non-core module tables in the database completely? Is there a list somewhere of the tables and rows that CCK and views (though I think if there were a problem it would be CCK) create/affect? Some are obvious, but I imagine they create entries in various tables that I might not think to look in...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any help would be greatly appreciated, as right now I have a very pretty, very nonfunctioning site...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--ivan</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>