Jump to content

DB upgrade failing during prestashop Migration from 1.7.3.3 to 1.7.4.2


Recommended Posts

I'm using "1-Click Upgrade" module to upgrade from PS 1.7.3.3 to 1.7.4.2 .I'm using PHP 7 & "1-Click Upgrade" module version 4.0 .

All the files copied fine, DB migration is failing due to below Error

[INTERNAL] /opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php line 78 - TypeError: Argument 2 passed to Symfony\Component\Translation\Translator::construct() must be an instance of Symfony\Component\Translation\MessageSelector, instance of Symfony\Component\Translation\Formatter\MessageFormatter given, called in /opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php on line 93 #0/opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php(93): Symfony\Component\Translation\Translator->construct('en-US', Object(Symfony\Component\Translation\Formatter\MessageFormatter), '/opt/bitnami/ap...', false) #1/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/appProdProjectContainer.php(2115): Symfony\Bundle\FrameworkBundle\Translation\Translator->construct(Object(Symfony\Component\DependencyInjection\ServiceLocator), Object(Symfony\Component\Translation\Formatter\MessageFormatter), 'en-US', Array, Array) #2/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/getValidator_BuilderService.php(25): Container2gqwgew\appProdProjectContainer->getTranslator_DefaultService() #3/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/appProdProjectContainer.php(882): require('/opt/bitnami/ap...') #4/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/getValidator_Mapping_CacheWarmerService.php(8): Container2gqwgew\appProdProjectContainer->load('getValidator_Bu...') #5/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/appProdProjectContainer.php(882): require('/opt/bitnami/ap...') #6/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/getCacheWarmerService.php(10): Container2gqwgew\appProdProjectContainer->load('getValidator_Ma...') #7/opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php(29): Container2gqwgew\appProdProjectContainer->{closure}() #8/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/getCacheWarmerService.php(20): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->construct(Object(Symfony\Component\DependencyInjection\Argument\RewindableGenerator)) #9/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/Container2gqwgew/appProdProjectContainer.php(882): require('/opt/bitnami/ap...') #10/opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(304): Container2gqwgew\appProdProjectContainer->load('getCacheWarmerS...') #11/opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(684): Symfony\Component\DependencyInjection\Container->get('cache_warmer') #12/opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(135): Symfony\Component\HttpKernel\Kernel->initializeContainer() #13/opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(148): Symfony\Component\HttpKernel\Kernel->boot() #14/opt/bitnami/apps/prestashop/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(135): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() #15/opt/bitnami/apps/prestashop/htdocs/src/PrestaShopBundle/Service/Database/Upgrade.php(39): Symfony\Bundle\FrameworkBundle\Console\Application->add(Object(PrestaShopBundle\Command\UpdateSchemaCommand)) #16/opt/bitnami/apps/prestashop/htdocs/modules/autoupgrade/classes/UpgradeTools/SymfonyAdapter.php(74): PrestaShopBundle\Service\Database\Upgrade->addDoctrineSchemaUpdate() #17/opt/bitnami/apps/prestashop/htdocs/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader17.php(54): PrestaShop\Module\AutoUpgrade\UpgradeTools\SymfonyAdapter->runSchemaUpgradeCommand() #18/opt/bitnami/apps/prestashop/htdocs/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(81): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader17->upgradeDb('1.7.3.3') #19/opt/bitnami/apps/prestashop/htdocs/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(41): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->doUpgrade() #20/opt/bitnami/apps/prestashop/htdocs/administration/autoupgrade/ajax-upgradetab.php(52): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->run() #21 {main}

 

 

[INTERNAL] /opt/bitnami/apps/prestashop/htdocs/src/Adapter/Configuration.php line 36 - Declaration of PrestaShop\PrestaShop\Adapter\Configuration::get($key, $default = NULL) should be compatible with Symfony\Component\HttpFoundation\ParameterBag::get($key, $default = NULL, $deep = false)
 
[OK] SQL 1.7.4.0 SET SESSION sql_mode = ''
 
[OK] SQL 1.7.4.0 SET NAMES 'utf8'
 
[OK] SQL 1.7.4.0 ALTER TABLE `ps_order_detail` DROP KEY product_id, ADD KEY product_id (product_id, product_attribute_id)
 
[OK] SQL 1.7.4.0 INSERT IGNORE INTO `ps_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES (NULL, 'actionAdministrationPageForm', 'Manage Administration Page form fields', 'This hook adds, update or remove fields of the Administration Page form', '1'), (NULL, 'actionAdministrationPageFormSave', 'Processing Administration page form', 'This hook is called when the Administration Page form is processed', '1'), (NULL, 'actionPerformancePageForm', 'Manage Performance Page form fields', 'This hook adds, update or remove fields of the Performance Page form', '1'), (NULL, 'actionPerformancePageFormSave', 'Processing Performance page form', 'This hook is called when the Performance Page form is processed', '1'), (NULL, 'actionMaintenancePageForm', 'Manage Maintenance Page form fields', 'This hook adds, update or remove fields of the Maintenance Page form', '1'), (NULL, 'actionMaintenancePageFormSave', 'Processing Maintenance page form', 'This hook is called when the Maintenance Page form is processed', '1'), (NULL, 'displayAdminEndContent', 'Administration end of content', 'This hook is displayed at the end of the main content, before the footer', '1')
 
[OK] PHP 1.7.4.0 : /* PHP:ps_1740_update_module_tabs(); */
 
[OK] SQL 1.7.4.1 SET SESSION sql_mode = ''
 
[OK] SQL 1.7.4.1 SET NAMES 'utf8'
 
[OK] SQL 1.7.4.1 ALTER TABLE `ps_cart_rule` ADD KEY `date_from` (`date_from`), ADD KEY `date_to` (`date_to`)
 
[OK] SQL 1.7.4.2 SET SESSION sql_mode = ''
 
[OK] SQL 1.7.4.2 SET NAMES 'utf8'
 
[OK] SQL 1.7.4.2 UPDATE `ps_employee` SET `bo_css` = "theme.css"
 

Errors

Link to comment
Share on other sites

  • 2 weeks later...

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...