Jump to content

Erreur 500 lors d'une modification backoffice


Recommended Posts

Bonjour,

Nous avons passé notre site web à prestashop 1.7.5 et depuis dès lors que nous effectuons une modification backoffice une erreur 500 apparaît.

Lorsque nous passons en mode debug nous ne pouvons quand même pas accéder au backoffice et obtenons l'erreur suivante :

 Fatal error: Uncaught TypeError: Argument 1 passed to PrestaShop\PrestaShop\Adapter\Configuration::__construct() must be of the type array, object given, called in /var/www/vhosts/mascottes-animaux.com/httpdocs/classes/db/container/LegacyCompilerPass.php on line 51 and defined in /var/www/vhosts/mascottes-animaux.com/httpdocs/src/Adapter/Configuration.php:47 Stack trace: #0 /var/www/vhosts/mascottes-animaux.com/httpdocs/classes/db/container/LegacyCompilerPass.php(51): PrestaShop\PrestaShop\Adapter\Configuration->__construct(Object(Shop)) #1 /var/www/vhosts/mascottes-animaux.com/httpdocs/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(141): LegacyCompilerPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #2 /var/www/vhosts/mascottes-animaux.com/httpdocs/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(788): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\Contai in /var/www/vhosts/mascottes-animaux.com/httpdocs/src/Adapter/Configuration.php on line 47

Si quelqu'un a une idée ou a connu le même problème nous sommes preneurs de solution,

Cordialement.

Link to comment
Share on other sites

Remets ton ancienne version qui fonctionnait correctement ça sera la meilleure chose à faire pour relancer ton activité sans avoir trop de conséquences néfastes.

Pour la prochaine fois : essayes de mettre à jour sur une version de dev uniquement, afin de tester si tout fonctionne bien et ceci avant de faire la migration pour de bon sur la boutique en production, ça t'évitera des soucis.

Link to comment
Share on other sites

Bonjour @Janett,

Merci de votre réponse, je vous met en pièce jointe la page d'informations,

Et l'erreur apparaît lorsque l'on active le mode debug via le ftp et apparaît sur toutes les pages, même la page de connexion backoffice.

 

Bonjour @Tweb,

Merci pour votre remarque, nous avons en effet considéré cette option dans le cadre où nous ne trouvons pas de solution pour faire fonctionner notre version 1.7.5. Nous prenons en compte votre indication en cas de nouvel essai de mise à jour.

Screenshot_2019-04-29 Informations • Mascottes Animaux.png

Link to comment
Share on other sites

J'ai un log complet mais pas de capture d'écran :

Fatal error: Uncaught TypeError: Argument 1 passed to PrestaShop\PrestaShop\Adapter\Configuration::__construct() must be of the type array, object given, called in /var/www/vhosts/mascottes-animaux.com/httpdocs/classes/db/container/LegacyCompilerPass.php on line 51 and defined in /var/www/vhosts/mascottes-animaux.com/httpdocs/src/Adapter/Configuration.php:47 Stack trace: #0 /var/www/vhosts/mascottes-animaux.com/httpdocs/classes/db/container/LegacyCompilerPass.php(51): PrestaShop\PrestaShop\Adapter\Configuration->__construct(Object(Shop)) #1 /var/www/vhosts/mascottes-animaux.com/httpdocs/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(141): LegacyCompilerPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #2 /var/www/vhosts/mascottes-animaux.com/httpdocs/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(788): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\Contai in /var/www/vhosts/mascottes-animaux.com/httpdocs/src/Adapter/Configuration.php on line 47


