Closed jokesterfr closed 5 months ago
Stuck here for now: it seems the nightly zip does not embed exactly the same PrestaShop bundle. The installation is directly on error (see assets/hydrate.sh):
Error: Class "Symfony\Bundle\DebugBundle\DebugBundle" not found in /var/www/html/app/AppKernel.php:80
Stack trace:
#0 /var/www/html/vendor/symfony/http-kernel/Kernel.php(386): AppKernel->registerBundles()
#1 /var/www/html/vendor/symfony/http-kernel/Kernel.php(788): Symfony\Component\HttpKernel\Kernel->initializeBundles()
#2 /var/www/html/vendor/symfony/http-kernel/Kernel.php(128): Symfony\Component\HttpKernel\Kernel->preBoot()
#3 /var/www/html/app/AppKernel.php(102): Symfony\Component\HttpKernel\Kernel->boot()
#4 /var/www/html/install/controllers/console/process.php(367): AppKernel->boot()
#5 /var/www/html/install/controllers/console/process.php(146): InstallControllerConsoleProcess->initKernel()
#6 /var/www/html/install/classes/controllerConsole.php(139): InstallControllerConsoleProcess->process()
#7 /var/www/html/install/index_cli.php(57): InstallControllerConsole::execute(19, Array)
#8 {main}/var/www/html #
Answer from matks:
The DebugBundle is a Symfony Bundle only included in dev and tests environment. So when running Composer install to get PHP dependencies of prestashop, if you run composer install --no-dev it will NOT install the DebugBundle If you run composer install or composer install --dev you will get the DebugBundle My guess is that you ran composer install --no-dev BUT your docker image is trying to run PrestaShop in dev/test environment so it looks for DebugBundle and does not find it
Related to this issue: https://github.com/PrestaShop/PrestaShop/issues/35179
Today I have downloaded latest nightly ZIPs from https://nightly.prestashop-project.org/
The 8.1.4 ZIP contains DebugBundle The 9.0.0 ZIP does not contain it
So the error is logical.
@jolelievre found the explanation
Following commit https://github.com/PrestaShop/PrestaShop/blob/8f9df9b762f9210506856f6684f19f16f2682371/composer.json#L201 the DebugBundle dependency was moved from PROD Composer dependencies to DEV Composer dependencies. So DebugBundle was not included in the develop nightly ZIP.
PR https://github.com/PrestaShop/PrestaShop/pull/35274 will move the DebugBundle dependency back into PROD dependencies because developers can choose to use the Debug Mode and Debug Tools in production shops.
@jokesterfr the fix was merged, so it should be available in the next nightly build tomorrow, hoping this was the only issue, feel free to warn us if there's other bug poping up
Thanks a lot guys! Will give this PR a spin tomorrow ;)
Unfortunately there is a new issue this morning:
#29 7.412 Twig\Error\LoaderError: The "/var/www/html/admin-dev/themes/new-theme" directory does not exist ("/var/www/html/admin-dev/themes/new-theme"). in /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:92
@jolelievre
Unfortunately there is a new issue this morning:
#29 7.412 Twig\Error\LoaderError: The "/var/www/html/admin-dev/themes/new-theme" directory does not exist ("/var/www/html/admin-dev/themes/new-theme"). in /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:92
If I check the ZIP I downloaded yesterday, the correct path would be /var/www/html/admin/themes/new-theme
: one folder is admin
not admin-dev
Possibly this parameter here https://github.com/PrestaShop/PrestaShop/blob/develop/app/config/config.yml#L102
Hmm, so it could be related to the admin folder that is renamed after installation maybe? 🤔
@jolelievre do you mean I have to change the default admin directory from admin-dev
to admin
? Or should I expect a fix in the next nightly zip?
May be link to this issue : PrestaShop/PrestaShop#35354
Should be fixed by https://github.com/PrestaShop/PrestaShop/pull/35417
PS_VERSION=nightly ./build.sh