Jump to content

Error during Prestashop 1.7.4 installation


Recommended Posts

Hello.

Caught HTTP 500 error during installation at stage "Install modules".

PHP Fatal error:  Uncaught PrestaShopException: Property Tab->name is empty. in /www/classes/ObjectModel.php:1000
Stack trace:
#0 /www/classes/ObjectModel.php(321): ObjectModelCore->validateFieldsLang()
#1 /www/classes/ObjectModel.php(553): ObjectModelCore->getFieldsLang()
#2 /www/classes/Tab.php(98): ObjectModelCore->add(true, false)
#3 /www/modules/ps_themecusto/ps_themecusto.php(199): TabCore->add()
#4 /www/modules/ps_themecusto/ps_themecusto.php(92): ps_themecusto->installTabList()
#5 /www/src/Adapter/Module/Module.php(219): ps_themecusto->install()
#6 /www/src/Core/Addon/Module/ModuleManager.php(258): PrestaShop\PrestaShop\Adapter\Module\Module->onInstall()
#7 /www/src/PrestaShopBundle/Install/Install.php(1024): PrestaShop\PrestaShop\Core\Addon\Module\ModuleManager->install(NULL)
#8 /www/install/controllers/http/process.php(231): PrestaShopBundle\Install\Install->installModules(Array)
#9 /www/install/controllers/http/process.php(105): InstallControllerHttpProcess->processInstal

Also there is a notice:

PHP Notice:  Undefined index: ru in /www/modules/ps_themecusto/ps_themecusto.php on line 193

In method installTabList();

            foreach (Language::getLanguages(true) as $lang) {
                $tab->name[$lang['id_lang']] =  $aTabsNameByLang[$aValue['class']][$lang['iso_code']];
            }

right part of assignment is actualy empty because there is no such index 'ru' in $aTabsNameByLang[$aValue['class']].

    public function getTabNameByLangISO()
    {
        return array(
            $this->controller_name[1] => array(
                'fr'    => 'Configuration page d\'accueil',
                'en'    => 'Homepage Configuration',
                'es'    => 'Configuración página de inicio',
                'it'    => 'Configurazione homepage',
            ),
            $this->controller_name[0] => array(
                'fr'    => 'Personnalisation avancée',
                'en'    => 'Advanced Customization',
                'es'    => 'Personalización avanzada',
                'it'    => 'Personalizzazione avanzata',
            ),
        );
    }

As we can see, the only languages available are hardcoded here. I've chosen Russian during installation.

Seems to me this is the reason i've got a fatal exception.

Any suggestions?

Thanks.

Link to comment
Share on other sites

Can you please describe, how you solve this? I have the same problem. Thank you..

 

EDIT:

for my instalation in czech language works this:

            $this->controller_name[1] => array(
                'fr'    => 'Configuration page d\'accueil',
                'en'    => 'Homepage Configuration',
                'es'    => 'Configuración página de inicio',
                'it'    => 'Configurazione homepage',
                'cs'    => 'Konfigurace homepage',                
            ),
            $this->controller_name[0] => array(
                'fr'    => 'Personnalisation avancée',
                'en'    => 'Advanced Customization',
                'es'    => 'Personalización avanzada',
                'it'    => 'Personalizzazione avanzata',
                'cs'    => 'Pokrocila prizpusobeni',                
            ),

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

  On 7/4/2018 at 8:28 PM, vlanok said:

HTTP 500 error during installation at stage "Install modules" for russian language.

install in English. then turn off the English language in the back office

Expand  

 

These work before 1.7.4 but not any more because I dont know why now install the language of your browser or computer not sure  on the databases 

 

 

Link to comment
Share on other sites

Тоже самое, установка на русском языке приводила к ошибке Error 500. Но если в установщике выбирал английский язык - то устанавливалось без ошибок. 

Link to comment
Share on other sites

  On 7/10/2018 at 8:17 AM, Johnfox said:

Тоже самое, установка на русском языке приводила к ошибке Error 500. Но если в установщике выбирал английский язык - то устанавливалось без ошибок. 

Expand  

не доработали малёк буржуины

Link to comment
Share on other sites

  On 7/10/2018 at 8:17 AM, Johnfox said:

Тоже самое, установка на русском языке приводила к ошибке Error 500. Но если в установщике выбирал английский язык - то устанавливалось без ошибок. 

Expand  

Вот только в базе после этого кракозябры, вместо буквы И вылазят кракозябры и попасть в модуль конфигурации главной страницы не удается - опять 500

 

Link to comment
Share on other sites

  On 7/12/2018 at 6:23 PM, Gilung said:

Вот только в базе после этого кракозябры, вместо буквы И вылазят кракозябры и попасть в модуль конфигурации главной страницы не удается - опять 500

 

Expand  

ждем-с 1.7.4.1, надеюсь исправят

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