Jump to content

Recommended Posts

Posted (edited)

Bonjour,

Su PS 1.7.5.0, après avoir vidé le cache, je me retrouve avec une page blanche -> Erreur 500 -> logs du serveur :

2019/04/17 14:14:07 [error] 503#0: *767 FastCGI sent in stderr: "PHP message: PHP Warning:  Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Warning: require(/vagrant/httpdocs/var/cache/dev/ContainerH2kubwe/getPrestashop_SearchParameters_ResolverService.php): failed to open stream: No such file or directory' in /vagrant/httpdocs/var/cache/dev/ContainerH2kubwe/appDevDebugProjectContainer.php:1207

Stack trace:
#0 /vagrant/httpdocs/var/cache/dev/ContainerH2kubwe/appDevDebugProjectContainer.php(1207): ContainerH2kubwe\appDevDebugProjectContainer::load()
#1 /vagrant/httpdocs/var/cache/dev/ContainerH2kubwe/appDevDebugProjectContainer.php(2239): ContainerH2kubwe\appDevDebugProjectContainer->load('getPrestashop_S...')
#2 /vagrant/httpdocs/var/cache/dev/classes.php(4174): ContainerH2kubwe\appDevDebugProjectContainer::ContainerH2kubwe\{closure}()
#3 /vagrant/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/TraceableArgumentResolver.php(38): Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments(...)

PHP message: PHP Stack trace:
PHP message: PHP   1. {main}() /vagrant/httpdocs/admin2015/index.php:0
PHP message: PHP   2. Symfony\Component\HttpKernel\Kernel->handle() /vagrant/httpdocs/admin2015/index.php:88
PHP message: PHP   3. Symfony\Component\HttpKernel\HttpKernel->handle() /vagrant/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200
PHP message: PHP   4. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /vagrant/httpdocs/var/cache/dev/classes.php:4528
PHP message: PHP   5. Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments() /vagrant/httpdocs/var/cache/dev/classes.php:4568
PHP message: PHP   6. Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments() /vagrant/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/TraceableArgumentResolver.php:38
PHP message: PHP   7. ContainerH2kubwe\appDevDebugProjectContainer::ContainerH2kubwe\{closure}()

2019/04/17 14:14:07 [error] 503#0: *767 FastCGI sent in stderr: "iled opening required '/vagrant/httpdocs/var/cache/dev/ContainerH2kubwe/getDebug_FileLinkFormatter_UrlFormatService.php' (include_path='/vagrant/httpdocs/vendor/pear/archive_tar:/vagrant/httpdocs/vendor/pear/console_getopt:/vagrant/httpdocs/vendor/pear/pear-core-minimal/src:/vagrant/httpdocs/vendor/pear/pear_exception:.:/usr/share/php:/usr/share/pear') in /vagrant/httpdocs/var/cache/dev/ContainerH2kubwe/appDevDebugProjectContainer.php on line 1207

PHP message: PHP Stack trace:
PHP message: PHP   1. {main}() /vagrant/httpdocs/admin2015/index.php:0
PHP message: PHP   2. Symfony\Component\HttpKernel\Kernel->handle() /vagrant/httpdocs/admin2015/index.php:88
PHP message: PHP   3. Symfony\Component\HttpKernel\HttpKernel->handle() /vagrant/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200
PHP message: PHP   4. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /vagrant/httpdocs/var/cache/dev/classes.php:4528
PHP message: PHP   5. Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments() /vagrant/httpdocs/var/cache/dev/classes.php:4568
PHP message: PHP   6. Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments() /vagrant/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/TraceableArgumentResolver.php:38
PHP message: PHP   7. ContainerH2kubwe\appDevDebugProjectContainer::ContainerH2kubwe\{closure}() /vagrant/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/TraceableArgumentResolver.php:4174
PHP message: PHP   8. ContainerH2kubwe\appDevDebugProjectContainer->load() /vagrant/httpdocs/var/cache/dev/ContainerH2kubwe/appDevDebugProjectContainer.php:2239
PHP message: PHP   9. Symfony\Component\Debug\ErrorHandler::handleFatalError() /vagrant/httpdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:0
PHP message: PHP  10. Symfony\Component\Debug\ErrorHandler->handleException() /vagrant/httpdocs/vendor/symfony/symfony/src/S

J'ai mis à jour les dépendances (via Composer). Activé/Désactivé le mode debug. J'ai repassé tous les dossiers du projet en CHMOD 755 et les fichiers en 644, réattribué le CHOWN au bon user.  Le comportement est toujours similaire : au premier vidage de cache : page blanche (le dossier /var/cache/dev/ est vidé mais les fichiers ne sont pas regénérés). Au rafraîchissement de la page, les fichiers de cache sont correctement régénérés et la page des Performances apparaît de nouveau correctement.

Une idée d'où cela peut venir ?

Config :

  • PS 1.7.5.0
  • PHP 5.6
  • Nginx

(PhpPSinfo en PJ)

Screenshot_2019-04-17 PHP PrestaShop Info.png

Edited by Klemart3D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More