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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| you cannot display ANYTHING TO THE broswer before the session is intialized... read this http://www.phpfreaks.com/tutorials/41/1.php |
|
#3
| |||
| |||
| 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
| |||
| |||
| Here is the file location if that helps? catalog/includes/functions/html_output.php |
|
#5
| |||
| |||
| 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/ |
| Thread Tools | |
| |
| ||||
| 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 |