此问题通常是由于缺少重写规则导致的。请按照以下步骤进行修复:
打开项目的.htaccess文件。
添加以下两行代码:
RewriteCond %{REQUEST_URI} !/public/ [NC] RewriteRule ^(.*)$ /public/$1 [L]
打开项目的app/config/config.yml文件。
查找以下行:
oro_web_profiler: toolbar: enabled: false
oro_web_profiler: toolbar: enabled: true
示例代码:
在.htaccess文件中添加以下代码:
RewriteCond %{REQUEST_URI} !/public/ [NC] RewriteRule ^(.*)$ /public/$1 [L]
在app/config/config.yml文件中更改以下内容:
oro_web_profiler: toolbar: enabled: true
请注意,具体的文件路径可能会因您的项目而异。