30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

List Snippet Errors

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

Abilitysnippets/list-snippet-errors
ToolsetWPCode — toolset/wpcode
GroupWPCode › Diagnostics
RequiresWPCode, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI 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

NameTypeWhat it is
errorsarrayOne entry per snippet with a recorded error: ID, title and the captured message.
countintegerHow many snippets have errors.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent 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


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading