簡體   English   中英

Symfony4 WebProfiler 404

[英]Symfony4 webprofiler 404

我剛剛設置了一個新的Symfony 4項目,但是當我導航到“ public”文件夾時,webprofiler會顯示以下消息:

An error occurred while loading the web debug toolbar. Open the web profiler.

當我單擊“打開Web分析器”時,出現以下錯誤:

Error 404, Object not found

在這種情況下找不到的路徑是:

http://localhost/test-project/public/_profiler/4d2f65

誰能幫我解決這個問題?

如果要從頭開始設置Symfony4 / Flex應用程序,則可能未安裝探查器。

composer require profiler --dev

您可能還需要遵循webserver-config才能在Apache或Nginx中啟用mod_rewrite。

用服務器對其進行測試。

php -S localhost:8000 -t public/

之后,導航至:

HTTP://本地主機:8000 / _profiler

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM