| Author |
Message |
binhex
Nuke Soldier


Joined: Jan 29, 2003
Posts: 21
Location: Canada
|
Posted:
Tue Feb 04, 2003 6:47 pm |
  |
Hi, I am running 6.5B7 and to get the Forums to run correctly with out displaying errors at the top of each page I need to go in the following files,
session.php
viewtopic.php
posting.php
and comment out the lines that setcookie if I comment out these lines I can post and create threads without errors.
This isn't normal is it? don't I need those cookies to track postings for users? so when you login again it will tell which postings are new. Does anyone know why this is happening.
Thanks |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Tue Feb 04, 2003 6:48 pm |
  |
I can tell you that the forums work fine. I know this because I fixed them for Beta 6 and the fixes were implemented in beta 7.
What errors were appearing when the cookie lines weren't commented out???
Artificialintel |
|
|
   |
 |
binhex
Nuke Soldier


Joined: Jan 29, 2003
Posts: 21
Location: Canada
|
Posted:
Tue Feb 04, 2003 7:07 pm |
  |
This is the error I get when I umcomment the lines:
Warning: Cannot add header information - headers already sent by (output started at /html1/header.php:32) in /html1/includes/sessions.php on line 198
Warning: Cannot add header information - headers already sent by (output started at /html1/header.php:32) in /html1/includes/sessions.php on line 199
same for the other 2 files viewtopic and post. |
|
|
   |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Tue Feb 04, 2003 7:39 pm |
  |
well, I can add to this anomoly. I get the same error as you but only in my viewtopic.php.
If I comment out the setcookie around line 555 then I don't get the error. But I haven't had a problem with the other two files I don't think.
and I haven't noticed anything strange with cookies either..yet
mikem |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Tue Feb 04, 2003 8:31 pm |
  |
I don't think the cookie itself is the problem. What version of php are you using? PHP 4.3 doesn't produce these errors (I know cause I discovered that original fix).
there are a couple of other header lines that can be commented out without disabling the cookies I think. The lines are mentioned in another topic somewhere, but I really have no idea where (I think it was on the phpnuke.org forums), so I can't point u in the right direction I'm afraid.
ArtificialIntel |
|
|
   |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Tue Feb 04, 2003 9:45 pm |
  |
This was also present in nuke 6.0 and bbtonuke 2.0.6, i used to suggest pretty much the same "fix" back then example, but to be honest, i'm still wondering what causes it as i have several nuke sites with different nuke & bbtonuke versions and never had that error. |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
binhex
Nuke Soldier


Joined: Jan 29, 2003
Posts: 21
Location: Canada
|
Posted:
Tue Feb 04, 2003 10:57 pm |
  |
| ArtificialIntel wrote: |
I don't think the cookie itself is the problem. What version of php are you using? PHP 4.3 doesn't produce these errors (I know cause I discovered that original fix).
there are a couple of other header lines that can be commented out without disabling the cookies I think. The lines are mentioned in another topic somewhere, but I really have no idea where (I think it was on the phpnuke.org forums), so I can't point u in the right direction I'm afraid.
ArtificialIntel |
I think you are right. On my local test machine I am running php ver 4.2.2 and I do not have this problem. On the webserver of my host they are running 4.2.0 I sent an email requesting that they upgrade to 4.3 of course I am not holding my breath |
|
|
   |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Wed Feb 05, 2003 6:21 am |
  |
My server just recently upgraded to PHP 4.3.
Thats' when my errors all over my site started. It took them a few hours but they got all the PHP settings right and most of the errors disapeared.
The only errors that were left were the [set locale] with the LC TIME fix in 3 files.
I had to change the LC TIME in
modules/Downloads/index.php
modules/Web_Links/index.php
mainfile.php
As for the Forums. I had the same errors as this topic covers and I fixed that by only having to comment out the one line in viewtopic.php
As I said..all "seems" to be working now.
mikem |
|
|
   |
 |
|
|