为什么在第一次加载symfony之后停止工作?

时间:2019-02-14 08:43:27

标签: symfony symfony-4.2

我是symfony的新手 当安装完成时,欢迎页面可以正常工作,但是当我刷新页面时,负载没有完成!

enter image description here

编辑: 对于我的服务器配置,我只是使用“ php bin \ console sever:run”命令启动我的项目。 然后添加开发日志文件的内容:

  

[2019-02-14 00:09:05] php.DEBUG:警告:fsockopen():无法连接至127.0.0.1:8000(尝试暂时性连接任何一方的汽车)约定的可转换性,并在连接后重新建立连接。){“ exception”:“ [object](Symfony \ Component \ Debug \ Exception \ SilencedErrorContext:{\ “ severity \”:2,\“ file \”:\“ C:\\ Mes Sites Web \\ awema \\ awema \\ vendor \\ symfony \\ web-server-bundle \\ WebServerConfig.php \”,\ “ line \”:139,\“ trace \”:[{\“ file \”:\“ C:\\ Mes网站Web \\ awema \\ awema \\ vendor \\ symfony \\ web-server-bundle \ \ WebServerConfig.php \“,\” line \“:54,\” function \“:\” findBestPort \“,\” class \“:\” Symfony \\ Bundle \\ WebServerBundle \\ WebServerConfig \“,\”类型\“:\”-> \“}],\” count \“:1})”} []   [2019-02-14 00:09:17] request.ERROR:未捕获的PHP异常Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException:“在C:\ Mes网站Web \ awema \ awema中找不到“ GET /”的路由\ vendor \ symfony \ http-kernel \ EventListener \ RouterListener.php第139行{“ exception”:“ [object](Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException(code:0):找不到\” GET / \的路由C:\ Mes网站上的“”:C:\ Mes网站上的Web \ awema \ awema \ vendor \ symfony \ http-kernel \ EventListener \ RouterListener.php:139,Symfony \ Component \ Routing \ Exception \ NoConfigurationException(代码:0): Web \ awema \ awema \ vendor \ symfony \ routing \ Matcher \ Dumper \ PhpMatcherTrait.php:172)“} []   [2019-02-14 00:09:18] request.INFO:匹配的路线“ _wdt”。 {“ route”:“ _ wdt”,“ route_parameters”:{“ _ route”:“ _ wdt”,“ _ controller”:“ web_profiler.controller.profiler :: toolbarAction”,“ token”:“ 6b922e”},“ request_uri”: “ http://127.0.0.1:8000/_wdt/6b922e”,“方法”:“ GET”} []

1 个答案:

答案 0 :(得分:0)

我遇到了完全相同的问题(Windows,Symfony 4.4.2,php 7.1.3)

我正在使用WebserverBundle发出通知:

自Symfony 4.4起不推荐使用WebserverBundle。新的Symfony本地 服务器具有更多功能,您可以改用它

如果您运行实例

Sub x()

Dim rng As Range, r As Range, n As Long, b As Boolean

Set rng = Application.InputBox("Select a range", "Obtain Range Object", Type:=8)

For Each r In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants).Areas
    If r.Address <> rng.Address And r.Rows.Count = rng.Rows.Count And r.Columns.Count = rng.Columns.Count Then
        For n = 1 To r.Count
            If r.Cells(n).Value <> rng.Cells(n).Value Then
                b = True
                Exit For
            End If
        Next n
        If Not b Then
            MsgBox "Cells " & r.Address & " are the same as selected range (" & rng.Address & ")"
        End If
        Exit Sub
    End If
Next r

End Sub

这将建议安装新的symfony本地服务器,从而为我解决了这个无限循环问题。