Class mysqli not found in DBConnection.php  [GELÖST]

Haben Sie einen Bug entdeckt? Teilen Sie es uns mit.
Post Reply
calli23
Posts: 1
Joined: Wed 12. Feb 2025, 09:01

Class mysqli not found in DBConnection.php

Post by calli23 »

STOP - Bitte lesen Sie die nächsten Zeilen aufmerksam!

Hallo zusammen,

ich habe nach einem Update auf Version 25.0 und einem PHP-Update auf 8.3 folgende Problematik festgestellt und hoffe, dass jemand von euch weiß, mit welchen Handgriffen ich hier das Problem beheben kann.
---------------------------------------------------------------------------

Server-Betriebssystem + Version
Debian 12.9


Eingesetzte Server-Virtualisierung-Technologie
KVM


KeyHelp-Version + Build-Nummer
25.0 - Build 3398


Problembeschreibung / Fehlermeldungen
Die Panel-Webseite bleibt weiß. Ein Blick in die php-error.log offenbart folgendes Problem:

Code: Select all

PHP Fatal error: Uncaught Error: Class "mysqli" not found in /home/keyhelp/www/keyhelp/core-old/pending/DBConnection.php:75 
Wenn ich nun mit

Code: Select all

php -m
mir die installierten Module anzeigen lasse, ist mysqli installiert. Auch

Code: Select all

phpenmod
hat keinen Erfolg gebracht.

Erwartetes Ergebnis
Das Panel funktioniert wieder.

Tatsächliches Ergebnis
Blank Page mit Fehler im php-error.log

Schritte zur Reproduktion
Siehe Problembeschreibung.

Zusätzliche Informationen
Installation von PHP 8.3


Grüße und Danke vorab für eure Zeit!
Calli
User avatar
Florian
Keyweb AG
Posts: 1682
Joined: Wed 20. Jan 2016, 02:28

Re: Class mysqli not found in DBConnection.php  [GELÖST]

Post by Florian »

Hallo,

ich zitiere folgenden Satz, der groß im Keyhelp steht in einer blauen Box beim ersten Login.
Ändern Sie niemals den Standard-PHP-Interpreter Ihres Betriebssystems.
Wenn Sie andere PHP-Versionen benötigen, verwenden Sie die unter Konfiguration -> PHP-Interpreter bereitgestellten Versionen.
Debian 12 bringt PHP 8.2 mit. Dies solltest du zunächst wieder installieren.

Code: Select all

# dpkg --list | grep php
ii  libapache2-mod-php8.2             8.2.26-1~deb12u1                        amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  php                               2:8.2+93                                all          server-side, HTML-embedded scripting language (default)
ii  php-auth-sasl                     1.1.0-1                                 all          Abstraction of various SASL mechanism responses
ii  php-bcmath                        2:8.2+93                                all          Bcmath module for PHP [default]
ii  php-common                        2:93                                    all          Common files for PHP packages
ii  php-curl                          2:8.2+93                                all          CURL module for PHP [default]
ii  php-fpm                           2:8.2+93                                all          server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
ii  php-gd                            2:8.2+93                                all          GD module for PHP [default]
ii  php-gmp                           2:8.2+93                                all          GMP module for PHP [default]
ii  php-imagick                       3.7.0-4                                 amd64        Provides a wrapper to the ImageMagick library
ii  php-intl                          2:8.2+93                                all          Internationalisation module for PHP [default]
ii  php-mail-mime                     1.10.11-1                               all          PHP PEAR module for creating MIME messages
ii  php-mbstring                      2:8.2+93                                all          MBSTRING module for PHP [default]
ii  php-mysql                         2:8.2+93                                all          MySQL module for PHP [default]
ii  php-net-sieve                     1.4.6-1                                 all          Handles talking to a sieve server
ii  php-net-smtp                      1.10.1-1                                all          PHP PEAR module implementing SMTP protocol
ii  php-net-socket                    1.2.2-2                                 all          Network Socket Interface
ii  php-pear                          1:1.10.13+submodules+notgz+2022032202-2 all          PEAR Base System
ii  php-pspell                        2:8.2+93                                all          pspell module for PHP [default]
ii  php-readline                      2:8.2+93                                all          readline module for PHP [default]
ii  php-redis                         5.3.7+4.3.0-3                           amd64        PHP extension for interfacing with Redis
ii  php-soap                          2:8.2+93                                all          SOAP module for PHP [default]
ii  php-xml                           2:8.2+93                                all          DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii  php-zip                           2:8.2+93                                all          Zip module for PHP [default]
ii  php8.2                            8.2.26-1~deb12u1                        all          server-side, HTML-embedded scripting language (metapackage)
ii  php8.2-bcmath                     8.2.26-1~deb12u1                        amd64        Bcmath module for PHP
ii  php8.2-cli                        8.2.26-1~deb12u1                        amd64        command-line interpreter for the PHP scripting language
ii  php8.2-common                     8.2.26-1~deb12u1                        amd64        documentation, examples and common module for PHP
ii  php8.2-curl                       8.2.26-1~deb12u1                        amd64        CURL module for PHP
ii  php8.2-fpm                        8.2.26-1~deb12u1                        amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
ii  php8.2-gd                         8.2.26-1~deb12u1                        amd64        GD module for PHP
ii  php8.2-gmp                        8.2.26-1~deb12u1                        amd64        GMP module for PHP
ii  php8.2-igbinary                   3.2.13-1                                amd64        igbinary PHP serializer
ii  php8.2-imagick                    3.7.0-4                                 amd64        Provides a wrapper to the ImageMagick library
ii  php8.2-intl                       8.2.26-1~deb12u1                        amd64        Internationalisation module for PHP
ii  php8.2-mbstring                   8.2.26-1~deb12u1                        amd64        MBSTRING module for PHP
ii  php8.2-mysql                      8.2.26-1~deb12u1                        amd64        MySQL module for PHP
ii  php8.2-opcache                    8.2.26-1~deb12u1                        amd64        Zend OpCache module for PHP
ii  php8.2-pspell                     8.2.26-1~deb12u1                        amd64        pspell module for PHP
ii  php8.2-readline                   8.2.26-1~deb12u1                        amd64        readline module for PHP
ii  php8.2-redis                      5.3.7+4.3.0-3                           amd64        PHP extension for interfacing with Redis
ii  php8.2-soap                       8.2.26-1~deb12u1                        amd64        SOAP module for PHP
ii  php8.2-xml                        8.2.26-1~deb12u1                        amd64        DOM, SimpleXML, XML, and XSL module for PHP
ii  php8.2-zip                        8.2.26-1~deb12u1                        amd64        Zip module for PHP
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply