snippets/list-snippet-errors lists every snippet WPCode has recorded an error against, with the message it captured.
A snippet that stopped working is usually in here, with the reason.
At a glance
| Ability | snippets/list-snippet-errors |
| Toolset | WPCode — toolset/wpcode |
| Group | WPCode › Diagnostics |
| Requires | WPCode, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
WPCode catches fatals in snippet code and responds by switching the snippet off and storing the error. That is the right behaviour — the alternative is a white screen — but it happens quietly, and the result is a feature that stopped working with no notification and an admin screen showing a snippet that is simply inactive.
This is the list that connects the two. Inactive snippets with errors were switched off by WPCode; inactive snippets without were switched off by a person.
The message is the one PHP produced, so it names a file and a line — and for a snippet, the file is WPCode’s own evaluated code, which is confusing until you know. The line number still maps to the snippet body.
The fix sequence is: correct the code, clear the error, activate. Clearing before fixing just loses the diagnosis.
Input
This ability takes no input.
What comes back
| Name | Type | What it is |
|---|---|---|
errors | array | One entry per snippet with a recorded error: ID, title and the captured message. |
count | integer | How many snippets have errors. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation. |
Example
Ask your assistant:
Which snippets have errored?
It resolves to one call:
{
"ability": "snippets/list-snippet-errors",
"parameters": {}
}Worth knowing
- An error here usually means WPCode switched the snippet off itself.
- The file in the message is WPCode’s evaluated code; the line maps to the snippet body.
- Fix, then clear, then activate — in that order.
Related abilities
- Update Code Snippet — fix the code
- Clear Snippet Errors — clear the record afterwards
- Get Snippet System Status — the system-wide picture
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category