FOS User Bundle在没有调试模式的情况下分解了Symfony应用程序

时间:2018-02-22 13:44:35

标签: php symfony fosuserbundle symfony-2.8

我正在使用:

  • symfony / symfony:v2.8.34
  • friendsofsymfony / user-bundle:v2.0.2

所以,当我开始使用search = driver.find_element_by_xpath("""//*[@id="txtBoxSearch"]/input[@type="text"]""") 应用时,应用就会崩溃。

我得到了:

$kernel = new AppKernel('prod', false);

使用[2018-02-22 15:40:45] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function has() on null" at /var/www/html/Brokers/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 375 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function has() on null at /var/www/html/Brokers/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php:375)"} [] 一切正常。

P.S。 我也这样做Vendor updates broke FOS User Bundle with "Call to a member function has() on a non-object"

0 个答案:

没有答案