Default [Q] Rooted my phone and FFC stopped working

After rooting, launching the camera app resulted in some errors. I cleared the cache and data, and everything looked fine. I went ahead and flashed a custom ROM. Then I realized the FFC was not working. I'd get camera error. Someone said that I should go back to stock to see if it worked, and I flashed stock, and it still didn't work.

Not sure what to do next. The FFC was working fine before the root operation. Any tips on how to restore the FFC functionality?
Samsung S4 - VirginROM