BlueprintB
Blueprint7mo ago
1 reply
Sirzento | Nico

Extension installation error with php 8.4

Someone who wants to install my Extension does run into troubles when installing it.

Pterodactyl: 1.11.10
Blueprint: beta-2024-12
PHP: 8.4.7

Here is the error message that pops up when installing the extension:

02:01:18 INFO: Running database migrations..
PHP Deprecated:  Illuminate\Log\Logger::__construct(): Implicitly marking parameter $dispatcher as nullable is deprecated, the explicit nullable type must be used instead in /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Log/Logger.php on line 46

   Error

  Class "DOMDocument" not found

  at vendor/nunomaduro/termwind/src/HtmlRenderer.php:32
     28▕      * Parses the given html.
     29▕      */
     30▕     public function parse(string $html): Components\Element
     31▕     {
  ➜  32▕         $dom = new DOMDocument;
     33▕
     34▕         if (strip_tags($html) === $html) {
     35▕             return Termwind::span($html);
     36▕         }

      +23 vendor frames

  24  artisan:35
      Illuminate\Foundation\Console\Kernel::handle()

02:01:18 SUCCESS: serverorganizer has been installed.


When looking at old messages inside this discord, I saw that one user had the same error message when running the command php artisan view:clear.
Another user pointed out that this happens if php 8.4 is installed on the system.

The message I found with the same error message: https://discord.com/channels/1063548024825057451/1155504581762089052/1376265527499948203
Solution of another user: https://discord.com/channels/1063548024825057451/1155504581762089052/1376267872023609476

Just to be sure, are this the right steps to proceed in this situation?

1. Backup
.env
inside /var/www/pterodactyl
2. Run apt remove --purge php8.4 php8.4-* -y to remove php 8.4
3. Run apt -y install php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} mariadb-server nginx tar unzip git redis-server to install all ptero dependecies
Was this page helpful?