I am deploying Symfony 4 website on a 1&1 server shared hosting. and I am facing an error which I guess is link with the autoload that cannot compile the good path that is given to it.
So it seems that in the first path between "composer" and "symfony", there is "../" to actually leave the composer directory and then go to the symfony one, but it is compiling instead of changing directory.
I transfered my project with Filezilla.
Before the transfer I prepared my project by changing .env to prod and DB connection. But I also executed this command :
composer install --no-dev --optimize-autoloader
composer dump-autoload --optimize --no-dev --classmap-authoritative
Many thanks for your help in advance
The error shown is :
Fatal error: require(): Failed opening required '/homepages/xx/xxxxxxxx/htdocs/snowtricks/vendor/composer/../symfony/phpunit-bridge/bootstrap.php' (include_path='.:/usr/lib/php7.2') in /homepages/xx/xxxxxxx/htdocs/snowtricks/vendor/composer/autoload_real.php on line 66
SYMFONY_ENV
toprod
and add--no-dev
option when installing dependencies by the composer. – Mohammad Zare Moghadam