12
Spent 4 hours debugging only to find it was a capital letter issue
I was working on a login form at my kitchen table around 2am. Kept getting a 500 error every time I hit submit. Checked the backend code, the database connection, rewrote the SQL query twice. Finally noticed I named the file 'LoginHandler.php' but the include statement said 'loginhandler.php'. On a Linux server that matters. Has anyone else spent way too long on a stupid typo like that?
2 comments
Log in to join the discussion
Log In2 Comments
ray2106d ago
Used to think case sensitivity was just some pedantic rule Linux nerds argued about. Then I spent a whole afternoon trying to figure out why my CSS file wouldn't load, turns out I had 'styles.CSS' instead of 'styles.css'. Completely changed how I double check file names now.
5
felix_martin565d ago
Oh man, that's brutal! @ray210 I had a similar moment but with a Python script and a typo in a variable name. I wrote "userInput" in one place and "user_input" everywhere else, spent 3 hours checking if my logic was broken before noticing. Now I just name everything with underscores and lowercase out of pure fear. Case sensitivity is like the universe's way of keeping us humble.
1