Jump to content

Fatal Error Updating from 1.6.0.8 to 1.7.6.2


acc_azteca

Recommended Posts

Hi, y'all,

I've been trying to upgrade my shop from 1.6.0.8 to 1.7.6.2 using the manual procedure. Everything seemed to be going smoothly until I ran the upgrade.php file from the command line. There, I got the following output:

PHP Fatal error:  Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Catchable Fatal Error: Argument 1 passed to PrestaShopBundle\Translation\Loader\SqlTranslationLoader::addTranslationsToCatalogue() must be of the type array, boolean given, called in /var/www/html/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php on line 84 and defined' in /var/www/html/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:101
Stack trace:
#0 /var/www/html/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php(84): PrestaShopBundle\Translation\Loader\SqlTranslationLoader->addTranslationsToCatalogue(false, Object(Symfony\Component\Translation\MessageCatalogue))
#1 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(381): PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load('AdminActions.es...', 'es-ES', 'AdminActions')
#2 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(277): Symfony\Compo in /var/www/html/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php on line 101

 

Any idea as to how to fix this? I would greatly appreciate it.

 

Regards,

R.

Link to comment
Share on other sites

  • 2 weeks later...

Hi! I have the same problem upgrading from 1.6.1.17 to 1.7.6.2

[22-Jan-2020 06:38:09 Europe/Bratislava] PHP Warning:  
file_put_contents(/home/html/ital-accessori.sk/public_html/_sub/presta/var/cache/prod/cacert.pem): 
failed to open stream: No such file or directory in /home/html/ital-accessori.sk/public_html/_sub/presta/classes/Tools.php on line 2118
[22-Jan-2020 10:43:10 Europe/Paris] PHP Fatal error:  Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException'
with message 'Catchable Fatal Error: Argument 1 passed to PrestaShopBundle\Translation\Loader\SqlTranslationLoader::addTranslationsToCatalogue() 
must be of the type array, boolean given, called in /home/html/ital-accessori.sk/public_html/_sub/presta/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php on line 84 
and defined' in /home/html/ital-accessori.sk/public_html/_sub/presta/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php:101
Stack trace:
#0 /home/html/ital-accessori.sk/public_html/_sub/presta/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php(84): 
PrestaShopBundle\Translation\Loader\SqlTranslationLoader->addTranslationsToCatalogue(false, Object(Symfony\Component\Translation\MessageCatalogue))
#1 /home/html/ital-accessori.sk/public_html/_sub/presta/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(381): 
PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load in /home/html/ital-accessori.sk/public_html/_sub/presta/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php on line 101

 

SqlTranslationLoader.php  84-101:

 

84:        $this->addTranslationsToCatalogue($translations, $catalogue);

        if (null !== $this->theme) {
            $selectThemeTranslationsQuery =
                $selectTranslationsQuery . "\n" .
                "AND theme = '" . $this->theme->getName() . "'";
            $themeTranslations = Db::getInstance()->executeS($selectThemeTranslationsQuery);
            $this->addTranslationsToCatalogue($themeTranslations, $catalogue);
        }

        return $catalogue;
    }

    /**
     * @param array $translations the list of translations
     * @param MessageCatalogueInterface $catalogue the Message Catalogue
     */
101:    protected function addTranslationsToCatalogue(array $translations, MessageCatalogueInterface $catalogue)

 

Please help!!!

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

  • 8 months 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...