Same problem. After programming sd card to work as internal memory, so i could actually have some space in my phone, camera app started showing error: memory unavailable. 
None of the solutions here (or elsewhere) worked. Until i did a very simple thing. 
I downloaded another camera app from playstore. All of them are taking pics normally. Problem solved.