adamus007p Posted November 30, 2019 Share Posted November 30, 2019 (edited) Hello, I am trying to upgrade my Prestashop 1.6.1.24 to 1.7.6.2. I use php 7.3. Mariadb10.3. centos 7 I was trying to do this using module 1 click, using manual method and command line. With manual method I follow the: https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/upgrade/ all values were green phppsinfo.php https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ every time I get errors: Fatal error: Uncaught Symfony\Component\Debug\Exception\ContextErrorException: Notice: Undefined index: in /home/nginx/domains/mydomain.com/public/classes/Currency.php:196 Stack trace: #0 /home/nginx/domains/mydomain.com/public/classes/Currency.php(742): CurrencyCore->__construct('10') #1 /home/nginx/domains/mydomain.com/public/classes/Currency.php(488): CurrencyCore::getCurrencyInstance('10') #2 /home/nginx/domains/mydomain.com/public/classes/Currency.php(398): CurrencyCore::addCldrDatasToCurrency(Array, true) #3 /home/nginx/domains/mydomain.com/public/install/upgrade/php/ps_1760_copy_data_from_currency_to_currency_lang.php(47): CurrencyCore::getCurrencies(true, false) #4 [internal function]: ps_1760_copy_data_from_currency_to_currency_lang() #5 /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Install/Upgrade.php(482): call_user_func_array('ps_1760_copy_da...', Array) #6 /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Install/Upgrade.php(825): PrestaShopBundle\Install in /home/nginx/domains/mydomain.com/public/classes/Currency.php on line 196 or Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/nginx/domains/mydomain.com/public/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2636 Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/nginx/domains/mydomain.com/public/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2665 Fatal error: Uncaught Symfony\Component\Debug\Exception\ContextErrorException: Notice: Undefined index: in /home/nginx/domains/mydomain.com/public/classes/Currency.php:186 Stack trace: #0 /home/nginx/domains/mydomain.com/public/classes/Currency.php(738): CurrencyCore->__construct('10') #1 /home/nginx/domains/mydomain.com/public/classes/Currency.php(484): CurrencyCore::getCurrencyInstance('10') #2 /home/nginx/domains/mydomain.com/public/classes/Currency.php(394): CurrencyCore::addCldrDatasToCurrency(Array, true) #3 /home/nginx/domains/mydomain.com/public/install/upgrade/php/ps_1760_copy_data_from_currency_to_currency_lang.php(47): CurrencyCore::getCurrencies(true, false) #4 [internal function]: ps_1760_copy_data_from_currency_to_currency_lang() #5 /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Install/Upgrade.php(482): call_user_func_array('ps_1760_copy_da...', Array) #6 /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Install/Upgrade.php(825): PrestaShopBundle\Install in /home/nginx/domains/mydomain.com/public/classes/Currency.php on line 186 even when I manually try to correct the code i have: Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to PrestaShopBundle\Translation\Loader\SqlTranslationLoader::addTranslationsToCatalogue() must be of the type array, bool given, called in /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php on line 84 in /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:101 Stack trace: #0 /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php(84): PrestaShopBundle\Translation\Loader\SqlTranslationLoader->addTranslationsToCatalogue(false, Object(Symfony\Component\Translation\MessageCatalogue)) #1 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(381): PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load('AdminActions.en...', 'en-US', 'AdminActions') #2 /home/nginx/domains/mydomain.com/pu in /home/nginx/domains/mydomain.com/public/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php on line 101 with php7.1 PHP Fatal error: Uncaught Symfony\Component\Cache\Exception\InvalidArgumentException: Cache key must be string, "NULL" given in /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/CacheItem.php:156 Stack trace: #0 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/AbstractTrait.php(235): Symfony\Component\Cache\CacheItem::validateKey(NULL) #1 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php(152): Symfony\Component\Cache\Adapter\AbstractAdapter->getId(NULL) #2 /home/nginx/domains/mydomain.com/public/src/Core/Localization/CLDR/DataLayer/LocaleCache.php(82): Symfony\Component\Cache\Adapter\AbstractAdapter->getItem(NULL) #3 /home/nginx/domains/mydomain.com/public/src/Core/Data/Layer/AbstractDataLayer.php(90): PrestaShop\PrestaShop\Core\Localization\CLDR\DataLayer\LocaleCache->doRead(NULL) #4 /home/nginx/domains/mydomain.com/public/src/Core/Localization/ in /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/CacheItem.php on line 156 Any idea what is the problem? Edited December 2, 2019 by adamus007p update (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted December 2, 2019 Share Posted December 2, 2019 Please note that Prestashop is not yet compatible to PHP 7.3 - switch back to PHP 7.2. Link to comment Share on other sites More sharing options...
adamus007p Posted December 2, 2019 Author Share Posted December 2, 2019 (edited) Hello @JBW I have downgraded to php 7.1 PHP Fatal error: Uncaught Symfony\Component\Cache\Exception\InvalidArgumentException: Cache key must be string, "NULL" given in /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/CacheItem.php:156 Stack trace: #0 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/AbstractTrait.php(235): Symfony\Component\Cache\CacheItem::validateKey(NULL) #1 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php(152): Symfony\Component\Cache\Adapter\AbstractAdapter->getId(NULL) #2 /home/nginx/domains/mydomain.com/public/src/Core/Localization/CLDR/DataLayer/LocaleCache.php(82): Symfony\Component\Cache\Adapter\AbstractAdapter->getItem(NULL) #3 /home/nginx/domains/mydomain.com/public/src/Core/Data/Layer/AbstractDataLayer.php(90): PrestaShop\PrestaShop\Core\Localization\CLDR\DataLayer\LocaleCache->doRead(NULL) #4 /home/nginx/domains/mydomain.com/public/src/Core/Localization/ in /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/Cache/CacheItem.php on line 156 [INTERNAL] /home/nginx/domains/mydomain.com/public/admin321/autoupgrade/latest/install/upgrade/php/migrate_tabs_17.php line 60 - Symfony\Component\Debug\Exception\UndefinedMethodException: Attempted to call an undefined method named "resetCacheAccesses" of class "ProfileCore". #0 [internal function]: migrate_tabs_17() #1 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(395): call_user_func_array('migrate_tabs_17', Array) #2 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(360): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->runPhpQuery('1.7.0.0', '/* PHP:migrate_...') #3 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(284): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->runQuery('1.7.0.0', '/* PHP:migrate_...') #4 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader17.php(55): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->upgradeDb('1.6.1.28') #5 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(101): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader17->upgradeDb('1.6.1.28') #6 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(41): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->doUpgrade() #7 /home/nginx/domains/mydomain.com/public/admin321/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->run() #8 {main} Edited December 2, 2019 by adamus007p (see edit history) Link to comment Share on other sites More sharing options...
adamus007p Posted December 2, 2019 Author Share Posted December 2, 2019 update to 1.7.4.4 [ERROR] PHP 1.7.0.0 /* PHP:ps1700_stores(); */ [INTERNAL] /home/nginx/domains/lucidsamples.com/public/admin321/autoupgrade/latest/install/upgrade/php/migrate_tabs_17.php line 61 - Symfony\Component\Debug\Exception\UndefinedMethodException: Attempted to call an undefined method named "resetCache" of class "LanguageCore". #0 [internal function]: migrate_tabs_17() #1 /home/nginx/domains/lucidsamples.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(395): call_user_func_array('migrate_tabs_17', Array) #2 /home/nginx/domains/lucidsamples.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(360): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->runPhpQuery('1.7.0.0', '/* PHP:migrate_...') #3 /home/nginx/domains/lucidsamples.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(284): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->runQuery('1.7.0.0', '/* PHP:migrate_...') #4 /home/nginx/domains/lucidsamples.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader17.php(55): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->upgradeDb('1.6.1.28') #5 /home/nginx/domains/lucidsamples.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(101): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader17->upgradeDb('1.6.1.28') #6 /home/nginx/domains/lucidsamples.com/public/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(41): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->doUpgrade() #7 /home/nginx/domains/lucidsamples.com/public/admin321/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->run() #8 {main} ok now to update to prestashop_1.7.2.4.zip https://build.prestashop.com/news/prestashop-1-7-is-moving-to-symfony-3-4-and-php-5-6/ php7.1 module version 1-Click Upgrade v4.10.0 - by PrestaShop now error is [INTERNAL] /home/nginx/domains/mydomain.com/public/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 54 - Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Doctrine\ORM\Mapping\Table" in class PrestaShopBundle\Entity\AdminFilter does not exist, or could not be auto-loaded. #0 /home/nginx/domains/mydomain.com/public/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(708): Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation ...') #1 /home/nginx/domains/mydomain.com/public/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(641): Doctrine\Common\Annotations\DocParser->Annotation() #2 /home/nginx/domains/mydomain.com/public/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(334): Doctrine\Common\Annotations\DocParser->Annotations() #3 /home/nginx/domains/mydomain.com/public/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(195): Doctrine\Common\Annotations\DocParser->parse('/**\n * AdminFil...', 'class PrestaSho...') #4 /home/nginx/domains/mydomain.com/public/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php(83): Doctrine\Common\Annotations\AnnotationReader->getClassAnnotations(Object(ReflectionClass)) #5 /home/nginx/domains/mydomain.com/public/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(180): Doctrine\Common\Annotations\CachedReader->getClassAnnotations(Object(ReflectionClass)) #6 /home/nginx/domains/mydomain.com/public/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(247): Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver->isTransient('PrestaShopBundl...') #7 /home/nginx/domains/mydomain.com/public/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php(128): Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver->getAllClassNames() #8 /home/nginx/domains/mydomain.com/public/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(114): Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain->getAllClassNames() #9 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php(69): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata() #10 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php(48): Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer->warmUp('/home/nginx/dom...') #11 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(526): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/home/nginx/dom...') #12 /home/nginx/domains/mydomain.com/public/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(133): Symfony\Component\HttpKernel\Kernel->initializeContainer() #13 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/SymfonyAdapter.php(74): Symfony\Component\HttpKernel\Kernel->boot() #14 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader17.php(50): PrestaShop\Module\AutoUpgrade\UpgradeTools\SymfonyAdapter->initAppKernel() #15 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(85): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader17->initConstants() #16 /home/nginx/domains/mydomain.com/public/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(41): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->doUpgrade() #17 /home/nginx/domains/mydomain.com/public/admin321/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->run() #18 {main} Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 2, 2019 Share Posted December 2, 2019 (edited) On 11/30/2019 at 5:27 PM, adamus007p said: I am trying to upgrade my Prestashop 1.6.1.24 to 1.7.6.2 In this page https://build.prestashop.com/news/prestashop-1-7-6-2-maintenance-release/ is stated at the end... "Since version 1.7.6.2 is a “patch” update to version 1.7.6.1, upgrading from any 1.7.6 version will be easy: features will work better, and modules & themes which worked fine on 1.7.6.x will work just as well with 1.7.6.2. Upgrades from a standard 1.7.x version should work just as well." Shouldn´t we be updating to 1.7.6.1 first than to 1.7.6.2!!! Upgrading from a previous major version, from what i´ve been reading, almost always causes problems... Best Regards Edited December 3, 2019 by PCQUATRO (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted December 3, 2019 Share Posted December 3, 2019 You seem to use ngnix - check this forum for 1.7. ngnix configuration e.g. Link to comment Share on other sites More sharing options...
thompsonmax Posted December 3, 2019 Share Posted December 3, 2019 (edited) Hi everyone. I am new here. Am I right, to have the latest version of prestashop I need to switch from PHP 7.3 back to PHP 7.2. ?😏 Thanks. Edited December 4, 2019 by thompsonmax (see edit history) Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 3, 2019 Share Posted December 3, 2019 7 hours ago, thompsonmax said: Hi everyone. I am new here. Am I right, to have the latest version of prestashop I need to switch from PHP 7.3 back to PHP 7.2. ?😏 Thanks. PHP 7.2 is the recommended one, as you can see here -> https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ . PHP 7.3 is recommended for the future release of PS 1.7.7 Best Regards Link to comment Share on other sites More sharing options...
thompsonmax Posted December 4, 2019 Share Posted December 4, 2019 13 hours ago, PCQUATRO said: PHP 7.2 is the recommended one, as you can see here -> https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ . PHP 7.3 is recommended for the future release of PS 1.7.7 Best Regards Hi PCQUATRO. Thanks for your reply, now it is clear for me. Link to comment Share on other sites More sharing options...
adamus007p Posted December 4, 2019 Author Share Posted December 4, 2019 (edited) Hello, I was checking manually the updates and compare database. There is many missing things since 1.4. Some tables are missing and now upgrade show errors. So i will try to install 1.7 fresh and copy database manually. There are some modules: https://github.com/ets-soft/prestashop-migrator-free-version but i will do it manually. When you have some experience about manual update (database) or migration tools please let me know. Thank you for your answers. Edited December 4, 2019 by adamus007p (see edit history) Link to comment Share on other sites More sharing options...
adamus007p Posted December 4, 2019 Author Share Posted December 4, 2019 I was updating a fresh clean installation of the newest prestashop 1.6 to newest 1.7 there are error. Is it possible to update to 1.7.6.2 or better to update to 1.7.0 or 1.7.3 and then update it to newest version? Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 4, 2019 Share Posted December 4, 2019 4 minutes ago, adamus007p said: I was updating a fresh clean installation of the newest prestashop 1.6 to newest 1.7 there are error. Why update a FRESH install of 1.6.x to 1.7.x???? Why not fressh install 1.7.6.2???? On 12/2/2019 at 11:59 PM, PCQUATRO said: Upgrading from a previous major version, from what i´ve been reading, almost always causes problems… Best Regards Link to comment Share on other sites More sharing options...
NamaRawras Posted December 4, 2019 Share Posted December 4, 2019 On 11/30/2019 at 10:27 PM, adamus007p said: Hello, I am trying to upgrade my Prestashop 1.6.1.24 to 1.7.6.2. I use php 7.3. Mariadb10.3. centos 7 I was trying to do this using module 1 click, using manual method and command line. With manual method I follow the: https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/upgrade/ all values were green phppsinfo.php https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ Try to upgrade version wise. Do the multiple upgrades up to 1.7. Upgrading 1.6 to the latest one cause problems. Link to comment Share on other sites More sharing options...
adamus007p Posted December 6, 2019 Author Share Posted December 6, 2019 The thing is even clean fresh the newest 1.6 version has problem to upgrade to 1.6.6.x. I will do manual SQL update. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now