Home >Backend Development >PHP Tutorial >In ci, chrome requests favicon.ico, causing log error. Solution_PHP tutorial
The chrome browser will automatically request favicon.ico, so when favicon.ico is not added to the website, a 404 page error will appear
During the actual development process, the CI framework opens the ERROR log,
ERROR will always be displayed - 2011-10-13 03:43:57 --> 404 Page Not Found --> favicon.ico
The solution is as follows
You can modify the show_404 method of CI and exception to block it
if ($log_error && $page != 'favicon.ico')