FatalThrowableError
HTTP 500 Internal Server Error
Type error: Argument 1 passed to PrestaShop\PrestaShop\Adapter\Configuration::__construct() must be of the type array, object given, called in /var/www/vhosts/mascottes-animaux.com/httpdocs/classes/db/container/LegacyCompilerPass.php on line 51
Exception Logs 2 Stack Trace
Symfony\Component\Debug\Exception\
FatalThrowableError
in src/Adapter/Configuration.php (line 47)
    /**     * @var Shop     */    private $shop;    public function __construct(array $parameters = array())    {        // Do nothing        if (!empty($parameters)) {            throw new \LogicException('No parameter can be handled in constructor. Use method set() instead.');        }
Configuration->__construct(object(Shop))
in classes/db/container/LegacyCompilerPass.php (line 51)
LegacyCompilerPass->process(object(ContainerBuilder))
in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php (line 141)
Compiler->compile(object(ContainerBuilder))
in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php (line 788)
ContainerBuilder->compile()
in src/Adapter/ContainerBuilder.php (line 65) 
ContainerBuilder::getContainer('admin', true)
in classes/controller/AdminController.php (line 4683)
AdminControllerCore->buildContainer()
in classes/controller/Controller.php (line 179)
ControllerCore->init()
in classes/controller/AdminController.php (line 2741)
AdminControllerCore->init()
in classes/controller/Controller.php (line 262)
ControllerCore->run()
in src/Adapter/LegacyContext.php (line 188)
LegacyContext->getLegacyLayout('AdminPerformance', 'Performances', array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), '', true, '', true, '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc')
in src/PrestaShopBundle/Twig/LayoutExtension.php (line 176)
LayoutExtension->getLegacyLayout('AdminPerformance', 'Performances', array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), '', true, '', true, '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc')
in var/cache/dev/twig/76/76f3ec6738a7d654468a932497d432f96d4110a11f0318d30776689a390ddbfe.php (line 29)
__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36->doGetParent(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1')), 'default_currency' => '€', 'root_url' => '/', 'js_translatable' => array(), 'app' => object(AppVariable), 'webpack_server' => false, 'ps' => object(__TwigTemplate_aae9bc884dd5c76be9b9e928ef7b692849880432755a21c364af378960fbcb50), 'smartyForm' => object(FormView), 'debugModeForm' => object(FormView), 'optionalFeaturesForm' => object(FormView), 'combineCompressCacheForm' => object(FormView), 'mediaServersForm' => object(FormView), 'cachingForm' => object(FormView), 'memcacheForm' => object(FormView)))
in modules/autoupgrade/vendor/twig/twig/lib/Twig/Template.php (line 122)
Twig_Template->getParent(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1')), 'default_currency' => '€', 'root_url' => '/', 'js_translatable' => array(), 'app' => object(AppVariable), 'webpack_server' => false, 'ps' => object(__TwigTemplate_aae9bc884dd5c76be9b9e928ef7b692849880432755a21c364af378960fbcb50), 'smartyForm' => object(FormView), 'debugModeForm' => object(FormView), 'optionalFeaturesForm' => object(FormView), 'combineCompressCacheForm' => object(FormView), 'mediaServersForm' => object(FormView), 'cachingForm' => object(FormView), 'memcacheForm' => object(FormView)))
in var/cache/dev/twig/76/76f3ec6738a7d654468a932497d432f96d4110a11f0318d30776689a390ddbfe.php (line 43)
__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36->doDisplay(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1')), 'default_currency' => '€', 'root_url' => '/', 'js_translatable' => array(), 'app' => object(AppVariable), 'webpack_server' => false, 'ps' => object(__TwigTemplate_aae9bc884dd5c76be9b9e928ef7b692849880432755a21c364af378960fbcb50), 'smartyForm' => object(FormView), 'debugModeForm' => object(FormView), 'optionalFeaturesForm' => object(FormView), 'combineCompressCacheForm' => object(FormView), 'mediaServersForm' => object(FormView), 'cachingForm' => object(FormView), 'memcacheForm' => object(FormView)), array('javascripts' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_javascripts'), 'translate_javascripts' => array(object(__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36), 'block_translate_javascripts'), 'content_header' => array(object(__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36), 'block_content_header'), 'sidebar_right' => array(object(__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36), 'block_sidebar_right'), 'content' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_content'), 'perfs_form_smarty_cache' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_smarty_cache'), 'perfs_form_debug_mode' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_debug_mode'), 'perfs_form_optional_features' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_optional_features'), 'perfs_form_ccc' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_ccc'), 'perfs_form_media_servers' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_media_servers'), 'perfs_form_caching' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_caching')))
in modules/autoupgrade/vendor/twig/twig/lib/Twig/Template.php (line 432)
Twig_Template->displayWithErrorHandling(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1')), 'default_currency' => '€', 'root_url' => '/', 'js_translatable' => array(), 'app' => object(AppVariable), 'webpack_server' => false, 'ps' => object(__TwigTemplate_aae9bc884dd5c76be9b9e928ef7b692849880432755a21c364af378960fbcb50), 'smartyForm' => object(FormView), 'debugModeForm' => object(FormView), 'optionalFeaturesForm' => object(FormView), 'combineCompressCacheForm' => object(FormView), 'mediaServersForm' => object(FormView), 'cachingForm' => object(FormView), 'memcacheForm' => object(FormView)), array('javascripts' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_javascripts'), 'translate_javascripts' => array(object(__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36), 'block_translate_javascripts'), 'content_header' => array(object(__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36), 'block_content_header'), 'sidebar_right' => array(object(__TwigTemplate_e475253927a24b0e65bdc939abef66b7c8d32cd59bfc6f71d0e47406c6b50b36), 'block_sidebar_right'), 'content' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_content'), 'perfs_form_smarty_cache' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_smarty_cache'), 'perfs_form_debug_mode' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_debug_mode'), 'perfs_form_optional_features' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_optional_features'), 'perfs_form_ccc' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_ccc'), 'perfs_form_media_servers' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_media_servers'), 'perfs_form_caching' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_caching')))
in modules/autoupgrade/vendor/twig/twig/lib/Twig/Template.php (line 403)
Twig_Template->display(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1')), 'default_currency' => '€', 'root_url' => '/', 'js_translatable' => array(), 'app' => object(AppVariable), 'webpack_server' => false, 'ps' => object(__TwigTemplate_aae9bc884dd5c76be9b9e928ef7b692849880432755a21c364af378960fbcb50), 'smartyForm' => object(FormView), 'debugModeForm' => object(FormView), 'optionalFeaturesForm' => object(FormView), 'combineCompressCacheForm' => object(FormView), 'mediaServersForm' => object(FormView), 'cachingForm' => object(FormView), 'memcacheForm' => object(FormView)), array('content' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_content'), 'perfs_form_smarty_cache' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_smarty_cache'), 'perfs_form_debug_mode' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_debug_mode'), 'perfs_form_optional_features' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_optional_features'), 'perfs_form_ccc' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_ccc'), 'perfs_form_media_servers' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_media_servers'), 'perfs_form_caching' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_caching'), 'javascripts' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_javascripts')))
in var/cache/dev/twig/b6/b6ddfee1349a7b5b7ac930bfbff855629cb3f6e7b21d25f682a92d87c09b54c6.php (line 43)
__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739->doDisplay(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1')), 'default_currency' => '€', 'root_url' => '/', 'js_translatable' => array(), 'app' => object(AppVariable), 'webpack_server' => false, 'ps' => object(__TwigTemplate_aae9bc884dd5c76be9b9e928ef7b692849880432755a21c364af378960fbcb50), 'smartyForm' => object(FormView), 'debugModeForm' => object(FormView), 'optionalFeaturesForm' => object(FormView), 'combineCompressCacheForm' => object(FormView), 'mediaServersForm' => object(FormView), 'cachingForm' => object(FormView), 'memcacheForm' => object(FormView)), array('content' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_content'), 'perfs_form_smarty_cache' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_smarty_cache'), 'perfs_form_debug_mode' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_debug_mode'), 'perfs_form_optional_features' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_optional_features'), 'perfs_form_ccc' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_ccc'), 'perfs_form_media_servers' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_media_servers'), 'perfs_form_caching' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_caching'), 'javascripts' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_javascripts')))
in modules/autoupgrade/vendor/twig/twig/lib/Twig/Template.php (line 432)
Twig_Template->displayWithErrorHandling(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1')), 'default_currency' => '€', 'root_url' => '/', 'js_translatable' => array(), 'app' => object(AppVariable), 'webpack_server' => false), array('content' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_content'), 'perfs_form_smarty_cache' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_smarty_cache'), 'perfs_form_debug_mode' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_debug_mode'), 'perfs_form_optional_features' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_optional_features'), 'perfs_form_ccc' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_ccc'), 'perfs_form_media_servers' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_media_servers'), 'perfs_form_caching' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_perfs_form_caching'), 'javascripts' => array(object(__TwigTemplate_d886399284fd88870af1b74c57a89e9641b45a0fb208cbda0c0a0d7495fd2739), 'block_javascripts')))
in modules/autoupgrade/vendor/twig/twig/lib/Twig/Template.php (line 403)
Twig_Template->display(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1'))))
in modules/autoupgrade/vendor/twig/twig/lib/Twig/Template.php (line 411)
Twig_Template->render(array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1'))))
in modules/autoupgrade/vendor/twig/twig/lib/Twig/Environment.php (line 363)
Twig_Environment->render('@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig', array('layoutHeaderToolbarBtn' => array('clear_cache' => array('href' => '/admin525zmel43/index.php/configure/advanced/performance/clear-cache?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'desc' => 'Vider le cache', 'icon' => 'delete')), 'layoutTitle' => 'Performances', 'requireAddonsSearch' => true, 'requireBulkActions' => false, 'showContentHeader' => true, 'enableSidebar' => true, 'help_link' => '/admin525zmel43/index.php/common/sidebar/https%253A%252F%252Fhelp.prestashop.com%252Ffr%252Fdoc%252FAdminPerformance%253Fversion%253D1.7.5.1%2526country%253Dfr/Aide?_token=LMWEDXpJtWWaP2dNi7Osr0NzRN_dKuq-CoO2Ee6GxYc', 'requireFilterStatus' => false, 'form' => object(FormView), 'servers' => array(array('id_memcached_server' => '1', 'ip' => '127.0.0.1', 'port' => '11211', 'weight' => '1'))))
in vendor/sensio/framework-extra-bundle/EventListener/TemplateListener.php (line 103)
TemplateListener->onKernelView(object(GetResponseForControllerResultEvent), 'kernel.view', object(TraceableEventDispatcher))
in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 111)
WrappedListener->__invoke(object(GetResponseForControllerResultEvent), 'kernel.view', object(ContainerAwareEventDispatcher))
in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 212)
EventDispatcher->doDispatch(array(object(WrappedListener)), 'kernel.view', object(GetResponseForControllerResultEvent))
in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44)
EventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent))
in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 143)
TraceableEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 156)
HttpKernel->handleRaw(object(Request), 1)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
HttpKernel->handle(object(Request), 1, false)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)
Kernel->handle(object(Request), 1, false)
in admin525zmel43/index.php (line 88)

 

