Action Scheduler async queue crashes on WordPress 5.3 with `wpdb::db_server_info()` error
维护者通常 1 天内回复
@girishpanchal30 已经在做这个了。
开始于 2026年8月12日。
评估
这个 Issue 还没有评估数据。
描述
Summary
Visualizer's background Action Scheduler queue can terminate with an uncaught Call to undefined method wpdb::db_server_info() error during an AJAX request on WordPress 5.3.
Expected behavior: Scheduled actions are claimed and processed without a fatal error on supported WordPress environments.
Actual behavior: The async queue runner reaches the database claim path and throws before processing the batch.
Impact: Automatic background processing is interrupted for the affected site and request.
Customer context
- Product / area: Visualizer background auto-sync / bundled Action Scheduler
- Version: 4.0.7
- Environment: WordPress 5.3.21, PHP 7.4.33
- Integration / third party: Bundled
woocommerce/action-scheduler3.9.3 - Reported error / symptom:
Error: Call to undefined method wpdb::db_server_info()during an AJAX queue-runner request - Impact: 14 telemetry occurrences across one distinct site between 2026-07-31 20:01 UTC and 23:35 UTC.
Reproduction notes
- Install Visualizer
4.0.7on WordPress5.3.21with PHP7.4.33. - Trigger the Action Scheduler async queue runner through its AJAX request path.
- When
ActionScheduler_DBStore::claim_actions()checks database locking support, the reported production run throwsCall to undefined method wpdb::db_server_info().
Reproduction is supported by the production stack trace; no local runtime reproduction was performed because the bundled vendor/ directory is absent from this checkout.
Diagnosis
Conclusion
Production telemetry provides a direct stack trace from Visualizer's bundled Action Scheduler path: ActionScheduler_DBStore::db_supports_skip_locked() throws because it calls wpdb::db_server_info() on WordPress 5.3.21. The Visualizer 4.0.7 release locks Action Scheduler 3.9.3, and an inspected copy of that exact dependency version contains the unconditional call. This is a confirmed compatibility defect in the shipped dependency path, not Themeisle SDK code.
Where this likely occurs
vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php—ActionScheduler_DBStore::db_supports_skip_locked()lines 1038-1042 in the inspected Action Scheduler 3.9.3 copy; it obtains$wpdb->db_version()and then unconditionally calls$wpdb->db_server_info(). Telemetry identifies the equivalent bundled Visualizer file at line 1041.composer.lock— Action Scheduler package record lines 181-221 locks version3.9.3at referencec58cdbab17651303d406cd3b22cf9d75c71c986c;v4.0.7contains the same lock entry.index.php— Visualizer bootstrap lines 148-157 loadsvendor/autoload.phpand the bundled Action Scheduler entry point when present.classes/Visualizer/Plugin.php—Visualizer_Plugin::VERSIONline 31 identifies the checked release as4.0.7.- Git commit
bc14d4b8acebefc167ef51601a4898fb302d0b71introduced the Action Scheduler dependency and bootstrap under “Replace WP-Cron with Action Scheduler for reliable auto-sync”; the telemetry is from the laterv4.0.7tag.
Engineering notes
- The error occurs while
ActionScheduler_DBStore::claim_actions()evaluates whetherSKIP LOCKEDis supported, before the queue batch is processed. - The reported request context is AJAX and the stack continues through
ActionScheduler_AsyncRequest_QueueRunner, matching Visualizer's bundled async dependency loading path. - WordPress core source was not present in the inspected workspace, so the absence of
wpdb::db_server_info()on WordPress 5.3.21 is established by the production exception rather than a local core-source check. - The telemetry names no Themeisle SDK frame and explicitly marks the crash as outside SDK code.
Test coverage status
tests/test-schedule.php covers Visualizer scheduled/background import behavior, including an unauthenticated background invocation, but does not exercise Action Scheduler queue claiming or the db_supports_skip_locked() compatibility branch. No relevant Action Scheduler compatibility coverage was found during inspection.
What to verify or explore next
- Reproduce the async queue-runner request with Visualizer 4.0.7, WordPress 5.3.x, and the bundled dependency.
- Check the Action Scheduler version range supported by Visualizer's released WordPress compatibility policy.
- Run the existing scheduler test suite and a queue-claim integration scenario against WordPress 5.3.x and currently supported WordPress versions.
Unknowns / follow-up
- Telemetry covers one site, so the prevalence across other WordPress 5.3 installations is unknown.
- The customer site's database engine and version were not included in the crash report.
Confidence
Confidence: 98/100
Production telemetry records 14 AJAX crashes in Visualizer 4.0.7 on WordPress 5.3.21, and the release locks the stack frame's Action Scheduler 3.9.3 dependency whose inspected db_supports_skip_locked() implementation directly calls the unavailable wpdb::db_server_info() method.
Crash telemetry
| Occurrences | 14 |
| Distinct sites | 1 |
| First seen | 2026-07-31 20:01 UTC |
| Last seen | 2026-07-31 23:35 UTC |
| Crash location | product:vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:1041 |
| Request context | ajax |
| Inside Themeisle SDK | no |
| Product versions | 4.0.7 |
| WP versions | 5.3.21 |
| PHP versions | 7.4.33 |
| SDK versions | 3.3.57 |
Source: automated crash report — visualizer, fingerprint 28da1fdfc9908565fa3b3beaadc83288
Generated by bug-report-triage (ID: bug-report-triage_6a6d8b7c4b6548.22981080)
- 主要语言
- PHP
- 星标
- 108
- 派生
- 29
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 8
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeinwp/visualizer 的其他 Issue
-
feature-request-triage
难度 4/5 3-5 天 新手友好度 64/100
Codeinwp/visualizer#1388 ·
维护者通常 1 天内回复
-
`visualizer_schedule_refresh_db` remains missing after Visualizer reactivation可能已有人在做 @Alexia-Soare 于 7 天前认领。 未关闭bug-report bug-report-triage customer report
难度 4/5 3-5 天 新手友好度 48/100
Codeinwp/visualizer#1384 · 4 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Action Scheduler queue cleanup fatals with "Unidentified action" after concurrent deletion可能已有人在做 @Alexia-Soare 于 11 天前认领。 未关闭bug-report bug-report-triage
Codeinwp/visualizer#1369 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Add a Default value for font settings可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
Codeinwp/visualizer#1111 ·
维护者通常 1 天内回复
-
customer report doc-needed new feature
难度 5/5 一周以上 新手友好度 35/100
Codeinwp/visualizer#1058 · 4 条评论 ·
维护者通常 1 天内回复
查看 Codeinwp/visualizer 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
domain/crm-after-sales Platform(Default) priority/high
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
kind/bug status/to verify
难度 2/5 1-3 小时 新手友好度 68/100
PHP-CS-Fixer/PHP-CS-Fixer#9867 ·
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复