Warnings in PHP are just that warnings, not anything critical like FATAL_ERROR its just that some servers output warning when there is no need.
A warning is not a show stopper, your store will function fine HOWEVER, you do not want your customers seeing these warnings, they might think your store is broke plus its not very professional looking!
In the warning PHP will tell you where the cause of the warning is to be found,
Warning: Division by zero in /home/vp/www/catalog/includes/classes/split_page_results.php on line 86
See by this warning the file is split_page_results.php and its sourced to line 86
there is an easy way to suppress warning, simply place the "@" character at the start of the line.
If this does not silence the error you can add the following code to the top of the file, make sure its within <?php tags
error_reporting(0);
This will prevent any errors being printed to the screen for that file only.
The above warning by the way is simply telling us in PHP that there are no records to be split!
There is already some suppressing code with in osCommerce or you would see a hell of a lot more than this! |