santus Posted May 10, 2007 Share Posted May 10, 2007 greetings :'( I have the following problem when I try to open up my I classify there is this error Fatal error: Cannot redeclare clean_html_comments () (previously declared in c:\todopamihijo\todopamihijo\oscommerce-2.2ms2-060817\bodega\includes\functions\clean_html_comments.php:11) in c:\todopamihijo\todopamihijo\oscommerce-2.2ms2-060817\bodega\includes\functions\clean_html_comments.php on line 11 the code of clean_html_comments.php is: <? php / / / catalog/includes/functions/clean_html_comments.php / / / / BE CAREFUL NOT to uses this function where it will effect currencies.php or the listings for product yam / / This is used for cosmetic purposes for what the visitor sees and not for what the php code sees. The php code needs to see the HTML comment tags. / / / / Removes the <!--/ / * and * / /--> from Product Yams / / / / / / Clean out HTML comments code function clean_html_comments($clean_html) { it lines 11 global $its_cleaned; if (strpos($clean_html, '<!--/ / * ') >1) { $the_end1 = strpos($clean_html, '<!--/ / * ') -1; $the_start2 = strpos($clean_html, '* / /--> ') +7; $its_cleaned = substr($clean_html,0,$the_end1); $its_cleaned. = substr($clean_html,$the_start2); } else { $its_cleaned = $clean_html; } return $its_cleaned; } ?> please a help. thank you. :thumbsup: Quote Link to comment Share on other sites More sharing options...
oschellas Posted May 10, 2007 Share Posted May 10, 2007 Seems you are including the above code twice in the page you are using it. Check that you include the function only one time... Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 10, 2007 Share Posted May 10, 2007 greetings :'( I have the following problem when I try to open up my I classify there is this error Fatal error: Cannot redeclare clean_html_comments () (previously declared in c:\todopamihijo\todopamihijo\oscommerce-2.2ms2-060817\bodega\includes\functions\clean_html_comments.php:11) in c:\todopamihijo\todopamihijo\oscommerce-2.2ms2-060817\bodega\includes\functions\clean_html_comments.php on line 11 the code of clean_html_comments.php is: <? php / / / catalog/includes/functions/clean_html_comments.php / / / / BE CAREFUL NOT to uses this function where it will effect currencies.php or the listings for product yam / / This is used for cosmetic purposes for what the visitor sees and not for what the php code sees. The php code needs to see the HTML comment tags. / / / / Removes the <!--/ / * and * / /--> from Product Yams / / / / / / Clean out HTML comments code function clean_html_comments($clean_html) { it lines 11 global $its_cleaned; if (strpos($clean_html, '<!--/ / * ') >1) { $the_end1 = strpos($clean_html, '<!--/ / * ') -1; $the_start2 = strpos($clean_html, '* / /--> ') +7; $its_cleaned = substr($clean_html,0,$the_end1); $its_cleaned. = substr($clean_html,$the_start2); } else { $its_cleaned = $clean_html; } return $its_cleaned; } ?> please a help. thank you. :thumbsup: If you are using STS and Header Tags, you have to follow the instructions in STS, not Header Tags, for the application_top change. 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...
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.