djms Posted August 13, 2006 Share Posted August 13, 2006 I am receiving the follow warning messages on the index screen for each category of goods. Once there is a session id assigned (by adding an item to the cart), the warnings go away. Warning: session_register(): Cannot send session cookie - headers already sent by (output started at /home3/dajm/mysitename/catalog/index.php:36) in /home3/dajm/mysitename/catalog/includes/modules/product_listing.php on line 87 Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at /home3/dajm/mysitename/catalog/index.php:36) in /home3/dajm/mysitename/catalog/includes/modules/product_listing.php on line 87 I've labeled Line 87 of the product_listing.php below. When I delete this section, the warning goes away, but then so do my previous & next buttons. // prev_next code starts here ****************************** $prev_next.= $listing['products_id']; if($prev_next!=""){$prev_next.=","; } session_register("prev_next"); <<-----Line 87 // end of pre/next code ************************************ Can anyone tell me what's wrong with Line 87? Thanks in advance, Debbie Link to comment Share on other sites More sharing options...
jhsands Posted August 13, 2006 Share Posted August 13, 2006 BACKUP your current files before editing. Did I mention to BACKUP your current files, first? Try this: session_register('prev_next'); or it might be session_register('prev_next.'); BACKUP your current files before editing. Did I mention to BACKUP your current files, first? "I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!" Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password Link to comment Share on other sites More sharing options...
djms Posted August 13, 2006 Author Share Posted August 13, 2006 Thanks for the suggestions Jason. Unfortunately, neither got rid of the warning messages. Any other ideas? Thanks, Debbie Link to comment Share on other sites More sharing options...
Guest Posted August 13, 2006 Share Posted August 13, 2006 see this http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15 Link to comment Share on other sites More sharing options...
djms Posted August 14, 2006 Author Share Posted August 14, 2006 see thishttp://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15 Thanks. There were some whitespaces I needed to delete. Unfortunately, it didn't solve my issue. It has something to do with the prev_next contribution I installed. I going to delete that contribution and work on my other issues for now. Thanks again, Debbie James Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.