Well that's a difficult question! Because we don't know your environment :-)
What I can tell you is a bit a generic answer:
Check:
- The permissions of all files/directories
- The configuration of all components
- Check what is different between test and prod, and dev and prod.
- Check the versions
- Check the configuration files
- check...
- check...
If it works in DEV/TEST but not in PROD, then there is a configuration/permission issue somewhere.
I can take some time to find it, some days...
I remember having a strange error with CMOD once, it was working in test/dev/uat but not in prod... and it took me 2-3 days to find a missing directory in an object server...
so maybe your error is just something dumb... but you simply need to check slowly and carefully everything...
cannot help you more than that sorry...