Guest Posted February 23, 2005 Share Posted February 23, 2005 I am installing the Header Tags contrib and I get this on my admin page Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/headno19/public_html/new_store/admin/includes/functions/general.php:1339) in /home/headno19/public_html/new_store/admin/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/headno19/public_html/new_store/admin/includes/functions/general.php:1339) in /home/headno19/public_html/new_store/admin/includes/functions/sessions.php on line 67 also for some reason I cannot install // BOF: WebMakers.com Added: Header Tags Controller v1.0 require(DIR_WS_FUNCTIONS . 'header_tags.php'); // Clean out HTML comments from ALT tags etc. require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); // Also used by: WebMakers.com Added: FREE-CALL FOR PRICE // EOF: WebMakers.com Added: Header Tags Controller v1.0 into the application_top file as I get this Fatal error: Cannot redeclare clean_html_comments() (previously declared in /home/headno19/public_html/new_store/includes/functions/clean_html_comments.php:13) in /home/headno19/public_html/new_store/includes/functions/clean_html_comments.php on line 13 What is it I am doing wrong,It took me ages to install this. Thanks Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 23, 2005 Share Posted February 23, 2005 The first error is caused by an extra space in one of your files. The second is caused by the code being added twice. Now, the second one says it is at line 13 which is not right. The code for application top should be placed near the bottom (before the closing ?>. I don't think that moving that will fix the first problem but you should fix it first since it is the easiest to find. If you place it at the bottom and still get the error, then my guess is that you are using STS. In that event, change the line require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); to //require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted February 23, 2005 Share Posted February 23, 2005 Thanks,but I have checked th Application_top and there isnt anything else that even looks like that code in there. I also cannot find the space in the Session file,I havnt even touched this file I am confused Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 24, 2005 Share Posted February 24, 2005 Are you using STS? The duplicate message means you have it declared twice. So you just need to search your files for it. It's in there somewhere. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted February 24, 2005 Share Posted February 24, 2005 (edited) I got it,now i am just getting.... Fatal error: Call to undefined function: tep_get_products_head_title_tag() in /home/headno19/public_html/new_store/admin/categories.php on line 582 in the product description in admin,I cant seem to sort that now. Edited February 24, 2005 by headnod Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 24, 2005 Share Posted February 24, 2005 Verify that you made the changes to your admin/includes/functions/general.php file. It is saying it cannot find them. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted February 24, 2005 Share Posted February 24, 2005 (edited) Thats that done but when I try to update an item I get this Warning: Cannot modify header information - headers already sent by (output started at /home/headno19/public_html/new_store/admin/includes/languages/english/categories.php:105) in /home/headno19/public_html/new_store/admin/includes/functions/general.php on line 18 //// // Redirect to another page or site ?function tep_redirect($url) { ? ?global $logger; ? ?header('Location: ' . $url); <-------------- line 18 ? ?if (STORE_PAGE_PARSE_TIME == 'true') { ? ? ?if (!is_object($logger)) $logger = new logger; ? ? ?$logger->timer_stop(); ? ?} ? ?exit; ?} Edited February 24, 2005 by headnod Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 24, 2005 Share Posted February 24, 2005 This sort of error is caused by "whitespace" in a file. Most like admin/includes/languages/english/categories.php in this case. You need to open the file and verify that the very first characters are <? and the very last are ?>. That means when you try to move the cursor past them, it won't do it. If you have whitespace, it will. Go to the very end of the file and hit the backspace key until you reach the above character. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted February 24, 2005 Share Posted February 24, 2005 Thanks jack,would it be the the same method for Fatal error: Call to undefined function: clean_html_comments() in /home/headno19/public_html/new_store/includes/header_tags.php on line 185 this hapened when I updated a product,it was on the website on the products page. thanks Jack Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 24, 2005 Share Posted February 24, 2005 No, that's different. Please read this thread again for that fix. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
fleeced Posted May 2, 2006 Share Posted May 2, 2006 This error can be fixed by chcecking your coding again if you have sts, check you have done this properly: MODIFICATIONS TO FILES: (not all shops begin in the catalog directory so adjust to your site) Add to /catalog/includes/application_top.php at the end of the file right before the last ?> // BOF: WebMakers.com Added: Header Tags Controller v2.5.7 require(DIR_WS_FUNCTIONS . 'header_tags.php'); // Clean out HTML comments from ALT tags etc. require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); // EOF: WebMakers.com Added: Header Tags Controller v2.5.7 NOTE: if already using FREE-CALL FOR PRICE Add-on you do not need to add the clean_html_comments.php to application_top as you should already have it there. NOTE for STS Users: The above also applies to STS shops but does not always work for some reason. If your STS shop fails, in your sts_output.php file, FIND require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require(DIR_WS_FUNCTIONS . 'header_tags.php'); CHANGE TO require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require_once(DIR_WS_FUNCTIONS . 'header_tags.php'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.