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

偶发性问题Uncaught Error: Call to a member function run() on bool in ....../public/index.php #575

Closed
xrayffa opened this issue Jun 24, 2022 · 1 comment

Comments

@xrayffa
Copy link

xrayffa commented Jun 24, 2022

自从升级到3.3.4+以后好像这个问题就出现了, 这不是必然发现的问题,偶尔会出现这个问题, 重新请求 一次又好了,但是时不时又冒出这个问题来 :

Uncaught Error: Call to a member function run() on bool in ....../public/index.php
对应的代码是
$application = new Yaf\Application(APPLICATION_PATH . "/application.ini", 'product');
$application->bootstrap()->run();

意思是$application->bootstrap()返回了一个布尔值??

对了,php环境是8.0+, LNMP ; 以前用7.4没有这个问题,就是大一点的请求直接502错误!


同样出现的偶发问题是:
找不到文件vendor/autoload.php 这个错误没得截图 , 因为也是偶发性的 , 重新请求一次又好了; 这种现象有段时间特别频繁 , 完全不知道问题出现在哪里,重启服务器就好点了 , 感觉是个不定时炸弹

@laruence
Copy link
Owner

开启了opcache了么,开启了JIT了么,升级到最新的8.0试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants