Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

helps with this problem


santus

Recommended Posts

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:

Link to comment
Share on other sites

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...