| Coding Forum Problems with your code? Let's hear about it. |
01-20-2004, 04:29 PM
|
#1 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Oscommerce Error
Anyone know what this means?
Quote:
|
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/html/catalog/includes/functions/general.php:1256) in /var/www/html/catalog/includes/functions/sessions.php on line 67
|
|
|
|
01-20-2004, 04:37 PM
|
#2 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
Digitalpoint would know. He's pretty awesome with code.
|
|
|
01-20-2004, 04:39 PM
|
#3 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Hope he sees this...
|
|
|
01-20-2004, 04:42 PM
|
#4 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
I know what it means.. but it wont help you..
why its there is problem..
what its doing is sending headers after output has been started.. not sure how to fix it... never delt with osCommerce before.. paste general.php lines 1250-1270 and ill try to help
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
01-20-2004, 04:43 PM
|
#5 (permalink)
|
|
Inactive
Join Date: 10-20-03
Location: San Diego, California
Posts: 271
|
Basically means the system is trying to set something in the HTTP headers (since it's within the sessions.php file, I would guess it's a cookie or something along those lines).
The problem is that the request to the cart has already spit something out to the browser (which started in general.php).
And since you have to send the HTTP headers before you can send anything else to the user's browser, once you spew something out, the HTTP headers are sent at that point (and can't go back and be changed).
Truthfully, it probably would not be terribly difficult to debug. osCommerce has a pretty clean (from a coding standpoint) foundation to start with.
- Shawn
|
|
|
01-20-2004, 04:50 PM
|
#6 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
So, what should I do?
|
|
|
01-20-2004, 04:56 PM
|
#8 (permalink)
|
|
Inactive
Join Date: 10-20-03
Location: San Diego, California
Posts: 271
|
Well, if you can't find an answer in their forums or anywhere else, let me know... I'll be happy to have a look at it for you...
- Shawn
|
|
|
01-21-2004, 06:23 AM
|
#9 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
I found a post over there that helped. I had white space after the ?> on one of the pages. Got rid of it and everything works now.
Thanks 
|
|
|
01-21-2004, 11:51 AM
|
#10 (permalink)
|
|
Inactive
Join Date: 10-20-03
Location: San Diego, California
Posts: 271
|
Annoying when it's something as simple as that, eh?
- Shawn
|
|
|
01-21-2004, 12:59 PM
|
#11 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Yea, I had no idea that white space at the end of the page could hurt anything. Guess I know now 
|
|
|
03-05-2004, 02:46 AM
|
#12 (permalink)
|
|
Contributing Member
Join Date: 12-03-03
Location: Dallas, Texas
Posts: 154
Latest Blog: None
|
The number ONE error for headers already sent in oscommerce is a blank line at the end of the file. I've seen it so many times I know it by heart 
I have around 10 OsC sites running. if you customize then alot you get use to seeing that error 
|
|
|
03-05-2004, 06:14 AM
|
#13 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Virginia
Posts: 2,021
Latest Blog: None
|
Quote:
|
Originally Posted by Jazzee
I found a post over there that helped. I had white space after the ?> on one of the pages. Got rid of it and everything works now.
Thanks 
|
Would you belive i was going to suggest you look for extra lines after the ending php tag?
I have seen the same "headers already sent" message on multiple scripts including gallery scripts, phpbb and other php scripts. Often this line is added at the end of the file when its edited by cpanels file manager.
|
|
|
03-08-2004, 08:28 AM
|
#14 (permalink)
|
|
Inactive
Join Date: 03-08-04
Posts: 21
Latest Blog: None
|
Re: Oscommerce Error
Quote:
|
Originally Posted by Jazzee
Anyone know what this means?
Quote:
|
Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/html/catalog/includes/functions/general.php:1256) in /var/www/html/catalog/includes/functions/sessions.php on line 67
|
|
Solution: In your /catalog/includes/ configure.php at the very bottom
configure your shopping cart to save sessions in your database (mysql)
instead of the default /tmp
Yes, error messages were sent from general.php before the cart could be displayed.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 01:20 AM.
© Copyright 2008 V7 Inc
|