Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php ./bin/console cache:clear --env=prod #15324

Closed
centoasa opened this issue Aug 30, 2019 · 6 comments
Closed

php ./bin/console cache:clear --env=prod #15324

centoasa opened this issue Aug 30, 2019 · 6 comments

Comments

@centoasa
Copy link

@centoasa centoasa commented Aug 30, 2019

prestashop 1.7.6.1 on php 7.2.21 ubuntu
ssh and php ./bin/console cache:clear --env=prod
` // Clearing the cache for the prod environment with debug false

PHP Warning: Use of undefined constant DB_SERVER - assumed 'DB_SERVER' (this will throw an Error in a future version of PHP) in /var/www/vhosts/100asa.it/httpdocs/classes/db/Db.php on line 219
PHP Warning: Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in /var/www/vhosts/100asa.it/httpdocs/classes/db/Db.php on line 219
PHP Warning: Use of undefined constant DB_PASSWD - assumed 'DB_PASSWD' (this will throw an Error in a future version of PHP) in /var/www/vhosts/100asa.it/httpdocs/classes/db/Db.php on line 219
PHP Warning: Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in /var/www/vhosts/100asa.it/httpdocs/classes/db/Db.php on line 219

In DbPDO.php line 127:

Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--]
`

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

@khouloudbelguith khouloudbelguith commented Aug 30, 2019

Hi @centoasa,

Thanks for your report.
I have the same issue with PS1.7.6.1 & PS1.7.5.2.
I tried with PHP7.2.13 & PHP7.0.33 same error

Warning: Use of undefined constant _DB_SERVER_ - assumed '_DB_SERVER_' (this will throw an Error in a future version of PHP) in /var/www/html/1761/classes/db/Db.php on line 219
In DbPDO.php line 127:

  Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution


cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--] <command>

image

I’ll add this to the debug roadmap so that it’s fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

@mickaelandrieu

This comment has been minimized.

Copy link
Member

@mickaelandrieu mickaelandrieu commented Aug 30, 2019

Hello @khouloudbelguith,

does #15081 fixes this error ?

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

@khouloudbelguith khouloudbelguith commented Sep 2, 2019

Hi @mickaelandrieu,

I checked your PR but I have issues.

  • php -d memory_limit=-1 ./bin/console cache:clear
PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to PrestaShopBundle\Translation\Loader\DatabaseTranslationLoader::addLangConstraint() must be an instance of PrestaShopBundle\Entity\Lang, null given, called in /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php on line 76 in /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php:98
Stack trace:
#0 /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php(76): PrestaShopBundle\Translation\Loader\DatabaseTranslationLoader->addLangConstraint(Object(Doctrine\ORM\QueryBuilder), NULL)
#1 /projet/puppeteer/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(381): PrestaShopBundle\Translation\Loader\DatabaseTranslationLoader->load('validators.af.d...', 'af', 'validators')
#2 /projet/puppeteer/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Translation/Tra in /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php on line 98

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to PrestaShopBundle\Translation\Loader\DatabaseTranslationLoader::addLangConstraint() must be an instance of PrestaShopBundle\Entity\Lang, null given, called in /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php on line 76 in /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php on line 98

Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to PrestaShopBundle\Translation\Loader\DatabaseTranslationLoader::addLangConstraint() must be an instance of PrestaShopBundle\Entity\Lang, null given, called in /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php on line 76 in /projet/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php on line 98

Call Stack:
    8.2939   53303944   1. Symfony\Component\Debug\ErrorHandler->handleException() /projet/puppeteer/PrestaShop/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:0
  • php -d memory_limit=-1 ./bin/console cache:clear --env=prod
In DatabaseTranslationLoader.php line 98:
                                                                                                                                                                                                         
  Type error: Argument 2 passed to PrestaShopBundle\Translation\Loader\DatabaseTranslationLoader::addLangConstraint() must be an instance of PrestaShopBundle\Entity\Lang, null given, called in /proje  
  t/puppeteer/PrestaShop/src/PrestaShopBundle/Translation/Loader/DatabaseTranslationLoader.php on line 76    