Link to comment
Share on other sites

Pouvez vous ouvrir votre fichier /src/Adapter/Configuration.php

Cherchez

    public function __construct(array $parameters = array())
    {
        // Do nothing
        if (!empty($parameters)) {
            throw new \LogicException('No parameter can be handled in constructor. Use method set() instead.');
        }
    }

Remplacez par

    public function __construct($parameters = array())
    {
        if (!is_array($parameters)) {
            if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_) {
                dump($parameters);
            }
            $parameters = [];
        }

        // Do nothing
        if (!empty($parameters)) {
            throw new \LogicException('No parameter can be handled in constructor. Use method set() instead.');
        }
    }

Normalement si vous êtes en mode debug, si le paramètre n'a pas le type attendu, ça devrait vous afficher quelque chose, si vous pouvez en faire une capture d'écran

Link to comment
Share on other sites

Lors du processus de mise à jour avez-vous rencontrer des erreurs ?

J'ai fouiné un peu partout, c'est la première fois que je vois un objet Shop passé en paramètre cet endroit et je n'arrive pas à reproduire, il y a quelque chose d'exotique sur votre Prestashop.

En attendant de trouver, pour corriger l'erreur vous pouvez modifier votre fichier /src/Adapter/Configuration.php

Cherchez

    public function __construct(array $parameters = array())
    {
        // Do nothing
        if (!empty($parameters)) {
            throw new \LogicException('No parameter can be handled in constructor. Use method set() instead.');
        }
    }

