we had the app running in /htdocs/dams, but now moving it to the web farm servers under the root folder /htdocs
all of a sudden we encounter various dbal errors
/vendor/doctrine/dbal/src/Driver/AbstractMySQLDriver.php(42): Class “Doctrine\DBAL\Platforms\MariaDB1010Platform” not found
we literally copied the contents of the old /htdocs/dams/ into the new /htdocs, did composer updates, and still the above message occurs. deleted the vendors folder and .lock and update. re-generated from phpM and upload with the same results.
not sure if it has to do with the htaccess, we copied the previous htaccess file with no effect.
on the dev server the same code is running but in /htdocs/dams, so we are just moving it up 1 level to the root htdocs of the new app server,
php v: 8.3.19
You probably have different versions of PHP on your development and production servers. If your production web server is running PHP 8.3, set Target PHP version to “8.3” and generate again and run composer update again. Then delete the “vendor” folder (under /htdocs) on your production server and upload again.
You better always use the same PHP version on your development and production server to avoid such discrepancies.
the linux flavours are the same on all the servers - tumbleweed. the old linux server with php 8.3.17 was upgraded to php 8.3.19 ot match the 5 new web servers.
the app is still running successfully on the old server with 8.3.19,.
we then copied the app to the servers and still the app fails with:
srv/www/htdocs/dams/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php(101): An exception occurred in the driver: No such file or directory