Errors in sql queries

未关闭
#231 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php, sql
领域
databases

调研方向

Examine the SQL queries in plugins/flowview/flowview_runner.php at lines 127 and 149 that trigger the errors. Verify the database schema to confirm whether the src_if column exists and if p0To32 allows null values. Update the queries to use correct column names and proper null handling. Test the flowview functionality to ensure the errors no longer appear.

由索引模型根据 Issue 内容生成。

描述

bug unverified

Actual develop branch
2025-02-18 11:14:27 - CMDPHP SQL Backtrace: (/plugins/flowview/flowview_runner.php[127]:parallel_database_parent_runner(), /plugins/flowview/functions.php[4297]:flowview_db_fetch_assoc_prepared(), /plugins/flowview/database.php[182]:db_fetch_assoc_prepared(), /lib/database.php[788]:db_execute_prepared())
2025-02-18 11:14:27 - CMDPHP ERROR: A DB Row Failed!, Error: Unknown column 'src_if' in 'order clause'

2025-02-18 11:11:50 - CMDPHP SQL Backtrace: (/plugins/flowview/flowview_runner.php[149]:parallel_database_child_runner(), /plugins/flowview/functions.php[4434]:flowview_db_execute(), /plugins/flowview/database.php[70]:db_execute(), /lib/database.php[420]:db_execute_prepared())
2025-02-18 11:11:50 - CMDPHP ERROR: A DB Exec Failed!, Error: Column 'p0To32' cannot be null

主要语言
PHP
星标
21
派生
13
平均合并
1 天 15 小时
30 天内合并 PR
13

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Cacti/plugin_flowview 的其他 Issue

查看 Cacti/plugin_flowview 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。