Hi,
while testing an automatic installation script for Debian 12 (bookworm) I encountered a problem.
The script installs mariadb, nginx, php, etc. then unpacks osTicket sources, plugins and installs the German language pack de.phar to include/i18n. After the software installation is completed I continue with the manual osTicket setup procedure in the browser, which is displayed in German, so it looks like the de.phar works in general.
After completing the form, the web browser shows an error 500, and when when reloading a "table prefix already exists" is shown, which is just a follow up error.
The server log shows this:
2024/04/04 14:56:06 [notice] 40314#40314: using inherited sockets from "5;6;"
2024/04/04 14:58:29 [error] 51933#51933: *12 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class name must be a valid object or a string in /var/www/html/osTicket/upload/include/class.i18n.php:168
Stack trace:
#0 /var/www/html/osTicket/upload/setup/inc/class.installer.php(176): Internationalization->loadDefaultData()
#1 /var/www/html/osTicket/upload/setup/install.php(52): Installer->install()
#2 {main}
thrown in /var/www/html/osTicket/upload/include/class.i18n.php on line 168" while reading response header from upstream, client: 192.168.0.112, server: _, request: "POST /setup/install.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "osticket.domain.com", referrer: "http://osticket.domain.com/setup/install.php"
The reason for this is de.phar. Without installing the language pack the installation works just fine. As a workaround I now install the language pack after completing the installation in the web browser.