Results 1 to 5 of 5

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 ...

      
  1. #1
    Lurker
    Join Date
    Sep 2004
    Posts
    3
    Rep Power
    0


    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

  2. #2
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    Default

    you cannot display ANYTHING TO THE broswer before the session is intialized... read this http://www.phpfreaks.com/tutorials/41/1.php

  3. #3
    Lurker
    Join Date
    Sep 2004
    Posts
    3
    Rep Power
    0


    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);
    }
    ?>

  4. #4
    Lurker
    Join Date
    Sep 2004
    Posts
    3
    Rep Power
    0


    Default

    Here is the file location if that helps?

    catalog/includes/functions/html_output.php

  5. #5
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    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/

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •