Page 1 of 1

Help trying to null out a function error

Posted: Wed Aug 03, 2005 5:02 pm
by mrjkb
I am running a osCommerce site and have error of:

Fatal error: Call to undefined function: clean_html_comments() in /var/www/html/articles.php on line 350

I am trying to fix it by nulling out the function request in application_top.php with:

// articles fix
if (function_exists('clean_html_comments')) {
????(???);
}

but am not sure what to put into the ???? area to get this to null out. Any Help?

Posted: Wed Aug 03, 2005 5:11 pm
by Ambush Commander
This is what I'd suggest: reinstall your installation of osCommerce.

If you need to find the function, I'd suggest redownloading a copy of osCommerce and searching the PHP files for a function named this, and then moving that into your function.

Posted: Wed Aug 03, 2005 5:17 pm
by mrjkb
Thanks for the recommendation, but this is running on a well established store and I just added an contribution to post articles and cannot get it to work due to the error. The contribution suport is not providing any answers so I decided to go it on my own and hack the code to make the fatal error request go away. Is there any way to use PHP code to eliminate the request? I think I have it started but I am not that great with PHP yet.