Remplacez par

    public function __construct($parameters = array())
    {
        if (!is_array($parameters)) {
            // If $parameters is not valid, do not take care of it
            $parameters = [];
        }

        // Do nothing
        if (!empty($parameters)) {
            throw new \LogicException('No parameter can be handled in constructor. Use method set() instead.');
        }
    }

Une fois cette erreur disparue, c'est peut être l'arbre qui cache la forêt.

Ce qui est sûr c'est qu'il y a quelque chose dans votre configuration qui n'est bon. Soit du côté de votre configuration serveur, soit d'un module ou d'un override (En avez vous des overrides d'ailleurs ?), soit des éléments exotiques dans votre base de données, soit la mise à jour ne s'est pas déroulée correctement.

Link to comment
Share on other sites

1 hour ago, Janett said:

Une fois cette erreur disparue, c'est peut être l'arbre qui cache la forêt. 

Suite à cette modification tout semble être rentré dans l'ordre, nous pouvons effectuer des opérations dans le backoffice sans les erreurs 500 que nous avions avant (vider le cache, activer/désactiver un module ...).

Sinon pour vous répondre à vos questions nous n'avions pas eu de complication lors de la mise à jour, pas d'override ni de problème de configuration serveur.

Merci beaucoup pour votre temps,
En vous souhaitant une très bonne journée.

Link to comment
Share on other sites

  • 2 years later...

bonjour,

j'ai eu le meme probleme.

en fait il s'agit d'un probleme de droits utilisateurs.... il faut enqueter sur le module qui fait planter tout cela et l'activer (en cochant "afficher"). l'utilisateur en question ne doit pas avoir les droits d'acces au module (sur un override probablement).

Cela doit etre un module qui doit etre en lien avec l'édition de la fiche produit.

Dans le doute, tu mets "afficher" dans tout et tu enleves au fur et à mesure ...

Edited by maestrobo (see edit history)
Link to comment
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
×
×
  • Create New...