I have limited internet access and played through Portal without being online. As a result, several of the achievements didn't unlock. I later went back and played through a second time online to try and get some, but they wouldn't unlock. Some of these achievements include: "Cup Cake", "Fruit Cake", "Vanilla Crazy Cake", and "Camera Shy". How can I unlock these achievements if they won't register?
For achievements like Camera Shy I found I had to play through the entire game without loading from a save game (I can't remember if I died or not - probably not).
If you save/load the game the count is probably reset (or the other completed levels are spawned intact, with cameras, who knows)
Open the developer console (the ``
key; you'll have to enable it in the Advanced menu of the Keyboard settings) and enter indeveloper 1
(possiblydeveloper 4`) and try to do something that would count towards an achievement like Camera Shy. Usually some text will pop up in the console about it, and it might give you some insight as to why they aren't unlocking.
Make sure that you aren't using the commentary mode as well, which disables them. Worst case, perhaps try a full reinstall of the game.
Portal is unfortunately very prone to such errors.
If it does not take its natural course the following day, i.e. Steam syncs and achievements appear, then it will probably not ever.
Contact Valve support and let them reset that specific achievement. Then you can do them from scratch.