-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
When creating a new server, proceeding to the "Review Order" step results in an HTTP Error 500. Logs show the following:
[2023-02-16T18:46:54.853257+00:00] general.ERROR: Uncaught Exception TypeError: "str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string" at /etc/blesta/blesta/components/modules/pterodactyl/lib/pterodactyl_rule.php line 44 {"exception":"[object] (TypeError(code: 0): str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string at /etc/blesta/blesta/components/modules/pterodactyl/lib/pterodactyl_rule.php:44)"}
This makes it impossible to order new services on PHP 8.1. Reverting to PHP 7.4 fixes the issue. However, PHP 7.4 seems unable to provision pending services automatically, instead sending this notice to logs. The cron fails to complete and perpetually has a task lock.
[2023-02-12T19:50:01.570370+00:00] general.NOTICE: E_NOTICE: Array to string conversion {"code":8,"message":"Array to string conversion","file":"/etc/blesta/blesta/components/modules/pterodactyl/lib/pterodactyl_rule.php","line":44}
[2023-02-12T19:50:02.846685+00:00] general.NOTICE: Message Not Sent {"messenger":{"missing":"No messenger is configured for the given type."}}
I am using the latest Blesta (5.6.1) and the latest Pterodactyl module (1.8.1) running on Ubuntu 20.04.
Metadata
Metadata
Assignees
Labels
No labels