sjnewbie Posted June 29, 2009 Share Posted June 29, 2009 application/x-httpd-php about_us.php PHP script text Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/public_html/xxxxxxx.com/about_us.php:4) in /home/xxx/public_html/xxxxxx.com/includes/functions/sessions.php on line 102 application/x-httpd-php about_us.php PHP script text Trying to put 'About Us', I have this error when I click on 'About Us'. Can somebody please tell me how to fix this? Thank you! Link to comment Share on other sites More sharing options...
masat Posted June 29, 2009 Share Posted June 29, 2009 Since there is no stock about_us.php page I guess you have created one and I will assume it is a stand alone page as opposed to a included page.. Here is how to do this successfully... copy privacy.php save it as about_us.php open includes/boxes/information.php and change to this... $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'); new infoBox($info_box_contents); Notice the new line. You will of course have to do the same with the language files(copying and renaming that is). You may have some text that is not quoted properly causing your error. I think this happens when output to the broser is passed before session start. How do you know when you know what you want to do for the rest of your life? Link to comment Share on other sites More sharing options...
sjnewbie Posted June 29, 2009 Author Share Posted June 29, 2009 Thank you for the reply. I followed this http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49 Sorry but didn't get this part 'I think this happens when output to the broser is passed before session start' :( Link to comment Share on other sites More sharing options...
sjnewbie Posted June 29, 2009 Author Share Posted June 29, 2009 Great! :) Solved... Yes I had this 'application/x-httpd-php about_us.php PHP script text' for some silly reason! :blush: Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.