n/programu/suke · 2025-01-15
注册 登录
n/program · 2025-01-15 · 440 次浏览
u/suke白银

Auto Moderator无法启用

Auto Moderator尝试开启该插件,但是无法启用,暂时只能提供这些信息,求大佬空闲时解疑,不胜感激!

0
16
登录后参与讨论。

16 条回复

排序
  1. awq 黄金 不离不弃 2025-01-15

    Image description~~

    0
  2. suke 白银 楼主 2025-01-15

    @"Drift"#p211945 好的

    0
  3. James 💯 传奇 MANAGER 2025-01-15

    Flarum提问题一定要帖 storage/logs 目录下的日志

    0
  4. suke 白银 楼主 2025-01-15

    @"James"#p212279 日志有点多,应该是选取最新的吧?

    0
  5. James 💯 传奇 MANAGER 2025-01-15

    先把日志清掉,然后启动,把日志帖出来

    0
  6. suke 白银 楼主 2025-01-15

    @"James"#p212282
    ~~[upl-file uuid=85ef4ee7-9f90-4838-938d-88a5dc43ba86 size=30kB]~~flarum-2025-01-15.txt[/upl-file]
    我也看不来,暂时只能麻烦前辈你们了

    0
  7. James 💯 传奇 MANAGER 2025-01-15

    @"苏可"#p212283

    ```
    
    Next Illuminate\Database\QueryException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'criteria' already exists (SQL: create table `criteria` (`id` int unsigned not null auto_increment primary key, `last_edited_by_id` int unsigned not null, `name` varchar(200) not null, `icon` varchar(50) not null, `description` text not null, `metrics` text not null, `requirements` text not null, `actions` text not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci' engine = InnoDB) in /www/wwwroot/www.znzx.cc/vendor/illuminate/database/Connection.php:712
    Stack trace:
    ```
    

    把这个表删一下。 </s>criteria<e>。 应该是装过类似的插件,表冲突了。

    0
  8. suke 白银 楼主 2025-01-15

    @"James"#p212286 数据库里的criteria直接删掉?:ac03:

    0
  9. James 💯 传奇 MANAGER 2025-01-15

    @"苏可"#p212290 Bingo

    0
  10. suke 白银 楼主 2025-01-15

    @"James"#p212296 还是打不开:(

    0
  11. James 💯 传奇 MANAGER 2025-01-15

    @"苏可"#p212319 可能还有别的表要删,继续帖日志

    0
  12. suke 白银 楼主 2025-01-15

    @"James"#p212323
    ~~[upl-file uuid=b4f6af1e-54fa-491d-b92f-baeab7cb90bb size=267kB]~~flarum-2025-01-15.txt[/upl-file]
    麻烦您了

    0
  13. James 💯 传奇 MANAGER 2025-01-15

    把 ~~</s>criteria<e> 相关的两个表都删除一下。Image description

    0
  14. suke 白银 楼主 2025-01-15

    @"James"#p212337
    ~~[upl-file uuid=1f45a4fc-2906-45ac-acc2-91d56651536c size=297kB]~~flarum-2025-01-15.txt[/upl-file]
    还是不行.....

    0
  15. James 💯 传奇 MANAGER 2025-01-15

    @"苏可"#p212348 Amen! 建议你看下日志最新的,然后问ChatGPT

    ```
    Next Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `criterion_user` add constraint `criterion_user_criterion_id_foreign` foreign key (`criterion_id`) references `criteria` (`id`) on delete cascade) in /www/wwwroot/www.znzx.cc/vendor/illuminate/database/Connection.php:712
    ```
    

    没法插入外键

    0
  16. suke 白银 楼主 2025-01-17

    @"James"#p212357 AI也没解决,丸辣:ac35:

    0