So I moved my Project from a Windows Server on a Linux Debian 11 and now I'm facing multiple mysqli and MeekroDB errors.
I'm using PHP7.4, Apache2 and phpMyAdmin with MariaDB
On Windows it all worked fine so far, Login worked with the DB-connection
I had to uncomment the extension=php_mysqli.dll for the Errors to disappear on Windows
On Linux i did all the same but get the following Errors
: mysqli::real_escape_string(): invalid object or resource mysqli in
/var/www/html/projectName/plugins/meekrodb/db.class.php
on line
703
Warning
: mysqli::query(): invalid object or resource mysqli in
/var/www/html/projectName/plugins/meekrodb/db.class.php
on line
792
Warning
: MeekroDB::queryHelper(): Property access is not allowed yet in
/var/www/html/projectName/plugins/meekrodb/db.class.php
on line
796
Warning
: MeekroDB::queryHelper(): Property access is not allowed yet in
/var/www/html/projectName/plugins/meekrodb/db.class.php
on line
797
Warning
: MeekroDB::queryHelper(): Property access is not allowed yet in
/var/www/html/projectName/plugins/meekrodb/db.class.php
on line
815
That's the call to the DB:
<?php
// DB Verbindungen
$mdb1 = new MeekroDB('127.0.0.1', 'userUser', 'userUserPW', 'userTable', 'utf8');
$mdb2 = new MeekroDB('127.0.0.1', 'invUser', 'invUserPW', 'inventoryTable', 'utf8');
$mdb3 = new MeekroDB('127.0.0.1', 'compUser', 'compUserPW', 'componentTable', 'utf8');
?>
I double-checked if all packages are installed aswell, and without the DB-connection it works fine aswell just without the Data and User-Login
Edit for clarification:
Looking for a way that my App runs on Linux as good as on Windows
I cloned the DB on Linux, so that I can run the connection as localhost