lazovskiy Posted July 4, 2018 Share Posted July 4, 2018 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 More sharing options...
lazovskiy Posted July 4, 2018 Author Share Posted July 4, 2018 Adding the appropriate language key into that two arrays do the trick but looks like a dirty hack. Link to comment Share on other sites More sharing options...
JirkaDeLucina Posted July 4, 2018 Share Posted July 4, 2018 (edited) 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 July 4, 2018 by JirkaDeLucina solved (see edit history) Link to comment Share on other sites More sharing options...
vlanok Posted July 4, 2018 Share Posted July 4, 2018 (edited) HTTP 500 error during installation at stage "Install modules" for russian language. http://joxi.ru/12MZQjkfMRpQoA install in English. then turn off the English language in the back office Edited July 7, 2018 by vlanok (see edit history) Link to comment Share on other sites More sharing options...
jgamio Posted July 6, 2018 Share Posted July 6, 2018 On 4/7/2018 at 3: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 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 More sharing options...
Johnfox Posted July 10, 2018 Share Posted July 10, 2018 Тоже самое, установка на русском языке приводила к ошибке Error 500. Но если в установщике выбирал английский язык - то устанавливалось без ошибок. Link to comment Share on other sites More sharing options...
vlanok Posted July 10, 2018 Share Posted July 10, 2018 4 hours ago, Johnfox said: Тоже самое, установка на русском языке приводила к ошибке Error 500. Но если в установщике выбирал английский язык - то устанавливалось без ошибок. не доработали малёк буржуины Link to comment Share on other sites More sharing options...
arturkosinski-pl Posted July 12, 2018 Share Posted July 12, 2018 Language PL also error 500 during installation. Link to comment Share on other sites More sharing options...
Gilung Posted July 12, 2018 Share Posted July 12, 2018 On 10.07.2018 at 11:17 AM, Johnfox said: Тоже самое, установка на русском языке приводила к ошибке Error 500. Но если в установщике выбирал английский язык - то устанавливалось без ошибок. Вот только в базе после этого кракозябры, вместо буквы И вылазят кракозябры и попасть в модуль конфигурации главной страницы не удается - опять 500 Link to comment Share on other sites More sharing options...
vlanok Posted July 12, 2018 Share Posted July 12, 2018 3 minutes ago, Gilung said: Вот только в базе после этого кракозябры, вместо буквы И вылазят кракозябры и попасть в модуль конфигурации главной страницы не удается - опять 500 ждем-с 1.7.4.1, надеюсь исправят Link to comment Share on other sites More sharing options...
ecommerce16 Posted July 12, 2018 Share Posted July 12, 2018 please english in the english forum Link to comment Share on other sites More sharing options...
Gilung Posted July 12, 2018 Share Posted July 12, 2018 4 minutes ago, Curious said: please english in the english forum That's only in the database after this garbage, instead of the letter И the garbage goes out and get into the configuration module of the main page can not - again 500 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