corestack_ php_ requirements_ get
Application PHP requirements.
When to use it
See what the application on a row needs from PHP, read from its composer.lock or WordPress's version file: the PHP constraint and range, the ext-* extensions it needs, the extensions the row does not load (missing_extensions) and the PHP versions outside its range (outside_range). It answers what was read last; refresh: true reads the live site first (at most once every few minutes; a failed read leaves the stored answer as it was). Check it before a PHP version change.
Ask for it
Using the Corefinity MCP server, call corestack_php_requirements_get with site_id 4211, refresh true. (Application PHP requirements.) Tell me what it returned.Inputs
refreshboolean
Read the live site first (at most once every few minutes).
site_idintegerRequired
The row: the site or one of its environments. At least 1.
Example call
{
"name": "corestack_php_requirements_get",
"arguments": {
"site_id": 4211,
"refresh": true
}
}If it is refused
| Reason | What to do |
|---|---|
not_running | The site is not running, so it cannot be read; the stored answer stays. |
switched_off | Running commands on sites is switched off at the moment. |
layout_unknown | The site's htdocs is not a release the Control Panel deployed, so the requirements cannot be read from it; the stored answer stays. |
requirements_unreadable | Composer.lock or WordPress's version file is there but cannot be read as the application's file (outside the site root, not a regular file, unreadable or over 8 MiB); the stored answer stays. |
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |
The same task elsewhere
Was this helpful?