corestack_ php_ version_ change
Change the PHP version.
When to use it
Move a row to another PHP minor from corestack_php_runtime_get's versions, now or tonight. A change the version needs acknowledged is refused with ack_required naming what to acknowledge.
Ask for it
Using the Corefinity MCP server, call corestack_php_version_change with site_id 4211, to 8.4. (Change the PHP version.) Tell me what it returned.Inputs
acknowledgearray of strings
What ack_required named, once you have told the person. Up to 4 items.
eolapp_constraintextensions_offini_incompatibleapplystring
now (the default), or tonight in the row's maintenance window. window: the row's next maintenance window (tonight is kept as its alias). Defaults to now.
nowwindowtonightsite_idintegerRequired
The row: the site or one of its environments. At least 1.
tostringRequired
The PHP minor, e.g. 8.4.
Example call
{
"name": "corestack_php_version_change",
"arguments": {
"site_id": 4211,
"to": "8.4"
}
}If it is refused
| Reason | What to do |
|---|---|
invalid_arguments | to is not one of the minors this row is offered (corestack_php_runtime_get lists them; an end-of-life minor is offered only while Corefinity allows end-of-life versions). |
ack_required | The change needs the person's acknowledgements first; details.required names the keys and details.detail their sentences; tell the person, then call again with them in acknowledge. |
ini_invalid | The custom php.ini has a line the new minor does not accept; details.diagnostics lists them; fix the file with corestack_php_ini_update first. |
feature_off | apply: "tonight" needs the maintenance window queue, which is switched off; leave apply out to make the change now. |
change_pending | A change is already queued for this row's maintenance window; apply or cancel it first (corestack_pending_changes_list). |
busy | Another change is running on this row; wait for it (corestack_site_operation_get) and call again. |
not_available | This row's PHP version is not managed here; stop. |
removed | The row has been removed. |
managed_elsewhere | Another control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done. |
image_not_offered | The PHP version this change needs is not one Corefinity offers right now (withdrawn, or not published yet). Nothing was changed; send it again once Corefinity offers that version. |
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?