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 Error: Access to undeclared static property: Phalcon\Debug::$_isActive

Hello ,

I use Phalcon 3.2 with Wamp (Apache 2.4.27 && PHP 7.1.9 && MySql 5.7.19 ) in Windows 7, and Some time I get this Error when I Call an Action Controller from Ajax . When I replay XHR , I don't get any error . this is My error :

Fatal error:  Uncaught Error: Access to undeclared static property: Phalcon\Debug::$_isActive in [no active file]:0
Stack trace:
0 [internal function]: Phalcon\Debug->onUncaughtException(Object(Error))
1 {main}

Next Error: Access to undeclared static property: Phalcon\Debug::$_isActive in [no active file]:0
Stack trace:
0 [internal function]: Phalcon\Debug->onUncaughtException(Object(Error))
1 {main}
  thrown in  [no active file] on line 0

Thx :)

edited Dec '17

This is a known bug win with windows. You need to use php-cgi or switch to vagrant/docker. https://github.com/phalcon/cphalcon/issues/12056