André Luiz André Luiz - 1 month ago 21x
PHP Question

Phalcon PhP - Controller handler class cannot be loaded

I have an application written in Phalcon PhP 2. This application runs locally normally, everything works. My problem is to make it run on an Amazon Ec2 Linux server. Some controllers work normally, the routes are OK. My problem is with some controller inside the admin area. Not all controllers give me error, some work. This is the error I get:

AdminproductController handler class cannot be loaded
#0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('AdminproductCon...', 2)
#1 [internal function]: Phalcon\Dispatcher->_dispatch()
#2 [internal function]: Phalcon\Dispatcher->dispatch()
#3 /var/www/html/public/index.php(31): Phalcon\Mvc\Application->handle()
#4 {main}

I've been reading about this error on Phalcon's forum and so far none of the answers solve my issue yet. What I'm trying to do is check if it is a case sensitive problem. But no matter what I do, the controller never loads and the error messages are always the same.

Would you have some tips, like steps or a checklist, for me to follow to try to fix this issue?

Thanks for any help.


Maybe AdminproductController must be called AdminProductController or a classfile was renamed and you have to change the useage of the class. Also read @Timothy's comments.