Favatars bug fixed
Apologies to those who downloaded the favatars controller since I put it up, but there was a bit of a blindingly obvious bug present in it which has now been fixed and uploaded.
After outputting the favicon, the script would attempt to render a view (which doesn't exist here), triggering a "missing view" error. On a production Cake site, this causes a 404 error header to be sent along with the data. Consequently, the icon renders fine, but your error log starts filling up with 404 errors for files which are being displayed OK.
The fix is really simple, in the favatar() action, replace the return; statements with exit();. No more view rendering, no more 404s, no problem!

Comments
Add a comment
Your email address will not be shared, sold, or made visible on the site.