后台有个xml出错 You donot have role to visit this controller

bug问题 · ruanyihang · 于 5年前 发布 · 2072 次阅读

后台首页打开 php没有错误信息 谷歌浏览器提示 assets/423600ef/dwz.frag.xml?_=1526009605640 500 (Internal Server Error) 打开这个xml文件提示 You donot have role to visit this controller 导致问题 后台js无法使用 打开非首页无样式文件(这个应该是前端框架的原因)

这个xml文件的内容如下


鉴于问题不是出在xml文件,所以去除xml文件内容

共收到 9 条回复 问题提问
Dongtan#15年前 1 个赞

你应该是配置错了

assets/423600ef/dwz.frag.xml?_=1526009605640 这是一个静态文件,直接访问是不会走php的,

你的返回You donot have role to visit this controller,说明走的是php

ruanyihang#25年前 0 个赞

发现一个配置问题,cookie并没有配置好,之前只配置了appadmin下面的 修改后问题依旧存在. appadmin下没有Store.php文件其他配置感觉关系不大.重新按照流程走了一遍,没发现其他什么问题,但是错误还在.

ruanyihang#35年前 0 个赞

感觉可能是Store.php的问题,在web,h5 原来也有这个问题,配置完Store.php文件后就可以访问了,但是appadmin下没有这个文件

Dongtan#45年前 0 个赞

检查文件:@appadmin/web/assets/423600ef/dwz.frag.xml 是否存在

如果不存在,检查 @appadmin/web/assets 文件夹是否可写

ruanyihang#55年前 0 个赞

@Dongtan #4楼 文件存在

ruanyihang#65年前 0 个赞

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 权限也是有的

Dongtan#75年前 0 个赞

你自己找找原因把

http://fecshop.appadmin.fancyecommerce.com/assets/ff5658d1/dwz.frag.xml

是可以访问的,就是这里的问题

ruanyihang#85年前 0 个赞

@Dongtan #7楼 http://appadmin.fecshop1.com/assets/423600ef/dwz.frag.xml 本地这个访问是500错误,提示You donot have role to visit this controller 正在继续找原因.感谢帮忙.

ruanyihang#95年前 1 个赞

可能是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后就可以了.

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics