Jump to content

Edit History

adamus007p

adamus007p


update

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?

 

 

adamus007p

adamus007p

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

 

 

Any idea what is the problem?

 

 

×
×
  • Create New...