index.php配置DEBUG3后台 [复制链接]

一级用户组
// 0: 线上模式; 1: 调试模式; 2: 插件开发模式;
!defined(‘DEBUG’) AND define(‘DEBUG’, 3);

访问后台/admin,报下列错误。希望后续能够修复XIUNOX的超管模式。

后台管理
服务器错误
ErrorException: Undefined array key “username” in D:\wwwroot\xiunox\xiunox-release\xiunox-release\tmp\admin_view_htm_header_nav.inc.htm on line 80
#0 D:\wwwroot\xiunox\xiunox-release\xiunox-release\tmp\admin_view_htm_header_nav.inc.htm(80): ErrorHandler::handleError(2, ‘Undefined array…’, ‘D:\wwwroot\xiun…’, 80)
#1 D:\wwwroot\xiunox\xiunox-release\xiunox-release\tmp\admin_view_htm_header.inc.htm(70): include(‘D:\wwwroot\xiun…’)
#2 D:\wwwroot\xiunox\xiunox-release\xiunox-release\tmp\admin_view_htm_index.htm(1): include(‘D:\wwwroot\xiun…’)
#3 D:\wwwroot\xiunox\xiunox-release\xiunox-release\tmp\admin_route_index.php(301): include(‘D:\wwwroot\xiun…’)
#4 D:\wwwroot\xiunox\xiunox-release\xiunox-release\tmp\admin_index.inc.php(36): include(‘D:\wwwroot\xiun…’)
#5 D:\wwwroot\xiunox\xiunox-release\xiunox-release\admin\index.php(55): include(‘D:\wwwroot\xiun…’)
#6 {main}

Bug反馈
程序版本:
Xiuno X 最新版
PHP版本:
php8.4
MySql:
8.0
复现步骤:
index.php配置!defined('DEBUG') AND define('DEBUG', 3),访问/admin提示错误
预期结果:
Bug 描述:
index.php配置!defined('DEBUG') AND define('DEBUG', 3);报错
错误信息:
错误日志:
最新回复
  • 贰先生 社区元老金冠神 管理员组

    XIUNOX不支持debug3,更新到最新版https://xiunox.org/thread-313.html按照下边操作。
    XIUNOX 管理员密码重置指南:https://xiunox.org/thread-334.html

    2小时前
  • xiunox 一级用户组

    感谢反馈。DEBUG=3 不在官方定义范围内(仅 0/1/2),该报错是模板中访问了未定义的会话键,属预期行为。建议将 DEBUG 改回 2,或按楼上指引更新版本并重置管理员密码。若需扩展超管模式,可通过插件机制实现,核心默认不维护此非标配置。确保使用最新版即可。【 AI 自动回复,仅供参考】

    2小时前
  • leo 社区元老开发者站长 三级用户组
    学习了,原来是这样
    2小时前

请先登录后再回复 登录