Thanks!

@mickaelandrieu

This comment has been minimized.

Copy link
Member

@mickaelandrieu mickaelandrieu commented Sep 3, 2019

Hello @khouloudbelguith,

I've updated my PR to retrieve data from 1.7.6.1 and I know have another error:

error

I have same results for both 1.7.6.1 and develop branches.
I'm not sure if it's trivial or not (it's not for me at least).

Looks like yet another translation loader issue sadly /c @eternoendless

Also:

regression

I don't have any issue with 1.7.6.0.

EDIT: using git exec on cache clear command between 1.7.6.0 and 1.7.6.1, I can tell this commit have introduced the regression.

Hope it helps :(

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

@khouloudbelguith khouloudbelguith commented Sep 4, 2019

Hi @mickaelandrieu,

Yes, you are right.
Using the Tag 1.7.6.1 cloned from GitHub(not the release).
I have this error

 // Clearing the cache for the prod environment with debug                      
 // false                                                                       

PHP Notice:  Use of undefined constant _DB_SERVER_ - assumed '_DB_SERVER_' in /projet/QA/QA/classes/db/Db.php on line 219
PHP Stack trace:
PHP   1. {main}() /projet/QA/QA/bin/console:0
PHP   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
PHP   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
PHP   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
PHP   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
PHP   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
PHP   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
PHP  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
PHP  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
PHP  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
PHP  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
PHP  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
PHP  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
PHP  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
PHP  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
PHP  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
PHP  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
PHP  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
PHP  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
PHP  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64

Notice: Use of undefined constant _DB_SERVER_ - assumed '_DB_SERVER_' in /projet/QA/QA/classes/db/Db.php on line 219

Call Stack:
    0.0001     358032   1. {main}() /projet/QA/QA/bin/console:0
    0.0102    2533792   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
    0.0156    2854056   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
    0.0437    7402400   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
    0.0455    7647920   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
    0.0455    7647920   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
    0.0485    7990528   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
    0.0486    7991736   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
    0.0646    8703424   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
    2.9579   29524392  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
    3.0619   30314008  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
    3.0619   30314384  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
    3.0964   30655328  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
    3.0964   30655328  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
    3.0964   30656120  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
    3.0964   30656200  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
    3.0964   30656200  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
    3.0964   30656200  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
    3.0965   30656200  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
    3.0965   30656200  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
    3.1108   30878928  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
    3.2791   30976512  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64

PHP Notice:  Use of undefined constant _DB_USER_ - assumed '_DB_USER_' in /projet/QA/QA/classes/db/Db.php on line 219
PHP Stack trace:
PHP   1. {main}() /projet/QA/QA/bin/console:0
PHP   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
PHP   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
PHP   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
PHP   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
PHP   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
PHP   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
PHP  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
PHP  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
PHP  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
PHP  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
PHP  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
PHP  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
PHP  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
PHP  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
PHP  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
PHP  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
PHP  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
PHP  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
PHP  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64

Notice: Use of undefined constant _DB_USER_ - assumed '_DB_USER_' in /projet/QA/QA/classes/db/Db.php on line 219

Call Stack:
    0.0001     358032   1. {main}() /projet/QA/QA/bin/console:0
    0.0102    2533792   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
    0.0156    2854056   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
    0.0437    7402400   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
    0.0455    7647920   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
    0.0455    7647920   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
    0.0485    7990528   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
    0.0486    7991736   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
    0.0646    8703424   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
    2.9579   29524392  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
    3.0619   30314008  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
    3.0619   30314384  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
    3.0964   30655328  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
    3.0964   30655328  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
    3.0964   30656120  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
    3.0964   30656200  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
    3.0964   30656200  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
    3.0964   30656200  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
    3.0965   30656200  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
    3.0965   30656200  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
    3.1108   30878928  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
    3.2791   30976512  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64

PHP Notice:  Use of undefined constant _DB_PASSWD_ - assumed '_DB_PASSWD_' in /projet/QA/QA/classes/db/Db.php on line 219
PHP Stack trace:
PHP   1. {main}() /projet/QA/QA/bin/console:0
PHP   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
PHP   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
PHP   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
PHP   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
PHP   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
PHP   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
PHP  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
PHP  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
PHP  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
PHP  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
PHP  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
PHP  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
PHP  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
PHP  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
PHP  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
PHP  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
PHP  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
PHP  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
PHP  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64

Notice: Use of undefined constant _DB_PASSWD_ - assumed '_DB_PASSWD_' in /projet/QA/QA/classes/db/Db.php on line 219

Call Stack:
    0.0001     358032   1. {main}() /projet/QA/QA/bin/console:0
    0.0102    2533792   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
    0.0156    2854056   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
    0.0437    7402400   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
    0.0455    7647920   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
    0.0455    7647920   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
    0.0485    7990528   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
    0.0486    7991736   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
    0.0646    8703424   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
    2.9579   29524392  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
    3.0619   30314008  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
    3.0619   30314384  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
    3.0964   30655328  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
    3.0964   30655328  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
    3.0964   30656120  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
    3.0964   30656200  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
    3.0964   30656200  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
    3.0964   30656200  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
    3.0965   30656200  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
    3.0965   30656200  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
    3.1108   30878928  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
    3.2791   30976512  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64

PHP Notice:  Use of undefined constant _DB_NAME_ - assumed '_DB_NAME_' in /projet/QA/QA/classes/db/Db.php on line 219
PHP Stack trace:
PHP   1. {main}() /projet/QA/QA/bin/console:0
PHP   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
PHP   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
PHP   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
PHP   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
PHP   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
PHP   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
PHP  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
PHP  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
PHP  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
PHP  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
PHP  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
PHP  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
PHP  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
PHP  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
PHP  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
PHP  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
PHP  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
PHP  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
PHP  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64

Notice: Use of undefined constant _DB_NAME_ - assumed '_DB_NAME_' in /projet/QA/QA/classes/db/Db.php on line 219

Call Stack:
    0.0001     358032   1. {main}() /projet/QA/QA/bin/console:0
    0.0102    2533792   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /projet/QA/QA/bin/console:28
    0.0156    2854056   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
    0.0437    7402400   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
    0.0455    7647920   5. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
    0.0455    7647920   6. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
    0.0485    7990528   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->run() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
    0.0486    7991736   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
    0.0646    8703424   9. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:134
    2.9579   29524392  10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:222
    3.0619   30314008  11. Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
    3.0619   30314384  12. PrestaShopBundle\Translation\Translator->warmUp() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php:58
    3.0964   30655328  13. PrestaShopBundle\Translation\Translator->loadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:113
    3.0964   30655328  14. PrestaShopBundle\Translation\Translator->initializeCacheCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:265
    3.0964   30656120  15. Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:300
    3.0964   30656200  16. PrestaShopBundle\Translation\Translator->Symfony\Component\Translation\{closure}() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
    3.0964   30656200  17. PrestaShopBundle\Translation\Translator->dumpCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:299
    3.0964   30656200  18. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:314
    3.0965   30656200  19. PrestaShopBundle\Translation\Translator->initializeCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php:128
    3.0965   30656200  20. PrestaShopBundle\Translation\Translator->doLoadCatalogue() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:277
    3.1108   30878928  21. PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() /projet/QA/QA/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php:381
    3.2791   30976512  22. DbCore::getInstance() /projet/QA/QA/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:64


In DbPDO.php line 127:
                                                                               
  Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_  
  getaddresses: getaddrinfo failed: Name or service not known                

With PS1.7.6.0 => OK
Checked with PHP7.0

About PS1.7.5.2 => OK, I have errors only when using Docker(PHP7.2), in the local => OK

This is a regression.

Thanks!

@matks

This comment has been minimized.

Copy link
Contributor

@matks matks commented Sep 19, 2019

Fixed by #15515

@matks matks closed this Sep 19, 2019
PrestaShop 1.7.6 automation moved this from To be reviewed to Done Sep 19, 2019
@marionf marionf added Fixed and removed To Do labels Sep 19, 2019
@marionf marionf added this to the 1.7.6.2 milestone Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.