Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught Error: Access to undeclared static property: Phalcon\Di::$_default #12979

Closed
yanancom opened this issue Jul 24, 2017 · 2 comments
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments

Comments

@yanancom
Copy link

yanancom commented Jul 24, 2017

Fatal error: Uncaught Error: Access to undeclared static property: Phalcon\Di::$_default

my environment:
windows7 + xampp-win32-7.1.7-0-VC14-installer.exe + phalcon_x86_vc14_php7.1.0_3.2.1

my codes:

try {
	$di = new Phalcon\DI\FactoryDefault();
	
	$loader = new Loader();
	include BASE_PATH . "/app/config/services.php";
	$config = $di->getConfig();
	
	$loader->register();
	
	$application = new Application($di);
	$controler = $application->handle();
	echo $controler->getContent();
} catch (Exception $e) {
..
}

error info:

Fatal error: Uncaught Error: Access to undeclared static property: Phalcon\Di::$_default in C:\xampp\htdocs\brh\public\index.php:18 
Stack trace: 
#0 [internal function]: Phalcon\Di->__construct() 
#1 C:\xampp\htdocs\brh\public\index.php(18): Phalcon\Di\FactoryDefault->__construct() 
#2 {main} 

Next Error: Access to undeclared static property: Phalcon\Di::$_default in C:\xampp\htdocs\brh\public\index.php:18 
Stack trace: #0 [internal function]: Phalcon\Di->__construct() 
#1 C:\xampp\htdocs\brh\public\index.php(18): Phalcon\Di\FactoryDefault->__construct() 
#2 {main} thrown in C:\xampp\htdocs\brh\public\index.php on line 18

there are no errors on normal operation,the error occurs when I request twice continuely in javascript:

var $content = $('<div></div>');
$content.load(url1, params1, function (response, status, xhr) { //error will not occur on this request
	$content.load(url2, params2);  //error will occur on this request everytime.
});

I also found that when my computer disk is busy, the error ofen occur.

@yanancom
Copy link
Author

no solution? really?

@sergeyklay sergeyklay added the duplicate Duplicate issue. The duplicate issue is referenced in the comments label Jul 24, 2017
@sergeyklay
Copy link
Contributor

#12056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments
Projects
None yet
Development

No branches or pull requests

2 participants