Jump to content

[Résolu] Erreur 500 sur le backoffice après changement de serveur PS 1.7


Recommended Posts

Posted (edited)

Bonjour, je rencontre un problème suite au changement de serveur d'un site tournant sous Prestashop 1.7.

Le serveur tourne en php 7.4.

L'erreur rencontrée est la suivante :

ContextErrorException in NativeSessionStorage.php line 106: Warning: session_cache_limiter(): Cannot change cache limiter when headers already sent

in NativeSessionStorage.php line 106

at ErrorHandler->handleError()

at session_cache_limiter() in NativeSessionStorage.php line 106

at NativeSessionStorage->__construct() in appDevDebugProjectContainer.php line 3892

at appDevDebugProjectContainer->getSession_Storage_NativeService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 3862

at appDevDebugProjectContainer->getSessionService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 3601

at appDevDebugProjectContainer->getSecurity_Csrf_TokenManagerService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 2965

at appDevDebugProjectContainer->getPrestashop_RouterService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 1810

at appDevDebugProjectContainer->getLocaleListenerService() in bootstrap.php.cache line 2248

at Container->get() in ContainerAwareEventDispatcher.php line 183

at ContainerAwareEventDispatcher->lazyLoad() in ContainerAwareEventDispatcher.php line 128

at ContainerAwareEventDispatcher->getListeners() in TraceableEventDispatcher.php line 245

at TraceableEventDispatcher->preProcess() in TraceableEventDispatcher.php line 135

at TraceableEventDispatcher->dispatch() in bootstrap.php.cache line 3272

at HttpKernel->finishRequest() in bootstrap.php.cache line 3211

at HttpKernel->handle() in bootstrap.php.cache line 3359

at ContainerAwareHttpKernel->handle() in bootstrap.php.cache line 2562

at Kernel->handle() in index.php line 86

 

J'ai lu divers sujet similaire, indiquant d'essayer de vider le dossier app/cache/, mais cela semble ne pas avoir d'effet.

 

Auriez-vous une idée ?

 

Merci d'avance !

Edited by GBteam (see edit history)
Link to comment
Share on other sites

30 minutes ago, Mediacom87 said:

Inquiétant.

Créez le répertoire /var

J'ai maintenant l'erreur suivante :

ContextErrorException in classes.php line 93: Warning: session_cache_limiter(): Cannot change cache limiter when headers already sent

in classes.php line 93

at ErrorHandler->handleError()

at session_cache_limiter() in classes.php line 93

at NativeSessionStorage->__construct() in appDevDebugProjectContainer.php line 3892

at appDevDebugProjectContainer->getSession_Storage_NativeService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 3862

at appDevDebugProjectContainer->getSessionService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 3601

at appDevDebugProjectContainer->getSecurity_Csrf_TokenManagerService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 2965

at appDevDebugProjectContainer->getPrestashop_RouterService() in bootstrap.php.cache line 2248

at Container->get() in appDevDebugProjectContainer.php line 1810

at appDevDebugProjectContainer->getLocaleListenerService() in bootstrap.php.cache line 2248

at Container->get() in classes.php line 1970

at ContainerAwareEventDispatcher->lazyLoad() in classes.php line 1938

at ContainerAwareEventDispatcher->getListeners() in TraceableEventDispatcher.php line 245

at TraceableEventDispatcher->preProcess() in TraceableEventDispatcher.php line 135

at TraceableEventDispatcher->dispatch() in bootstrap.php.cache line 3272

at HttpKernel->finishRequest() in bootstrap.php.cache line 3211

at HttpKernel->handle() in bootstrap.php.cache line 3359

at ContainerAwareHttpKernel->handle() in bootstrap.php.cache line 2562

at Kernel->handle() in index.php line 86

Link to comment
Share on other sites

1 hour ago, Mediacom87 said:

Inquiétant.

Créez le répertoire /var

J'ai finalement trouvé la solution. Bêtement j'ai activé php 7.4 alors que le PS est en version 1.7.2.3 qui ne tourne que sur du php 7.1...

En activant php 7.1 ça a corrigé le problème.

Merci bcp pour votre aide en tout cas.

Link to comment
Share on other sites

  • GBteam changed the title to [Résolu] Erreur 500 sur le backoffice après changement de serveur PS 1.7

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
×
×
  • Create New...