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

annotations error when upgrade phalcon1.3.4/php 5.4 to phalcon2.0/php5.6

PHP 5.6 phalcon 2.0 ControllerBase.php : $annotations = $this->annotations->getMethod( $this->dispatcher->getActiveController(), $this->dispatcher->getActionName() );

error msg :

"PHP message: PHP Catchable fatal error: Object of class St\Admin\Controllers\IndexController could not be converted to string in /home/app/wwwroot/console/admin/controllers/ControllerBase.php on line 64" while reading response header from upstream, client: 172.16.3.20, server: localhost, request: "GET /admin/image/list HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "172.16.3.11:7777"

What do you have in /home/app/wwwroot/console/admin/controllers/ControllerBase.php on line 64?