Phalcon同时执行请求时出现致命错误 - 服务器WAMP

时间:2018-03-05 11:56:19

标签: php webserver wamp phalcon

我正在创建一个应用程序,在前端将运行带有VueJS的SPA,并在后端创建一个带有Phalcon的Web服务。当我同时向API(位于我的测试机器上)进行两次异步调用时遇到问题我在第二次调用时收到以下错误:

<br />
<b>Fatal error</b>:  Uncaught Error: Access to undeclared static property: 
Phalcon\Di::$_default in D:\wamp64\www\web-service\public_html\index.php:19
Stack trace:
#0 [internal function]: Phalcon\Di-&gt;__construct()
#1 D:\wamp64\www\web-service\public_html\index.php(19): 
Phalcon\Di\FactoryDefault-&gt;__construct()
#2 {main}

Next Error: Access to undeclared static property: Phalcon\Di::$_default in 
D:\wamp64\www\web-service\public_html\index.php:19
Stack trace:
#0 [internal function]: Phalcon\Di-&gt;__construct()
#1 D:\wamp64\www\web-service\public_html\index.php(19): 
Phalcon\Di\FactoryDefault-&gt;__construct()
#2 {main}
  thrown in <b>D:\wamp64\www\web-service\public_html\index.php</b> on 
line <b>19</b><br />

如果我一个接一个地运行每个电话,两个都正常工作。

我的服务器在带有WAMP的Windows计算机上运行

0 个答案:

没有答案
相关问题