The Enhance server plugin fails on any PHP version newer than its bundled client

Sheernox

New Member
Env: ClientExec 7.3.0 stable (ionCube), PHP 8.5.12, MariaDB 11.4.14, Enhance control panel with PHP 8.6 installed on its application server. Found on our production install, 2026-12-01.

Where: plugins/server/enhance/api/lib/Model/PhpVersion.php, the generated OpenAPI enum shipped with the plugin, lists php52 to php85 only (getAllowableEnumValues, lines 81-100). plugins/server/enhance/PluginEnhance.php getPlanId() lists the reseller's plans through that client before Create and before a plan change.

Bug: Once any hosting plan's default PHP version is php86, deserializing the plan list throws "InvalidArgumentException: Invalid value for enum '\OpenAPI\Client\Model\PhpVersion', must be one of: 'php56', ... 'php85'". Every first Create (no subscription id saved yet, so it looks the plan up) then fails before the subscription is made, and every upgrade or downgrade processed by the Upgrade/Downgrade service fails its Enhance step and opens a "Manual Intervention Required" ticket. Nothing in the error points at PHP versions on the plans.

Repro:
  1. In Enhance, install PHP 8.6 on the application server and set it as the default PHP version of any plan in the reseller organisation.
  2. In ClientExec, run Create on a package whose server uses the Enhance plugin.
  3. Create fails with the enum error above; no subscription or website is created. Setting the plan default back to 8.5 makes Create work again.

Fix: Regenerate the bundled client against the current Enhance API, and make enum deserialization tolerate unknown values (keep them as strings), so a new PHP release on the panel cannot stop provisioning.
 
Hi there,

This has been fixed for our next release. If you wish to open a support ticket, we can patch your system with a fix for this.
 
Back
Top