✅ Session 启动成功
Session ID: nribgk9hrkkt42o0imljvijo3f
Session 数据:
❌ 用户ID未设置
❌ 用户角色未设置
配置文件路径: /home/xyz103ur/public_html/src/../config/config.php
✅ 配置文件加载成功
✅ PDO 连接可用
✅ 数据库连接正常
MySQL版本: 8.0.44-cll-lve
✅ LanguageManager 加载成功
✅ 翻译函数可用
测试翻译: dashboard.title = "dashboard.title"
✅ users 表存在
users 记录数: 6
✅ courses 表存在
courses 记录数: 4
✅ sub_classes 表存在
sub_classes 记录数: 12
✅ course_payments 表存在
course_payments 记录数: 5
✅ logs 表存在
logs 记录数: 5
✅ 用户查询成功,找到 5 个用户
| ID | 用户名 | 邮箱 | 全名 | 角色 |
|---|---|---|---|---|
| 1 | admin | admin@example.com | System Administrator | admin |
| 2 | teacher1 | teacher1@example.com | John Smith | teacher |
| 3 | teacher2 | teacher2@example.com | Sarah Johnson | teacher |
| 4 | student1 | student1@example.com | Michael Chen | student |
| 5 | student2 | student2@example.com | Emily Davis | student |
✅ 课程查询成功,找到 4 个课程
| ID | 课程名 | 教师 | 学生 | 状态 | 费用 |
|---|---|---|---|---|---|
| 1 | English Conversation Basic | John Smith | Michael Chen | active | $500.00 |
| 2 | Business English Advanced | John Smith | Emily Davis | active | $800.00 |
| 3 | IELTS Preparation | Sarah Johnson | David Wilson | active | $1200.00 |
| 4 | English Grammar Intensive | Sarah Johnson | Michael Chen | active | $600.00 |
✅ 子课程查询成功,找到 5 个子课程
| ID | 课程 | 时间 | 状态 | 时长 |
|---|---|---|---|---|
| 1 | English Conversation Basic | 2025-09-15 10:00:00 | scheduled | 60分钟 |
| 2 | English Conversation Basic | 2025-09-17 10:00:00 | scheduled | 60分钟 |
| 3 | English Conversation Basic | 2025-09-19 10:00:00 | scheduled | 60分钟 |
| 4 | English Conversation Basic | 2025-09-22 10:00:00 | scheduled | 60分钟 |
| 5 | Business English Advanced | 2025-10-01 14:00:00 | scheduled | 90分钟 |
检测到的问题:
u1.name 应该是 u1.full_namesc.start_time 应该是 sc.class_datedownpayment_statusname 字段为 full_namestart_time 为 class_date原始的 admin_dashboard.php 使用了旧的数据库结构,导致SQL查询失败,页面无法正常显示内容。
下一步: 我将为你创建一个与新数据库结构完全兼容的 admin_dashboard.php 文件。