Baffling Errors
All programmers get them. You have a bug in your code, and no matter how hard you stare at the screen you just can't find it.
It usually turns out to be something stupid, and here, for reference are some possible reasons:
Generally
- There are two bugs causing the same symptom
Websites generally
- You are editing the wrong file on the server
- You are uploading to the wrong server / directory (dangerous!)
- You are saving locally, but expecting to see your changes live
- Someone else in your team is changing stuff at the same time
PHP
- Mis-spelled variable. You are trying to show an undefined variable
- Wrong case variable. $Value and $value are not the same
(we recommend consistency - stick to $camelHumpStyle or $using_underscore_style) - You are using double quote instead of single quote or visa versa
- Does F5 (page refresh) fix it. Try Ctrl + F5 too
- Have you forgotton to press F5 before you follow a link ?
- You put a semicolon after an if command
- You missed a break; within a switch()
HTML
- Tags are mis-matched. Use the W3C XHTML verification tool
- Close tags have forward slash ! Eg: you typed <\b> instead of </b>
CSS
This one needs an essay. I'll get round to it sometime
This page will be updated as and when we create stupid bugs, for our reference and yours
If you want us to have a go at your stupid bug, get in touch