We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Uncaught exception 'Phalcon\DI\Exception' with message 'Service 'config' cannot be resolved'

Hi Team,

I am getting below error on linux server Fatal error: Uncaught exception 'Phalcon\DI\Exception' with message 'Service 'config' cannot be resolved' in library/core/Loggr.php:31

This problem caused due to setShared is not working in my phalcon. Any trick which help me to make it work.

Please help me in this.

Thanks, Amol



11.0k
Accepted
answer

Hi amolra , check how to use DI in this document https://docs.phalcon.io/uk/latest/reference/di.html