You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Set Cookie and Forums [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
binhex
Nuke Soldier
Nuke Soldier


Joined: Jan 29, 2003
Posts: 21

Location: Canada

PostPosted: Tue Feb 04, 2003 6:47 pm Reply with quoteBack to top

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
Find all posts by binhexView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Tue Feb 04, 2003 6:48 pm Reply with quoteBack to top

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
Find all posts by ArtificialIntelView user's profileSend private message
binhex
Nuke Soldier
Nuke Soldier


Joined: Jan 29, 2003
Posts: 21

Location: Canada

PostPosted: Tue Feb 04, 2003 7:07 pm Reply with quoteBack to top

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.
Find all posts by binhexView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Feb 04, 2003 7:39 pm Reply with quoteBack to top

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 Confused

mikem
Find all posts by mikemView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Tue Feb 04, 2003 8:31 pm Reply with quoteBack to top

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
Find all posts by ArtificialIntelView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Feb 04, 2003 9:45 pm Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
binhex
Nuke Soldier
Nuke Soldier


Joined: Jan 29, 2003
Posts: 21

Location: Canada

PostPosted: Tue Feb 04, 2003 10:57 pm Reply with quoteBack to top

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
Find all posts by binhexView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Wed Feb 05, 2003 6:21 am Reply with quoteBack to top

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
Find all posts by mikemView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.517 Seconds - 296 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::