后台首页打开 php没有错误信息 谷歌浏览器提示 assets/423600ef/dwz.frag.xml?_=1526009605640 500 (Internal Server Error) 打开这个xml文件提示 You donot have role to visit this controller 导致问题 后台js无法使用 打开非首页无样式文件(这个应该是前端框架的原因)
这个xml文件的内容如下
鉴于问题不是出在xml文件,所以去除xml文件内容
你应该是配置错了
assets/423600ef/dwz.frag.xml?_=1526009605640 这是一个静态文件,直接访问是不会走php的,
assets/423600ef/dwz.frag.xml?_=1526009605640
你的返回You donot have role to visit this controller,说明走的是php
You donot have role to visit this controller
发现一个配置问题,cookie并没有配置好,之前只配置了appadmin下面的 修改后问题依旧存在. appadmin下没有Store.php文件其他配置感觉关系不大.重新按照流程走了一遍,没发现其他什么问题,但是错误还在.
感觉可能是Store.php的问题,在web,h5 原来也有这个问题,配置完Store.php文件后就可以访问了,但是appadmin下没有这个文件
检查文件:@appadmin/web/assets/423600ef/dwz.frag.xml 是否存在
如果不存在,检查 @appadmin/web/assets 文件夹是否可写
@appadmin/web/assets
@Dongtan #4楼 文件存在
drwxrwxrwx 9 ryh ryh 4096 5月 11 10:56 assets -rwxrwxrwx 1 ryh ryh 318 4月 17 12:06 favicon.ico -rwxrwxrwx 1 ryh ryh 47 4月 17 12:06 .gitignore -rwxrwxrwx 1 ryh ryh 2737 5月 11 13:33 index.php -rwxrwxrwx 1 ryh ryh 0 5月 11 09:14 index-test.php 权限也是有的
你自己找找原因把
http://fecshop.appadmin.fancyecommerce.com/assets/ff5658d1/dwz.frag.xml
是可以访问的,就是这里的问题
@Dongtan #7楼 http://appadmin.fecshop1.com/assets/423600ef/dwz.frag.xml 本地这个访问是500错误,提示You donot have role to visit this controller 正在继续找原因.感谢帮忙.
可能是nginx没有配置打开xml文件造成的.
location ~* ^.+.(xml|jpg|jpeg|css|png|gif|js|ico|swf|htc|cab|apk|ipa|exe|txt|woff|ttf|eot|svg)$ { access_log off; expires 30d; }
在里面加了xml后就可以了.