Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

http://tpadmin.yuan1994.com/admin.html-官网示例问题 #7

Open
panxl6 opened this issue Mar 6, 2017 · 0 comments
Open

http://tpadmin.yuan1994.com/admin.html-官网示例问题 #7

panxl6 opened this issue Mar 6, 2017 · 0 comments

Comments

@panxl6
Copy link

panxl6 commented Mar 6, 2017

特别说明:对于这个框架来说可能不是bug,但是对于这个官方示例来说应该是bug。因为没有其他的渠道反映(加了QQ但是还没通过),所有在这留言了。

官方示例中,点开节点管理,出现bug:
http://tpadmin.yuan1994.com/admin.html

控制器不存在:adminRole.AdminNode

[0] HttpException in App.php line 381
控制器不存在:adminRole.AdminNode

    // 设置当前请求的控制器、操作
    $request->controller(Loader::parseName($controller, 1))->action($actionName);

    // 监听module_init
    Hook::listen('module_init', $request);

    $instance = Loader::controller($controller, $config['url_controller_layer'], $config['controller_suffix'], $config['empty_controller']);
    if (is_null($instance)) {
        throw new HttpException(404, 'controller not exists:' . Loader::parseName($controller, 1));
    }
    // 获取当前操作名
    $action = $actionName . $config['action_suffix'];

    $vars = [];
    if (is_callable([$instance, $action])) {
        // 执行操作方法
        $call = [$instance, $action];
    } elseif (is_callable([$instance, '_empty'])) {

Call Stack
in App.php line 381
at App::module(['admin', 'admin_role.admin_nod...', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => true, ...], null) in App.php line 140
at App::run() in start.php line 18
at require('/home/www/tpadmin/th...') in index.php line 17
Environment Variables
GET Dataempty
POST Dataempty
Filesempty
Cookies
thinkphp_show_page_trace 0|0
PHPSESSID 8djqd17disjcfquffaa09poor5
Hm_lvt_966ddd41aaf1ee63fd111ae099abfc56 1488769467
Hm_lpvt_966ddd41aaf1ee63fd111ae099abfc56 1488769648
Session
think { "auth_id": "1", "user_name": "admin", "real_name": "\u8d85\u7ea7\u7ba1\u7406\u5458", "last_login_ip": "219.155.4.206", "last_login_time": "1488769051", "administrator": true }
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /home/www/tpadmin/public/index.php
QUERY_STRING s=/admin/admin_role.admin_node/index.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /admin/admin_role.admin_node/index.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /home/www/tpadmin/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.10.1
REMOTE_ADDR 183.238.237.123
REMOTE_PORT 5160
SERVER_ADDR 139.129.129.244
SERVER_PORT 80
SERVER_NAME tpadmin.demo.tianpian.net.cn
REDIRECT_STATUS 200
HTTP_HOST tpadmin.yuan1994.com
HTTP_CONNECTION keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
HTTP_DNT 1
HTTP_REFERER http://tpadmin.yuan1994.com/admin/index/index.html
HTTP_ACCEPT_ENCODING gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE zh-CN,zh;q=0.8,en;q=0.6,de;q=0.4,zh-TW;q=0.2
HTTP_COOKIE thinkphp_show_page_trace=0|0; PHPSESSID=8djqd17disjcfquffaa09poor5; Hm_lvt_966ddd41aaf1ee63fd111ae099abfc56=1488769467; Hm_lpvt_966ddd41aaf1ee63fd111ae099abfc56=1488769648
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1488769652.7254
REQUEST_TIME 1488769652
PATH_INFO /admin/admin_role.admin_node/index.html
Environment Variablesempty
ThinkPHP Constants
APP_PATH /home/www/tpadmin/public/../application/
THINK_VERSION 5.0.4
THINK_START_TIME 1488769652.7259
THINK_START_MEM 273392
EXT .php
DS /
THINK_PATH /home/www/tpadmin/thinkphp/
LIB_PATH /home/www/tpadmin/thinkphp/library/
CORE_PATH /home/www/tpadmin/thinkphp/library/think/
TRAIT_PATH /home/www/tpadmin/thinkphp/library/traits/
ROOT_PATH /home/www/tpadmin/
EXTEND_PATH /home/www/tpadmin/extend/
VENDOR_PATH /home/www/tpadmin/vendor/
RUNTIME_PATH /home/www/tpadmin/runtime/
LOG_PATH /home/www/tpadmin/runtime/log/
CACHE_PATH /home/www/tpadmin/runtime/cache/
TEMP_PATH /home/www/tpadmin/runtime/temp/
CONF_PATH /home/www/tpadmin/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
QINIU_FUNCTIONS_VERSION 7.1.3
ThinkPHP V5.0.4 { 十年磨一剑-为API开发设计的高性能框架 }

@panxl6 panxl6 changed the title [0] HttpException in App.php line 381 http://tpadmin.yuan1994.com/admin.html-官网示例问题 Mar 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant