Help trying to null out a function error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mrjkb
Forum Newbie
Posts: 2
Joined: Wed Aug 03, 2005 4:55 pm
Location: Chicago Land

Help trying to null out a function error

Post 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?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
mrjkb
Forum Newbie
Posts: 2
Joined: Wed Aug 03, 2005 4:55 pm
Location: Chicago Land

Post 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.
Post Reply