osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Warning! Session cannot send seession code;cache limited!

This is a discussion on Warning! Session cannot send seession code;cache limited! within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Having just down loaded osCommerce and feeling adventureous I tried to modify 1 line of code so that United States ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-22-2004, 05:50 PM
Lurker
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sangdao
Default Warning! Session cannot send seession code;cache limited!

Having just down loaded osCommerce and feeling adventureous I tried to modify 1 line of code so that United States would pop to the top of the country list. I followed the advice in the tips and tricks article (from the os info page 1)exactly I thought(although I might have made an error adding or deleting a space)..... and it worked! But I got the following error messages which I don't understand (This adventure was my first try at working with code)

Interpretations and adviced eagerly sought! Thank you!

David

www.mulberrywood.com/catalog

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/future7/public_html/catalog/includes/functions/html_output.php:304) in /home/future7/public_html/catalog/includes/functions/sessions.php on line 67

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/future7/public_html/catalog/includes/functions/html_output.php:304) in /home/future7/public_html/catalog/includes/functions/sessions.php on line 67
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-23-2004, 06:53 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

you cannot display ANYTHING TO THE broswer before the session is intialized... read this http://www.phpfreaks.com/tutorials/41/1.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-23-2004, 10:27 AM
Lurker
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sangdao
Default

Hi Arpit,

First off thank you so much for your quick response! You are encouraging a beginning coder to keep going! Once I get some of the basics down I think this might even be fun!

I looked at your link and it seemed to exactly match my problem. But on a practical level I could not see what I should do to fix the sessions problem. Would it be possible to look at the code change that I made and make a suggestion as to what and where I should add to fix the problem? The NOW line is what I have now and the BEFORE line is before I started to get creative!

Thank you very much!!!
////
// Creates a pull-down list of countries
function tep_get_country_list($name, $selected = '', $parameters = '') {

NOW:
$countries_array = array(array('id' => '223', 'text' => 'United States'));

BEFORE:
$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));


$countries = tep_get_countries();

for ($i=0, $n=sizeof($countries); $i<$n; $i++) {
$countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
}

return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
}
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-23-2004, 10:37 AM
Lurker
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sangdao
Default

Here is the file location if that helps?

catalog/includes/functions/html_output.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 09-23-2004, 10:49 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

rather than trying to hard code the value and then wondering why something else does not work the way it should, try using this,
http://www.oscommerce.com/community/contributions,2148/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Session Cookies and Cache Warnings Plastic osCMax v2 Installation issues 0 12-04-2005 06:30 PM
Warning: session_start(): Cannot send session cache limiter developer_x osCommerce 2.2 Modification Help 2 01-23-2005 08:13 AM
What is this error meaning?! [Cannot send session cookie] toniwong osCommerce 2.2 Installation Help 1 05-10-2004 10:07 AM
session_start(): Cannot send session cookie minimum osCommerce 2.2 Installation Help 2 02-14-2004 11:06 AM
SSL Errors, Session Cookie, Session Cache, NOVICE Problems? hanool osCommerce 2.2 Modification Help 1 09-07-2003 11:49 AM


All times are GMT -8. The time now is 09:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax